Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making Jasmine list all tests instead of executing them

I am using Jasmine for unit testing. By now the tests are running rather long. Of course I can specify suitable URL parameters to pick the desired tests. However I would find it way more convenient if I could tell Jasmine to only list all tests and then execute whatever I explicitly pick. Has anyone an idea how to perform this?

like image 287
Udo Klein Avatar asked Dec 06 '25 13:12

Udo Klein


1 Answers

Now I found it out on my own. Maybe others know a better solution but I can achieve the desired effect by passing the Jasmine TestRunner the parameters package and spec with package pointing to my root package and spec pointing to a non existing spec. This makes the test runner skip all packages. Then I can checkmark "skipped" and immediately get a list of all skipped tests which is of course a link list for all tests.

This almost solves my issue. Except that I would still need a way to tell it to check the checkbox for me.

like image 151
Udo Klein Avatar answered Dec 08 '25 03:12

Udo Klein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!