Add e2e tests

This commit is contained in:
Mohsen Azimi
2015-01-28 15:38:27 -08:00
parent 14ffedf509
commit f3b856c1df
3 changed files with 69 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
"scripts": {
"build": "PATH=$PATH:./node_modules/.bin cake dist",
"test": "./node_modules/coffee-script/bin/cake dist"
"test": "./node_modules/coffee-script/bin/cake dist; ./node_modules/mocha/bin/mocha src/test/e2e/index.js"
},
"repository": {
"type": "git",
@@ -24,8 +24,12 @@
"less": "~1.4.2"
},
"devDependencies": {
"express": "3.x",
"chai": "^1.10.0",
"cors": "2.1.1",
"docco": "0.4.x",
"cors": "2.1.1"
"express": "3.x",
"http-server": "^0.7.4",
"mocha": "^2.1.0",
"selenium-webdriver": "^2.44.0"
}
}