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

Four levels of testing- fixed

parent cc9cd8d0
No related branches found
No related tags found
No related merge requests found
pipeline {
agent any // Or your specific agent label
agent {
docker {
image 'your-java-image'
}
}
services {
// Run MariaDB as a service container
docker {
image 'mariadb:10.11'
args '-e MYSQL_ROOT_PASSWORD=comsc -e MYSQL_DATABASE=healthcare_test'
}
}
// Define reusable environment variables.
environment {
......@@ -78,6 +90,12 @@ pipeline {
}
}
stage('Test') {
steps {
sh './gradlew test --exclude "**/mapper/**"'
}
}
stage('Optional UI Tests') {
steps {
// Run Selenium UI tests. If not configured (or if they fail), the || true ensures the build continues.
......
spring:
datasource:
url: jdbc:h2:mem:testdb;MODE=MySQL
username: sa
password:
driver-class-name: org.h2.Driver
jpa:
hibernate:
ddl-auto: create-drop
database-platform: org.hibernate.dialect.H2Dialect
sql:
init:
mode: always
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment