alkem-io / test-suites

Test suites for black box testing of the Alkemio server api. For example the API test harness, for execution against an instance of the Alkemio platform api (GraphQL)
European Union Public License 1.2
1 stars 0 forks source link

server-api-tests

Alkemio API tests against the Alkemio GraphQL server endpoint

Quality Assurance + Testing

Initial version of integration api tests is in place. To run them, look at the prerequisites, below:

Automation test structure

server/
 src/
  domain/
   challenge/
     challenge.service.ts
     challenge.service.spec.ts
 test/
  config/
    jest.config.it.ts
    etc...
  functional/
   integration/
    challenge/
      create-challenge.e2e-spec.ts
   non-functional/
    auth/
      anonymous-user.it-spec.ts
    performance/
   utils/
     token.helper.ts
     graphql.request.ts

Test types

- functional integration tests: `*.it-spec.ts` API testing of application services against endpoint of any the environments(local, dev, test)(i.e. "https://dev.alkem.io/graphql")

Run tests:

- run all tests: `npm run-script test:nightly`
- run all tests from particular test suite area: `npm run-script test:it ./test/functional-api/integration/challenge/`
- run all tests for a test file: `npm run-script test:it ./test/functional-api/integration/challenge/query-challenge-data.it-spec.ts`

To debug tests in VS Code

To run only one test from a test file

Update user password secret for Travis CI

In order to be able to update the user secret (used in automation tests) for Travi CI configuration, the following steps, should be perforemed:

Resources