-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TestNG] Add CucumberPropertiesProvider
#2351
Conversation
2. Read cucumber options from testNG.xml parameters
testng/src/test/java/io/cucumber/testng/TestNGCucumberRunnerTest.java
Outdated
Show resolved
Hide resolved
testng/src/main/java/io/cucumber/testng/TestNGCucumberRunner.java
Outdated
Show resolved
Hide resolved
testng/src/main/java/io/cucumber/testng/TestNGCucumberRunner.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I've extracted out the properties provider. We just need to sort out the precedence of the different property sources.
Codecov Report
@@ Coverage Diff @@
## main #2351 +/- ##
============================================
+ Coverage 83.36% 83.37% +0.01%
- Complexity 2320 2322 +2
============================================
Files 300 300
Lines 8272 8278 +6
Branches 750 750
============================================
+ Hits 6896 6902 +6
Misses 1079 1079
Partials 297 297
Continue to review full report at Codecov.
|
Don't worry about the semver chechk failing. That can be solved later. |
@mpkorstanje is there anything else I need to do ? |
No looks good. I'm going to have to have a look at the semver problem. |
CucumberPropertiesProvider
Hi @GayanSandaruwan, Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾 In return for this generous offer we hope you will:
On behalf of the Cucumber core team, |
All done. Can't use the @BeforeClass(alwaysRun = true)
public void setUpClass(ITestContext context) {
XmlTest currentXmlTest = context.getCurrentXmlTest();
CucumberPropertiesProvider properties = currentXmlTest::getParameter;
testNGCucumberRunner = new TestNGCucumberRunner(this.getClass(), properties);
} |
is there anyway to figure out if this commit has been included in the latest release ? |
You can see the tags that include the commit by clicking on it. Commits are squash merged so you'll want db3e17b |
#2349
problem
Cannot configure different test suits of same run with different cucumber options.
Describe the solution you have implemented
Additional context


See test Execution results.