nodejs-integration-tests-best-practices
nodejs-integration-tests-best-practices copied to clipboard
Reuse tests against a remote environment
Some tests are grey-box tests (e.g. they stub some code object) and can only get executed against the local env. Otheres are pure black-box, they approach the API and don't assume that the api-under-test is within the same process - These tests can get executed against remote environment like staging. To achieve this, one should tag those tests and then grep for them during execution