Integrating Angular Unit Tests With Visual Studio Team Services (VSTS) Using Headless Chrome and Puppeteer


In the following post, Premier Developer Consultant Wael Kdouh expands on a previous post and demonstrates how you can run unit tests using headless Chrome and utilize Puppeteer to install Chrome on your CI server.


In a previous post, I showed you how to Integrate Angular Unit Tests with Visual Studio Team Services (VSTS). Whereas it worked flawlessly it did have dependency on PhantomJS which is a headless browser. The only issue with PhantomJS is that it tends to have some random issues which makes it challenging to integrate within your CI server. Fortunately, Chrome added support for running in headless mode starting with version 59. Thus, you can use headless Chrome to replace PhantomJS.

You can read more of Wael’s post here.

Comments (0)

Skip to main content