I have a module, I am testing this module with mocha-phantomjs. I created a filepackage.json
{
"name" : "demo-test",
"scripts": {
"test": "npm run test-debug",
"test-debug": "mocha-phantomjs ./test/Test1.html"
},
"dependencies" : {
"mocha" : "1.13.x",
"commander" : "1.2.x",
"which" : "~1.0.5",
"mocha-phantomjs": "3.3.2"
},
"devDependencies" : {
"chai" : "1.8.x",
"coffee-script" : "1.6.x",
"requirejs" : "2.1.x",
"jquery" : "2.1.0"
}
}
Then I ran npm install, and then npm testto run the test. It works great and runs tests test1.html. Now I want all the files (test1, test2, ...) in the test directory to be executed at startup npm test.
I can run all html files by calling them separately in the package.json file, but if there is a way to download all the Html files.
user3115091
source
share