I don't see many components using testling. I originally didn't think it
was possible due to substack's opinionated style wrt. browserify. Turns
out it's pretty easy:
https://github.com/jb55/parents/tree/testling
package.json:
{
"testling": {
"harness": "mocha",
"browsers": [
"ie6", "ie7", "ie8", "ie9",
"firefox/15", "chrome/22", "opera/12", "safari/5.1"
],
"preprocess": "make build",
"scripts": ["build/*.js", "test/*.js"]
},
"devDependencies": {
"mocha": "*",
"component": "*"
}
}
This almost works except that build/build.js doesn't get included even
though it is generated by the preprocess field. I have contacted
substack to see if this is intentional, hopefully it will be fixed. For
now I had to include the build.js in the repo which is ugly but works.
Cheers,
William