GithubHelp home page GithubHelp logo

Comments (2)

bessonm avatar bessonm commented on September 2, 2024 1

Perfect !
Indeed, downgrading junit vintage from 5.4.0 to 5.3.2 was the missing piece to run Cucumber !

Thanks ;)

from glacio-examples.

ledoyen avatar ledoyen commented on September 2, 2024

Thanks for the feedback early-tester 😄

It seems that you removed too much.

Currently the project you provided uses an old version of the maven-surefire-plugin (2.12.4 by default), only compatible with JUnit4.

In this configuration, only Cucumber can run as JUnit4 cannot run the Glacio engine, built for JUnit-Platform (platform appearing with JUnit5).

To solve your issue, I would :

  • upgrade to the latest version of maven-surefire-plugin which (from version 2.21 if I recall correctly) launches platform-engines instead of using the Junit4 provider
  • add junit-vintage-engine in the dependencies, which is the platform-engine running JUnit4 tests (that is to keep Cucumber tests running)

A word of caution however: as junit-platform is evolving quickly, they may be some breaking changes, In order to work properly, I would keep the same version of the platform used by Glacio for now so, adding to your pom.xml:

    <dependencies>
        ...
        <dependency>
            <groupId>org.junit.vintage</groupId>
            <artifactId>junit-vintage-engine</artifactId>
            <version>5.3.2</version> <!-- not 5.4.1, which will not be able to run Glacio engine (still using 5.3.2) -->
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${maven-surefire-plugin.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

should do the trick

from glacio-examples.

Related Issues (1)

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.