lundi 5 avril 2021

Tests: --group laravel equivalent in angular?

Is there a way to group tests in Angular? I am currently running my tests using Jasmine. In Laravel you are able run test like php artisan test --group my-section-group. This test will run only a subsection with group defined as @group my-section-group

This functionality is very useful especially in debugging why a particular test is failing. Is this functionality or equivalent available in Angular Testing.

Currently I have to use fdescribe and fit to run particular tests and xdescribe and xit to omit particular tests. The problem with this approach is that each time I have to go through my code changing these to be able to run all tests

It would be great if I there exists something like below that would run all test marked with login group

ng test --group login

Is there such a functionality/ Can such a functionality be implemented?

Aucun commentaire:

Enregistrer un commentaire