Skip to content
Snippets Groups Projects

Fix tests by disabling DirtiesContext with Transactional

The @Transactional annotations at the top of every test suite will guarantee that the tests including their @BeforeEach annotations are transactional and that changes will be rolled back when the test finishes.

DirtiesContext is used for marking the full application context as dirty, this restarts Spring at the end or start of every test or test suite.

Merge request reports

Merge train pipeline #317157 passed

Merge train pipeline passed for 624ce382

Merged by Otto VisserOtto Visser May 4, 2020 (May 4, 2020 2:36pm UTC)

Loading

Pipeline #317166 passed

Pipeline passed for 0af95b20 on development

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading