Make a package.json like so:
{
"name": "component-testling-ci-example",
"description": "component testling ci example",
"devDependencies": {
"mocha": "*",
"component": "*"
},
"testling": {
"harness": "mocha",
"browsers": [
"ie/6..latest",
"chrome/22..latest",
"firefox/16..latest",
"safari/latest",
"opera/11.0..latest",
"iphone/6",
"ipad/6",
"android-browser/latest"
],
"preprocess": "make build",
"scripts": ["build/*.js", "test/*.js"]
}
}
You don't have to use mocha but it seems the most common harness.
Add http://git.testling.com
to your projects' webhooks (Settings
-> Webhooks and Services
)
Add a badge to your Readme.md:
[](https://ci.testling.com/<username>/<project>)
Type make build
and commit your build/build.js
Step 4 is temporary step until substack supports scripts built from preprocess
Push to Github, check out your test run at:
https://ci.testling.com/<username>/<project>