jeudi 24 décembre 2020

TestCafe : How to run all tests except few tests

I have few tests that took a considerable long time as few jobs are initiated at the backend side which takes quite long. I want to have some control so that I can run all tests as part of my regression suite except these few long-running tests.

I do not want to specify metadata on all the tests, it would be great if I can add metadata on long-running tests and somehow run all tests except that metadata.

Let's say I add metadata on long-running tests as longRunning=true and I can run tests with some command like : node node_modules/testcafe/bin/testcafe not --test-meta longRunning=true

Is there any way to execute all tests other than this metadata longRunning=true

Aucun commentaire:

Enregistrer un commentaire