Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code coverage it #183

Merged
merged 22 commits into from
Dec 14, 2023
Merged

Code coverage it #183

merged 22 commits into from
Dec 14, 2023

Conversation

thelarsjohansson
Copy link
Collaborator

Repair and refactor integration tests with Docker containers.
Add code coverage.

Welcome to have a look!

Update testcontainers version to 1.19.1.
Update use of compose to Docker Compose V2.
Refactor integration tests.
Add profile for integration tests with Docker.
Add use of Maven failsafe plugin.
Add code coverage for integration tests with Docker.
By default, code coverage is disabled.
JUnit5 test classes and methods should have default package visibility
Unnecessary imports should be removed
Lambdas containing only one statement should not nest this statement in a block
Modifiers should be declared in the correct order
Printf-style format strings should be used correctly
Ensure consistent handling of loggers and log levels.
Invoke log formatting conditionally.
Collect log texts and use formatted strings in logging.
Add integration tests for search endpoint for logs.
Update testcontainers version to 1.19.3.
Copy link
Member

@georgweiss georgweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do I run integration tests from command line?

@thelarsjohansson
Copy link
Collaborator Author

To build and run all unit tests and integration tests (Docker) with code coverage

  • mvn clean install test-compile failsafe:integration-test failsafe:verify verify --batch-mode --fail-at-end -Djacoco.skip=false -DskipITs=false -DskipITCoverage=false -Pdeployable-jar -Pintegrationtest-docker

More information is available in README.md, section Integration tests with Docker containers, that points to How to run and Tutorial.

@shroffk shroffk merged commit c87bfff into master Dec 14, 2023
3 checks passed
@thelarsjohansson thelarsjohansson deleted the code-coverage-it branch January 9, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants