Modern workflows for modern webapps
yo angular ngServiceTest
The JavaScript Task Runner
$ grunt server
$ grunt test
Servicio de testing javascript creado por Google.
Jasmine is a behavior-driven development framework for testing JavaScript code
describe("A suite", function() {
it("contains spec with an expectation", function() {
expect(true).toBe(true);
});
});
contains testing related code.
$httpBackend // simulador de http requests
A package manager for the web
bower.json:
{
"name": "ngServiceTest",
"version": "0.0.0",
"dependencies": {
"unstable-angular-complete": "1.2.0rc2",
"angular-restmod": "*"
}
}
$ bower install
Gruntfile.js
karma: {
unit: {
configFile: 'karma.conf.js',
singleRun: false
}
},
karma.conf.js