cucumberintegration.jpgI am working on test framework api for API Proxies using cucumber and apicklis.
As suggested github I have followed the steps but while packing the proxies (deployed proxies in edge successfully) integration testcases got failed and tried so many ways.
Taken sample project from the below url:
https://github.com/sauliuz/amok/tree/master/examples/apigee-amok
Below changes are updated in the pom file.
<!-- run cucumber / apickli tests --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.3.2</version> <executions> <!-- run integration tests --> <execution> <id>integration</id> <phase>install</phase> <goals> <goal>exec</goal> </goals> <configuration> <environmentVariables> <NODE_ENV> test </NODE_ENV> </environmentVariables> <executable>C:/Users/kumarpuli/AppData/Roaming/npm/cucumberjs</executable> <commandlineArgs> tests/integration </commandlineArgs> </configuration> </execution> </executions> </plugin>
Please help me to resolve the issue.
Solved! Go to Solution.
You did not correct the pom file as per provided instructions.
Your current pom fragment is:
<executable>tests/node_modules/cucumber/bin/cucumber.js</executable> <commandlineArgs> tests/integration </commandlineArgs>
It should be:
<executable>node</executable><commandlineArgs> tests/node_modules/cucumber/bin/cucumber.js tests/integration </commandlineArgs>