From the course: Angular: Workflows
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Configuring terminal reporting - Angular Tutorial
From the course: Angular: Workflows
Configuring terminal reporting
- [Instructor] Currently, when we run our test suite, all we are told is that our test would pass with 27 tests. It's a little difficult to know which test exactly ran. In a continuous integration environment, it will be very helpful to have more detailed information. Let's update our terminal reporting. Let's start by installing the karma-spec-reporter and use the -D tag to save in our dev dependencies. It looks like I misspelled that. It's karma-spec-reporter. We will be updating the karma.config.js file here. First thing we need to do is add it to our plugins, require karma-spec-reporter. Let's head down to line 21 here in the reports property, and we will ad a new token, and that is text-summary. Finally, in line 24, replace progress with spec here. Let's go ahead and run our test suite again with --code-coverage. Now, when we run our test suite, you will get a much more detailed output. We see the status of each test, and at the end, we get a text summary of our overall code…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.