output test result in ci
This commit is contained in:
parent
3ddb560e33
commit
2e81094d15
@ -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'
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user