Gitlab Version: v14.1.1
Gitlab pipeline is succeeding even though there is a failed test cases in unit test:
unit-test:
stage: Test
script:
- npm run test
needs:
- lint
artifacts:
when: always
paths:
- coverage
reports:
junit:
- junit.xml
cobertura:
- coverage/cobertura-coverage.xml
expire_in: 4 days
only:
- test-case-testing
- merge_requests
Test Results:
How can I abort the Gitlab pipeline when there are any failed test cases?