提交 3331e426 编写于 作者: J Johannes Rieken

add browser tests to continous builds

上级 21b671d9
...@@ -41,6 +41,9 @@ steps: ...@@ -41,6 +41,9 @@ steps:
- script: | - script: |
./scripts/test.sh --tfs "Unit Tests" ./scripts/test.sh --tfs "Unit Tests"
displayName: Run Unit Tests displayName: Run Unit Tests
- script: |
yarn browser-test
displayName: Run Unit Tests (Browsers)
- script: | - script: |
./scripts/test-integration.sh --tfs "Integration Tests" ./scripts/test-integration.sh --tfs "Integration Tests"
displayName: Run Integration Tests displayName: Run Integration Tests
......
...@@ -49,6 +49,9 @@ steps: ...@@ -49,6 +49,9 @@ steps:
- script: | - script: |
DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests" DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests"
displayName: Run Unit Tests displayName: Run Unit Tests
- script: |
DISPLAY=:10 yarn browser-test
displayName: Run Unit Tests (Browser)
- script: | - script: |
DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests" DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests"
displayName: Run Integration Tests displayName: Run Integration Tests
......
...@@ -46,6 +46,9 @@ steps: ...@@ -46,6 +46,9 @@ steps:
- powershell: | - powershell: |
.\scripts\test.bat --tfs "Unit Tests" .\scripts\test.bat --tfs "Unit Tests"
displayName: Run Unit Tests displayName: Run Unit Tests
- powershell: |
yarn browser-test
displayName: Run Unit Tests (Browser)
- powershell: | - powershell: |
.\scripts\test-integration.bat --tfs "Integration Tests" .\scripts\test-integration.bat --tfs "Integration Tests"
displayName: Run Integration Tests displayName: Run Integration Tests
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"test": "mocha", "test": "mocha",
"test-browser": "node test/browser/index.js --browser webkit --browser chromium",
"preinstall": "node build/npm/preinstall.js", "preinstall": "node build/npm/preinstall.js",
"postinstall": "node build/npm/postinstall.js", "postinstall": "node build/npm/postinstall.js",
"compile": "gulp compile --max_old_space_size=4095", "compile": "gulp compile --max_old_space_size=4095",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册