Category Archives: ALM

Improving Angular style and code quality

The Angular CLI makes our lives a lot easier by scaffolding our projects and generating a lot of boilerplate code and this code usually conforms to the Angular Style guide found here https://angular.io/docs/ts/latest/guide/style-guide.html. But we also need to make sure our code stays readable, functional and maintainable and with entire teams working on Angular applications, code reviews are not the

Read more

A Quality Gate Dashboard Widget for VSTS

In a previous post we figured out how we could work with SonarQube Quality Gates in a JavaScript build on VSTS. For regular VSTS builds (based on MSBuild that is) Sonar provides an excellent extension that enables several goodies including a “Publish Quality Gate Result” build task. Unfortunately this task requires MSBuild to function correctly and our usual client side/

Read more

SonarQube Quality Gates and VSTS builds

SonarQube includes the concept of quality gates and these gates allow you to answer questions about the quality of the code being analyzed. They come as sets of Boolean conditions and can be based on the usual Sonar metrics including blocker issues, code coverage on new code, reliability rating, etc. Here are the default settings: More info here: https://blog.sonarsource.com/quality-gates-shall-your-projects-pass Based

Read more

JavaScript Unit Tests with Visual Studio Team Services

TL;DR: JavaScript Unit Testing with VSTS using real browsers. We would like to run JavaScript unit tests; And we prefer a real browser for this, so no PhantomJS or equivalent; And run our tests from a Visual Studio Team Services build; VSTS hosted build agents don’t have Chrome or Firefox installed; So things break; We fix this by providing a

Read more

Getting started with SonarQube and TypeScript

Update The source code with this post was updated to reflect the new SonarTS version 1.2 and SonarQube version 6.7. For more information on how to extend the basic scenario with code coverage, see this post: Better together: SonarQube, TypeScript and Code Coverage SonarSource recently released an official first version of a static code analyzer for TypeScript. So if you want

Read more
« Older Entries