grunt-mocha-cli | Run Mocha server-side tests in Grunt | Runtime Evironment library
kandi X-RAY | grunt-mocha-cli Summary
kandi X-RAY | grunt-mocha-cli Summary
Run Mocha server-side tests in Grunt.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of grunt-mocha-cli
grunt-mocha-cli Key Features
grunt-mocha-cli Examples and Code Snippets
Community Discussions
Trending Discussions on grunt-mocha-cli
QUESTION
So when you do TDD, do you wait it to run all tests till the one you're working on? It takes too much time. When I'm in rush, I rename test file to something like aaaaaaaaaaaaaaaa_testsomething.test.js so it's run first and I see errors asap.
I don't like this approach and I'm sure there's solution, but I can't find it. So what is the easiest way to run unit tests in mtime order with Mocha? There's -sort option, but it sorts files by name only. How can I sort them by modification time?
There's my Gruntfile.js:
...ANSWER
Answered 2017-Oct-12 at 21:00If you're using mocha, you can set .only on the test you are interested in:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install grunt-mocha-cli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page