-
Notifications
You must be signed in to change notification settings - Fork 1
Testing application
Vyacheslav edited this page Jun 29, 2015
·
2 revisions
When you create jasper application by running yo jasper:<APP-NAME> generator also setup a testing enviroument for your application.
All tests places in test folder of your application.
To run tests uses Karma test ruuner and jasmine. All tests in *.js files in test folder will be runned by karma.
To run all tests type
grunt testBy default tests runs in PhantomJS browser. You can setup karma to run tests in different browsers. See karma docs how to do that.
Test example:
module spa.tests {
describe('Home page', () => {
it('should has "home-page" title', () => {
var page = new main.pages.HomePage();
expect(page.name).toEqual('home-page');
});
});
}