Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
TypeScript 2.x By Example

You're reading from   TypeScript 2.x By Example Build engaging applications with TypeScript, Angular, and NativeScript on the Azure platform

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781787280038
Length 372 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Sachin Ohri Sachin Ohri
Author Profile Icon Sachin Ohri
Sachin Ohri
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Our First Application – Sports News Combinator FREE CHAPTER 2. Sports News Combinator – Adding Features 3. Sports News Combinator – the Final Version 4. Application 2 – Trello 5. Trello - Adding Features 6. Testing the Trello Application 7. Trello - Using Angular CLI 8. Trello Mobile – Using NativeScript 9. Deploying Sample Trello on the Cloud Using Microsoft Azure 10. Getting Started with TypeScript

Code coverage using Angular CLI

We looked at testing our Angular application in Chapter 7, Testing the Trello Application, where we covered in detail how to write the unit test and how Angular CLI allows us to run and manage our test cases. We created multiple test cases in our components, services, and pipes and then, using the ng test command, were able to run the test in a separate browser.

The Angular CLI also provides some options to configure our test environment with ng test, such as a watch flag which informs the CLI that it should run the test cases automatically when there is some change in the code, or the single-run flag, which allows us to run the test cases only once and not have the test scripts running.

The single-run flag is most useful in CI scenarios where we want to validate our code and not keep running the test cases. We can also choose which browser we want...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
TypeScript 2.x By Example
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon