Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

configure jasmine to not run tests randomly

i just upgraded to jasmine 3.3 and now my tests by default run in random order. Is there a way to configure karma and jasmine to make tests run like they used to before upgrading to this new version?

like image 581
Aldo Abazi Avatar asked Oct 31 '18 15:10

Aldo Abazi


People also ask

How do you skip test cases in Jasmine?

If you want to exclude a specific test, simply use xit() instead of it() . The x means exclude. describe('description', function () { xit('description', function () {}); }); If you want to exclude an entire describe block, use xdescribe() instead of describe() .

Does Jasmine run tests in order?

Currently (v2. x) Jasmine runs tests in the order they are defined.

Do Jasmine tests run in parallel?

Jasmine doesn't actually support parallel execution. It runs one spec (or before/after) function at a time.


1 Answers

In Karma config under client: you are supposed to be able to set jasmine:{random:false} but that does not work for me. Does it for you? See below link from docs and screen cap. https://github.com/karma-runner/karma-jasmine

enter image description here

like image 124
GotStu Avatar answered Sep 18 '22 13:09

GotStu