Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fail on test errors #302

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

longzheng
Copy link

While debugging another issue I noticed that there is actually a test failing but the CI is reporting all good. For example the last CI run https://github.com/deepgram/deepgram-js-sdk/actions/runs/9403306912/job/25899538297#step:4:120

I saw it's because the CI is only running the npm run test:coverage which doesn't seem to throw an error if there are test errors.

I thought the easiest fix is to just run the test separately to generating the coverage.

@longzheng longzheng changed the title Run test separate to test coverage CI: Run test separate to test coverage Jun 13, 2024
@longzheng
Copy link
Author

longzheng commented Jun 13, 2024

I'm not 100% sure if the test command also needs a change since currently it has || :, which I'm not sure what the original intent was.

"test": "mocha -r ts-node/register test/*test.ts test/**/*test.ts --insect --timeout 5000 || :",

@longzheng longzheng changed the title CI: Run test separate to test coverage CI: fail on test errors Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant