You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
example project - https://github.com/pavinil/karate-multi-module
Background - I am tasked with migrating a fairly large karate api testing project from version 0.9.6 to 1.4.0. This project is currently a single maven module that has separate folders for testing around 10 different services. Separate teams work on specific folders, adding tests for the services that they test. It uses Karate version 0.9.6
Migrating all services to 1.4.0 at once is currently not feasible as multiple teams are involved. One solution was to convert the project to a multi module project, with each module using its own version of karate.
The multi module approach works with one execption. Running individual scenarios using Intellij always uses the latest version of karate (1.4.0), even when that module(in which the feature file lives) is configured to use an older version. This issue does not occur when triggering all tests from the runner file.
In the attached example, service A uses version 0.9.6, while service B uses version 1.4.0. Clicking the run button next to serviceA.feature runs the scenario using version 1.4.0, instead of 0.9.6
Intellij Plugin version - 1.7.4.325
Intellij version - 2022.2.2 Community
The text was updated successfully, but these errors were encountered:
@pavinil 0.9.6 is such an old version that I don't think we can support this use-case for now, but we can check.
in the meantime, the workaround I suggest is that you use "throwaway" JUnit runners to run features, scenarios, etc. and you have all the flexibility of setting tags, etc if needed.
if you use JUnit5 you can have multiple entry-points in one JUnit file, like this example - and you should be able to run one at a time using IntelliJ-s JUnit integration. of course using the Runner API from any Java class (even a main method) is an option
@ptrthomas Thank you for agreeing to check on this. This will really help in making our migration feel seamless. Meanwhile, I will try your suggested workaround and report back.
example project - https://github.com/pavinil/karate-multi-module
Background - I am tasked with migrating a fairly large karate api testing project from version 0.9.6 to 1.4.0. This project is currently a single maven module that has separate folders for testing around 10 different services. Separate teams work on specific folders, adding tests for the services that they test. It uses Karate version 0.9.6
Migrating all services to 1.4.0 at once is currently not feasible as multiple teams are involved. One solution was to convert the project to a multi module project, with each module using its own version of karate.
The multi module approach works with one execption. Running individual scenarios using Intellij always uses the latest version of karate (1.4.0), even when that module(in which the feature file lives) is configured to use an older version. This issue does not occur when triggering all tests from the runner file.
In the attached example, service A uses version 0.9.6, while service B uses version 1.4.0. Clicking the run button next to serviceA.feature runs the scenario using version 1.4.0, instead of 0.9.6
Intellij Plugin version - 1.7.4.325
Intellij version - 2022.2.2 Community
The text was updated successfully, but these errors were encountered: