mocha testing for the lazies, single key-press for all possible tests
Posted
by
laggingreflex
on Programmers
See other posts from Programmers
or by laggingreflex
Published on 2014-06-01T21:04:57Z
Indexed on
2014/06/01
21:53 UTC
Read the original article
Hit count: 336
I have a batch file that lists all the test files I have and asks me which test I want to perform, like
Test. [U]nit, [I]ntegration : i (user input)
Integration. [A]ll, [2][U]serInteraction, [3][R]esultGeneration : u
2 User Interaction.
Running "mocha integration\2userint.js" ...
So essentially I have configured a batch "option" for each test file I have, which I can choose to run individually or all together.
But adding and removing tests is a pain.
Is there something that does this or anything like this automatically? Like reads all the files and asks me which file(s) I want to test. A GUI with checkboxes would be ultimate! but I'll take anything.
I'm working in node.js
© Programmers or respective owner