DaGeRe / issuetest

0 stars 0 forks source link

Imported: JUnit @BeforeClass/@AfterClass as neccessary cleanup #10

Closed DaGeRe closed 3 years ago

DaGeRe commented 3 years ago

This issue has been imported from an old repository. It was originally created by @Schattensilber at 2021-03-11T14:20:15Z with number #10

In our project the unit tests cannot be run repetitiously without resetting the state through @AfterClass and @BeforeClass. peass does not run these functions between repetitions. I understand that this is sometimes counterproductive to measurement speed. Is it possible to get this feature as an option?

DaGeRe commented 3 years ago

This comment has been imported from an old repository. It was originally created by @DaGeRe at 2021-03-11T14:22:39Z

Yes, we'll implement this and give you an update when it works.

DaGeRe commented 3 years ago

This comment has been imported from an old repository. It was originally created by @DaGeRe at 2021-03-12T20:49:19Z

I've implemented a basic version in KoPeMe, you just need to set executeBeforeClassInMeasurement = true in the @PerformanceTest annotation (https://github.com/DaGeRe/KoPeMe/commit/785687d80235cb383aa7b65fa1f13b9c9dfc4ceb). Would it be possible that you try this once manually before I add this to Peass and Peass-CI?