Skip to content
Snippets Groups Projects
Commit 7f9e1e70 authored by Burhan Akbar's avatar Burhan Akbar
Browse files

Four levels of testing v2

parent 58f073a8
No related branches found
No related tags found
No related merge requests found
......@@ -38,21 +38,22 @@ pipeline {
stage('Build') {
steps {
sh 'chmod +x gradlew'
sh './gradlew --no-daemon clean build --rerun-tasks'
// Skip tests during build
sh './gradlew --no-daemon clean assemble'
}
}
stage('Test') {
steps {
// Exclude repository tests that need a database
sh './gradlew test --exclude "**/mapper/**"'
// Run all tests except mapper tests
sh './gradlew test --tests "com.cardiff.*" --tests "!com.cardiff.client_project.mapper.*"'
}
}
stage('Optional UI Tests') {
steps {
// Run UI tests but don't fail the build if they fail
sh './gradlew test -Dtest="*Selenium*Test" || true'
sh './gradlew test --tests "*Selenium*" || true'
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment