ladjs / supertest

🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API. Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running subsets of supertest tests

theRealJoru opened this issue · comments

I haven't been able to find any detail re running subsets of SuperTest tests. We currently run subsets of (Selenium) UI tests using feature @tags set with ~config.js. Is there something similar in Supertest? Ideally I wouldn't have to add more scripts to package.json to do this. @tags would be a great feature addition? Apologies if this is the wrong forum for this question.

UPDATE: I've found a few options (see below links), but still not something as flexible as a @tag approach...

https://jaketrent.com/post/run-single-mocha-test/
https://stackoverflow.com/questions/10753288/how-to-specify-test-directory-for-mocha
https://stackoverflow.com/questions/22936728/running-test-cases-selectively-with-mocha