December 2017
Beginner
372 pages
10h 32m
English
Using the Angular CLI is fairly easy to execute our test case. We just run the following command in our Terminal, and Karma will launch the browser and execute all the test cases in our application:
ng test
If we now run our test case, we should see two test cases executed and passed, as shown in the following screenshot:

These titles are clickable, which means that we can run our test case again by just selecting the specific test case.
Also, if you remember, we had an autoWatch flag set to true in our karma.config.js file, which means that now if you change anything in your test case, Karma will automatically execute ...
Read now
Unlock full access