Forum Discussion

erodzrivera's avatar
erodzrivera
Occasional Visitor
4 years ago

Values in Maven Profile when using Cucumber Java with TestNG

I am using Cucumber Java with TestNG and found that when I run the test from the feature file, values from the Maven profiles are not picked up. If I run it from the test runner class, they are. Is there some best practice or approach I need to follow for these values to be accessible in both ways? I am using surefire at the moment.

No RepliesBe the first to reply