This session will explore unit and functional testing concepts applied to Titanium mobile and Alloy framework. After a brief introduction to testing we will look at the complete source code of a fully tested app.
24. describe(“Something”, function(){
it(“should behave in some way”, function(){
var sut = require(“sut”); //Arrange
var success = sut.doSomething(); //Act
expect(result).toBe(true) //Assert
});
});
Unit Testing is simple...