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

Refactored persistence integration tests not to require Glassfish #2618

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

lbownik
Copy link
Contributor

@lbownik lbownik commented Jan 9, 2025

The proposal is to remove the necessity of running Glassfish to run integration tests. By manually instantiating EntityManager, integration tests are run just like ordinary JUnit tests. This also speeds up test suite execution.

The intention is to refactor integration tests in dataverse-webapp to use this solution and not require Glassfish at all.

I am aware that this does not mimic she Glassfish runtime (transactions not present), and some rare bugs might not be detected, but I think that having a fast, sefl-contained test suite that can be run more frequently offsets this.

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.

1 participant