Ghost/core/test/regression/api/v0.1
Katharina Irrgang 75fbd272c9
Separated test env into: acceptance, regression and unit tests (#10411)
refs #9178

`yarn test` only runs acceptance and unit tests.
We will setup a cronjob in Travis and run the regression tests once per day.
You can manually run them with `yarn test:regression`

This separation is just a first step into the right direction.
Travis will no longer run for 10-13minutes.
The goal is to run common API use cases and unit tests in Travis and locally by default.

## After this separation we still need to:

- re-work our test utility
- remove some tests
- define which tests are our common API use cases
- rewrite some tests
- make testing easier (starting/stopping Ghost, fixtures and resetting services or event listeners, it's a pain and takes sometimes ages to fix tests)


---

**Acceptance:**
- common/basic API use cases against the current **stable** API

**Unit:**
- all unit tests (no database access)
- proper mocking

**Regression:**
- packages we don't want to run for each PR or commit
- tests which protect Ghost from breaking components and behaviour
- it is wishful that regression tests are using Ghost's API's (frontend, apps, core)

---

**This PR requires an update to our docs.**
2019-01-22 17:54:50 +01:00
..
authentication_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
configuration_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
db_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
error_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
invites_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
notifications_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
oembed_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
posts_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
public_api_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
redirects_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
roles_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
schedules_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
settings_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
slugs_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
spam_prevention_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
subscribers_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
tags_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
themes_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
upload_icon_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
upload_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
users_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
utils.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
webhooks_spec.js Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00