I have updated the cucumber version from 4.2.6 to latest 4.x version which is 4.8.1. (why not use latest 5.x version ? this is a major update, however I don’t think I need those 5.x new features. So I will keep staying with version 4.x until there is something interested )
I had to refactor the code to adapt those new changes introduced from version 4.5.0. In this version , it changed many things such as CucumberOptions Scenario TestNGCucumberRunner AbstractTestNGCucumberTests io.cucumber.java.*(En).
You simply just need to replace cucumber.api to io.cucumber. Everything works the same as before, no thing is broken.
Detail Changed in 4.5.0
- [JUnit] JUnit will no longer run in verbose mode by default (#1670 M.P. Korstanje)
- Add
summaryand/orprogressplugins to restore output
- Add
- [TestNG] TestNG will no longer run in verbose mode by default (#1670 M.P. Korstanje)
- Add
summaryand/orprogressplugins to restore output
- Add
- [Java] Use ServiceLoader for Guice, Needle, OpenEJB, Pico, Spring and Weld
ObjectFactoryimplementations.- Removes spurious deprecation warning.
- Moves
ObjectFactoryimplements toio.cucumber.<module-name>package.
Deprecated
- [Core] Deprecate
cucumber.api.CucumberOptions(#1670 M.P. Korstanje)- Use
io.cucumber.junit.CucumberOptionsorio.cucumber.testng.CucumberOptionsinstead
- Use
- [Core] Deprecate
cucumber.api.cli.Main(#1670 M.P. Korstanje)- Use
io.cucumber.core.cli.Maininstead
- Use
- [Core] Deprecate
cucumber.api.Scenario- Use
io.cucumber.core.api.Scenarioinstead
- Use
- [Java] Deprecate
cucumber.api.java.*- Use
io.cucumber.java.*instead
- Use
- [Java] Deprecate
cucumber.api.java8.*- Use
io.cucumber.java8.*instead
- Use
- [JUnit] Deprecate
cucumber.api.junit.Cucumber- Use
io.cucumber.junit.Cucumberinstead.
- Use
- [TestNG] Deprecate
cucumber.api.testng.TestNGCucumberRunner- Use
io.cucumber.testng.TestNGCucumberRunnerinstead.
- Use
- [TestNG] Deprecate
cucumber.api.testng.AbstractTestNGCucumberTests- Use
io.cucumber.testng.AbstractTestNGCucumberTestsinstead.
- Use
- [Needle] Deprecate
cucumber.api.needle.*- Use
io.cucumber.needle.*instead.
- Use
- [Spring] Deprecate
cucumber.api.spring.SpringTransactionHooks- It is recommended to implement your own transaction hooks.
- Will allow the dependency on
spring-txnto be removed.