Jasmine support
Chimp supports the latest version of Jasmine. Currently this is version 2.4.x.
You can enable Jasmine support by starting Chimp with with --jasmine
flag or setting jasmine: true
in your Chimp config file.
Additionally the Chimp config file supports the following Jasmine options. The values in this file are the defaults. You can read more about those options in the Jasmine documentation.
Additionally by default:
- Spec file names need to end with "_spec.js", "-spec.js" or "Spec.js".
- Files in the support/ folder will run before the tests.
- You can use ES2015 out of the box.
If you miss any information or something is unclear please open an issue.
Custom spec filter
Add a helper file with something like for example:
const smokeTestRegExp = /@smoke/;
jasmine.addSpecFilter(function (spec) {
return smokeTestRegExp.test(spec.getFullName());
});
Updated less than a minute ago