setup coverate report generation
This commit is contained in:
16
Dockerfile.coverage.simple
Normal file
16
Dockerfile.coverage.simple
Normal file
@ -0,0 +1,16 @@
|
||||
FROM maven:3.8.6-openjdk-8
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy pom.xml and source files
|
||||
COPY pom.xml .
|
||||
COPY src ./src
|
||||
|
||||
# Run tests with coverage
|
||||
RUN mvn clean test
|
||||
|
||||
# Generate coverage report
|
||||
RUN mvn jacoco:report
|
||||
|
||||
# Show the coverage report location
|
||||
RUN echo "Coverage report is available in target/site/jacoco/"
|
||||
Reference in New Issue
Block a user