Comments (8)
@jpschewe
Try to use one annotation. In your code I found lines like these:
@Test
@RepeatedIfExceptionsTest(repeats = 3)
public void testFullTournament(final WebDriver selenium) throws IOException ...{
//Body
}
@RepeatedIfExceptionsTest and Test have their own behavior and you mustn't use them together.
Delete annotation "Test" and use only one @RepeatedIfExceptionsTest if you need repetitions.
Does this solution was helping you, give an answer, please?
from rerunner-jupiter.
Hey @jpschewe,
I tried what you said, but i didn't get exception as you had.
I set dependences,
<dependency>
<groupId>io.github.artsok</groupId>
<artifactId>rerunner-jupiter</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
Tests run without NullPointerException.
Could you send test project with exception which you got with rerunner-jupiter?
from rerunner-jupiter.
@jpschewe Do you run your test in parallel? With @execution(ExecutionMode.CONCURRENT)
from rerunner-jupiter.
I'm not running in parallel.
I am running a selenium test. The failing test is at https://github.com/jpschewe/fll-sw/blob/rerunner-2.0.1/src/integrationTest/java/fll/web/FullTournamentTest.java
The build is done with gradle on a Windows system inside Jenkins.
I will work on getting you a smaller test case as I realize this is a very large test that may be hard to execute otherwise. If I can't get a smaller test, is there other diagnostic information that I can gather from the execution to determine what the problem is?
from rerunner-jupiter.
Yes, that works. I didn't realize that this annotation replaces the Test annotation.
from rerunner-jupiter.
@jpschewe
Push to the Github star, if you like this JUnit 5 Extension. Thx!
https://github.com/artsok/rerunner-jupiter/stargazers
from rerunner-jupiter.
I mistakenly bumped into this as well. I vote that the README or docs clarify that @RepeatedIfExceptionsTest
is intended to replace the @Test
annotation.
from rerunner-jupiter.
This is a quite a flaky mechanism if additional Test annotation throws off the initialization of whole extension.
from rerunner-jupiter.
Related Issues (20)
- Try to use rerunner-jupiter at Jenkins
- Remove JUnit 4 compile dependency HOT 1
- @ParameterizedRepeatedIfExceptionsTest test status is failed for any repetion HOT 14
- Can I use this plugin with the theory tag? HOT 2
- Number of retries must be a constant and hardcoded HOT 2
- HTML report output is empty for all tests that have rerun
- Usage with AssertJ possible? HOT 4
- Concurrent Modification Exception when using with parallel test execution
- Enable the ability to use Rerunner-jupiter annotations in a composed annotation.
- stop retry when same exceptions occurred
- README should mention that ExecutionMode.CONCURRENT is not supported
- messageRegex and traceRegex?
- Create release for latest code base
- MinSuccess is not respected if there was a previous fail
- NullPointerException if RepeatedTest is cancelled
- java.lang.NullPointerException
- Unable to instantiate driver for failed test Serenity and Junit 5
- PreconditionViolationException
- Maven tests that are having @RepeatedIfExceptionsTest which are under src/main/java are not getting executed HOT 1
- duplicate testing in serenity report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rerunner-jupiter.