Greg Goforth
06-07-16
Director of Development - Bitwise Industries
WHY???
Continuous Integration
What to test???
Your units of course!!!
But...what is a unit?
Should I be testing EVERYTHING?
When should I unit test?
The Testing Stack
Karma
Jasmine
A simple test...
describe("The addOne function", function() {
it("should add one to any number", function() {
expect(addOne(4).toEqual(5);
});
});
You can almost read it in plain english...
"The addOne function should add one to any number"
The setup...
Lets write and test the addOne function.