output test result in ci

This commit is contained in:
Pig Fang 2019-02-16 17:31:21 +08:00
parent 3ddb560e33
commit 2e81094d15
3 changed files with 57 additions and 1363 deletions

View File

@ -36,9 +36,15 @@ jobs:
mysql -uroot -proot -e 'CREATE DATABASE IF NOT EXISTS test;'
displayName: 'Prepare testing environment'
- script: ./vendor/bin/phpunit
- script: ./vendor/bin/phpunit --log-junit junit.xml
displayName: Test
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: JUnit
testResultsFiles: './junit.xml'
- job: javascript
displayName: JavaScript and Vue Test
pool:
@ -53,5 +59,11 @@ jobs:
- script: |
yarn lint
yarn test --verbose --coverage
yarn test --ci --reporters=default --reporters=jest-junit --coverage
displayName: 'Run Test'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: JUnit
testResultsFiles: './junit.xml'

View File

@ -64,6 +64,7 @@
"file-loader": "^2.0.0",
"jest": "^23.6.0",
"jest-extended": "^0.10.0",
"jest-junit": "^6.3.0",
"json-loader": "^0.5.7",
"listr": "^0.14.2",
"mini-css-extract-plugin": "^0.4.3",

1403
yarn.lock

File diff suppressed because it is too large Load Diff