mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-24 07:59:12 -05:00
convert all test commands into single run unit tests (#14)
This commit is contained in:
+9
-7
@@ -37,16 +37,18 @@ test:
|
||||
## server (5, 6)
|
||||
override:
|
||||
- echo 'Coffee Unit Tests' && cd packages/coffee && npm test
|
||||
- echo 'Driver Unit Tests' && cd packages/driver && npm run test-once
|
||||
- echo 'Electron Unit Tests' && cd packages/electron && npm run test
|
||||
- echo 'Driver Unit Tests' && cd packages/driver && npm test
|
||||
- echo 'Electron Unit Tests' && cd packages/electron && npm test
|
||||
# for now keeping lib command as unit test?
|
||||
# because in this project E2E tests ARE unit tests
|
||||
- echo 'Example Unit Tests' && cd packages/example && npm run test-lib
|
||||
- echo 'Extension Unit Tests' && cd packages/extension && npm run test-once
|
||||
- echo 'Extension Unit Tests' && cd packages/extension && npm test
|
||||
- echo 'Https Proxy Unit Tests' && cd packages/https-proxy && npm test
|
||||
- echo 'Launcher Unit Tests' && cd packages/launcher && npm test
|
||||
- echo 'Reporter Unit Tests' && cd packages/reporter && npm run test-once
|
||||
- echo 'Runner Unit Tests' && cd packages/runner && npm run test-once
|
||||
- echo 'Reporter Unit Tests' && cd packages/reporter && npm test
|
||||
- echo 'Runner Unit Tests' && cd packages/runner && npm run test
|
||||
- echo 'TODO fix server tests'
|
||||
# - echo 'Server Unit Tests' && cd packages/server && npm run test-unit-once
|
||||
- echo 'Socket Unit Tests' && cd packages/socket && npm run test-once
|
||||
# - echo 'Server Unit Tests' && cd packages/server && npm test
|
||||
- echo 'Socket Unit Tests' && cd packages/socket && npm test
|
||||
- echo 'Static Unit Tests' && cd packages/static && npm test
|
||||
# TODO E2E tests
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"scripts": {
|
||||
"build-dev": "gulp build",
|
||||
"clean-deps": "rm -rf node_modules",
|
||||
"test": "gulp test",
|
||||
"test-once": "gulp test:once",
|
||||
"test": "gulp test:once",
|
||||
"test-watch": "gulp test",
|
||||
"watch-dev": "gulp watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"watch-dev": "gulp watch",
|
||||
"build-dev": "gulp build",
|
||||
"build-prod": "gulp build",
|
||||
"test": "npm run test-unit-once",
|
||||
"test-once": "npm run test-unit-once",
|
||||
"test-unit-once": "NODE_ENV=test mocha --require test-setup.js",
|
||||
"clean": "gulp clean",
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
"clean": "zunder clean",
|
||||
"clean-deps": "rm -rf node_modules",
|
||||
"clean-all": "npm run clean && npm run clean-deps",
|
||||
"test": "npm run test-unit-once",
|
||||
"test-once": "npm run test-unit-once",
|
||||
"test-unit-once": "node ./scripts/test.js",
|
||||
"watch-dev": "node ./scripts/watch.js"
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
"clean": "zunder clean",
|
||||
"clean-deps": "rm -rf node_modules",
|
||||
"clean-all": "npm run clean && npm run clean-deps",
|
||||
"test": "npm run test-unit-once",
|
||||
"test-once": "npm run test-unit-once",
|
||||
"test-unit-once": "node ./scripts/test.js",
|
||||
"watch-dev": "node ./scripts/watch.js",
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
"clean-deps": "rm -rf node_modules",
|
||||
"deploy": "gulp deploy",
|
||||
"release": "gulp release",
|
||||
"test": "./test/support/helpers/watch test-once",
|
||||
"test": "npm run test-unit-once",
|
||||
"test-watch": "./test/support/helpers/watch test-once",
|
||||
"test-once": "./test/support/helpers/run",
|
||||
"test-unit": "./test/support/helpers/watch test-unit-once",
|
||||
"test-unit-once": "./test/support/helpers/run test/unit",
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"description": "Cypress Shared Socket Libs",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "NODE_ENV=test mocha --watch",
|
||||
"test": "NODE_ENV=test mocha",
|
||||
"test-watch": "NODE_ENV=test mocha --watch",
|
||||
"test-once": "npm run test-unit-once",
|
||||
"test-unit-once": "NODE_ENV=test mocha",
|
||||
"clean-deps": "rm -rf node_modules",
|
||||
|
||||
Reference in New Issue
Block a user