Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Conversation

@borekb
Copy link
Member

@borekb borekb commented Apr 10, 2019

An issue discovered in #1421. The run-tests.ts script now correctly forwards the exit code from the tests. Previously, the TypeScript script always returned 0 even if the tests failed – visually, the output was correct but Travis didn't see the build as failing.

A quick way to test this is to run npm run tests:unit with some unit test artificially failing. Before 7bd2f40, the exit code (echo $?) is zero, after it, it's 1.

@borekb borekb added the scope: dev-infrastructure Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc. label Apr 10, 2019
@borekb borekb added this to the 4.0 milestone Apr 10, 2019
@borekb borekb requested a review from pavelevap April 10, 2019 12:30
@borekb borekb self-assigned this Apr 10, 2019
@borekb borekb merged commit fd4daa6 into master Apr 11, 2019
@borekb borekb deleted the run-tests-exit-code branch April 11, 2019 19:31
@borekb borekb added the scope: tests Testing code. For infrastructure (CI, etc.), use "dev-infrastructure". label Apr 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

scope: dev-infrastructure Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc. scope: tests Testing code. For infrastructure (CI, etc.), use "dev-infrastructure".

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants