Code Monkey home page Code Monkey logo

Comments (8)

artsok avatar artsok commented on May 28, 2024 4

@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.

artsok avatar artsok commented on May 28, 2024

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>

USED DEPS:
изображение

Tests run without NullPointerException.

Could you send test project with exception which you got with rerunner-jupiter?

from rerunner-jupiter.

artsok avatar artsok commented on May 28, 2024

@jpschewe Do you run your test in parallel? With @execution(ExecutionMode.CONCURRENT)

from rerunner-jupiter.

jpschewe avatar jpschewe commented on May 28, 2024

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.

jpschewe avatar jpschewe commented on May 28, 2024

Yes, that works. I didn't realize that this annotation replaces the Test annotation.

from rerunner-jupiter.

artsok avatar artsok commented on May 28, 2024

@jpschewe
Push to the Github star, if you like this JUnit 5 Extension. Thx!
https://github.com/artsok/rerunner-jupiter/stargazers

from rerunner-jupiter.

eriwen avatar eriwen commented on May 28, 2024

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.

bratwurzt avatar bratwurzt commented on May 28, 2024

This is a quite a flaky mechanism if additional Test annotation throws off the initialization of whole extension.

from rerunner-jupiter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.