mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
884 B
884 B
Contributing
Thanks for helping! 🙏
Adding integration/end-to-end tests
The end-to-end/system tests in test/e2e
, executing via npm run test-e2e
, are querying real HAFAS endpoints, expecting valid & reasonable responses.
The integration tests (npm run test-integration
) are the same test/e2e
tests, running against mocked HAFAS responses from test/e2e/fixtures
.
- Add a new end-to-end test that tests your feature/bugfix.
- Make sure the test passes. You can run your test exclusively using
test.only
. - Record the HAFAS responses as fixtures using
npm run test-integration:record
. - Make sure the passes against only mocked responses using
npm run test-integration
.