quick-perf / quickperf

QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties
https://github.com/quick-perf/doc/wiki/QuickPerf
Apache License 2.0
469 stars 67 forks source link

QuickPerfSpringRunner did not call the Spring TestExecutionListener instances after the test method execution #135

Closed jeanbisutti closed 3 years ago

jeanbisutti commented 3 years ago

Bug example

@RunWith(QuickPerfSpringRunner.class)
@Import(QuickPerfSqlConfig.class)
@DataJpaTest()
public class QuickPerfSpringRunnerAfterTest {

    @Autowired
    private TestEntityManager testEntityManager;

    @Test
    public void should_find_all_players() {
    }

    @After
    public void after() {
        Player player = new Player();
        testEntityManager.persist(player);
    }

}

Exception: No transactional EntityManager found