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

fix(jest-runner): fix stryker error on todo tests #1420

Merged
merged 1 commit into from
Feb 26, 2019

Conversation

ollelauribostrom
Copy link
Contributor

@ollelauribostrom ollelauribostrom commented Feb 25, 2019

Stryker currently treats todo tests it.todo('some description') as failed tests. Having these in your test suite will result in There were failed tests in the initial test run, and the mutation test run fails. This PR fixes this by treating tests marked todo as skipped instead.

Summary of changes

  • Checking for tests with 'todo' status when test result status is being determined
  • Adding unit test to verify that tests with todo status is marked as skipped

@ghost ghost added the 🔎 Needs review label Feb 25, 2019
@simondel
Copy link
Member

Nice find! Thanks for fixing this ❤️

@simondel simondel merged commit 26d813f into stryker-mutator:master Feb 26, 2019
@ghost ghost removed the 🔎 Needs review label Feb 26, 2019
@nicojs
Copy link
Member

nicojs commented Feb 27, 2019

Especially like the fact that you added tests 🥇

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

3 participants