Hi,
I am relatively new to Cucumber ...just trying to execute basic cucumber tests..have created the feature file at correct path and using following command in dos
mvn clean test
but am getting error
Tests in error:
initializationError(fundtransfer.test.RunCukesTest): No features found at [cla
sspath:fundtransfer/test]
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
RunCukesTest.java package fundtransfer.test;
import cucumber.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@Cucumber.Options(format = {"pretty", "html:target/cucumber-htmlreport",
"json-pretty:target/cucumber-report.json"})
public class RunCukesTest {
}
Complete Stack Trace:C:\Users\jbhano\workspace\FundTransfer>mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building FundTransfer 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ FundTransfer ---
[INFO] Deleting C:\Users\jbhano\workspace\FundTransfer\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ FundTrans
er ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ FundTransfer
---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ F
ndTransfer ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ Fund
ransfer ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e.
uild is platform dependent!
[INFO] Compiling 2 source files to C:\Users\jbhano\workspace\FundTransfer\targe
\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ FundTransfer ---
[INFO] Surefire report directory: C:\Users\jbhano\workspace\FundTransfer\target
surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running fundtransfer.test.RunCukesTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.493 sec <<< F
ILURE!
Results :
Tests in error:
initializationError(fundtransfer.test.RunCukesTest): No features found at [cl
sspath:fundtransfer/test]
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.589s
[INFO] Finished at: Fri May 10 12:53:51 IST 2013
[INFO] Final Memory: 15M/171M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2
10:test (default-test) on project FundTransfer: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\jbhano\workspace\FundTransfer\target\surefire-
eports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swi
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please re
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExeption
C:\Users\jbhano\workspace\FundTransfer>
Could you kindly point me to right direction?
Thanks,
Jag