AngularJS provides two powerful mock and test support modules, both contained in a single script file. The modules, ngMock and ngMockE2E, provide different features for different purposes, though both modules are defined in, angular-mocks.js. In this post I’ll explain the differences between the modules and how they get mounted in a test scenario.
By acting like a first-time or uneducated user of a system, I’m more likely to come across errors not found on the system’s “happy path”, often turning up more “page not found” or “an error has occurred” messages.
Ken and Joel give their “predictions” and “recap” of 2014, which is purely their version, but somebody’s got to do it. Also, we talk tools for testing in NodeJS, namely Mocha and Chai, some linux and regex visualization websites, a < $300 ChromeBook announced by Toshiba at CES, writing and posting HTML content on GitHub using gh_pages, and more.
Building new software from scratch is one of life’s great pleasures for a developer. It gives us a chance to “do it right” that we typically don’t have when doing maintenance work. More often than not though, we find ourselves working on an older system and need to work around old decisions made by long … Read More
This is the second in a series of articles about using automated testing tools on a Canvas-based Web application. Each article covers a different testing tool or technique (see the first on WebDriver).
This is the first in a series of articles about using automated testing tools on a Canvas-based Web application. Each article covers a different testing tool or technique.
From the abstract: “Spock is a fabulous new testing framework for the JVM. Spock leverages all the DSL power of the Groovy language to make testing a breeze. Spock tests are concise and readable, with excellent support for error reporting and for mock object creation. Spock removes much of the pain from test driven development! … Read More
Are you interested in adding Robolectric to your development process? Here’s a quick introduction to the most common types of test cases and some best practices to consider when deciding your testing strategy. I’ve created two example apps for your reference. The first is a glorified Hello World and the other is a simple animation … Read More
Unit testing is a best practice, but has been particularly difficult in Android. One library that makes this process much simpler is Robolectric. Integration into your project can be tricky and most methods start with maven and create an Android project from scratch. I’m a huge fan of living in IDE-land as much as possible, … Read More