mutode icon indicating copy to clipboard operation
mutode copied to clipboard

Hint about watch mode for tests

Open camjc opened this issue 7 years ago • 2 comments

If you are running your tests in watch mode by default (Jest or similar) you have your tests doing nothing forever when mutode is trying to run them. It'd be great to have mutode realise this and warn the user, or perhaps set itself up to run common test runners in CI mode.

camjc avatar Jul 06 '18 07:07 camjc

If I understand right, is because test process keep testing and never exists, marking all mutants as discarded. This should be solved when the possibility of changing the test command that mutode uses is added, which should be soon.

DiegoRBaquero avatar Jul 06 '18 22:07 DiegoRBaquero

Yep, it never exits. We could even do a very basic detection for this as a timeout on the suite after a few minutes to give the user some feedback.

camjc avatar Jul 07 '18 00:07 camjc