mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
add tests to readme
This commit is contained in:
@ -2,8 +2,8 @@
|
||||
#### Test it out!
|
||||
|
||||
- Run `gulp watch` to build, serve, and watch Ionic & playground
|
||||
- Run `gulp karma-watch` while gulp watch is running to watch tests. Unit tests run on compiled files in dist.
|
||||
- All test files must be suffixed with `_spec.js`.
|
||||
- Run `gulp karma-watch` while gulp watch is running to watch tests.
|
||||
- All test files must be suffixed with `.spec.js`. Don't put a test as a sibling of a normal file, or import will decide the `.spec.js`is the same as the `.js`.
|
||||
|
||||
#### Building & Running
|
||||
|
||||
|
@ -28,7 +28,7 @@ Promise.all(
|
||||
if (module.hasOwnProperty('run')) {
|
||||
module.run();
|
||||
} else {
|
||||
throw new Error('Module ' + path + ' does not implement run() method.');
|
||||
console.warn('WARNING: Module ' + path + ' does not implement a run() method. No tests run.');
|
||||
}
|
||||
});
|
||||
}))
|
||||
|
Reference in New Issue
Block a user