On Friday, 19 April 2013 at 05:36, Prashanth T.V wrote:
Hi Aslak/All,I have been using Cucumber with JVM recently and I was successfully able to run my cucumber tests through eclipse. I'm very new to Maven. When I compile and run my tests through Maven, it shows as Build Success, But no tests are getting picked and it is not run.
Could you please help me in this regard.I have been using Cucumber with Java and have used cucumber jars along with Selenium jars in my dependency list in POM.XMLPlease find attached, the screen shot of my eclipse project(which indicates the folder structure of my project) and my POM.XML as well for your reference.Below is the stack trace when I ran it from the command prompt:E:\prashanth\mvntimesgroup>mvn integration-test[INFO] Scanning for projects...[INFO][INFO] ------------------------------------------------------------------------[INFO] Building mvntimesgroup 1.0-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO][INFO] --- build-helper-maven-plugin:1.8:add-test-source (add-source) @ mvntimesgroup ---[INFO] Test Source directory: E:\prashanth\mvntimesgroup\src\test\java added.[INFO][INFO] --- build-helper-maven-plugin:1.8:add-test-resource (add-resource) @ mvntimesgroup ---[INFO][INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mvntimesgroup ---[debug] execute contextualize[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] skip non existing resourceDirectory E:\prashanth\mvntimesgroup\src\main\resources[INFO][INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mvntimesgroup ---[INFO] Nothing to compile - all classes are up to date[INFO][INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mvntimesgroup ---[debug] execute contextualize[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] Copying 1 resource[INFO] Copying 1 resource[INFO][INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mvntimesgroup ---[INFO] Nothing to compile - all classes are up to date[INFO][INFO] --- maven-surefire-plugin:2.14.1:test (default-test) @ mvntimesgroup ---[INFO] Tests are skipped.[INFO][INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ mvntimesgroup ---[INFO] Building jar: E:\prashanth\mvntimesgroup\target\cuke-jvm-example.jar[INFO][INFO] >>> jetty-maven-plugin:8.1.10.v20130312:run (start-jetty) @ mvntimesgroup>>>[INFO][INFO] --- build-helper-maven-plugin:1.8:add-test-source (add-source) @ mvntimesgroup ---[INFO] Test Source directory: E:\prashanth\mvntimesgroup\src\test\java added.[INFO][INFO] --- build-helper-maven-plugin:1.8:add-test-resource (add-resource) @ mvntimesgroup ---[INFO][INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mvntimesgroup ---[debug] execute contextualize[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] skip non existing resourceDirectory E:\prashanth\mvntimesgroup\src\main\resources[INFO][INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mvntimesgroup ---[INFO] Nothing to compile - all classes are up to date[INFO][INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mvntimesgroup ---[debug] execute contextualize[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] Copying 1 resource[INFO] Copying 1 resource[INFO] Copying 1 resource[INFO][INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mvntimesgroup ---[INFO] Nothing to compile - all classes are up to date[INFO][INFO] <<< jetty-maven-plugin:8.1.10.v20130312:run (start-jetty) @ mvntimesgroup<<<[INFO][INFO] --- jetty-maven-plugin:8.1.10.v20130312:run (start-jetty) @ mvntimesgroup---[INFO] Configuring Jetty for project: mvntimesgroup[INFO] webAppSourceDirectory not set. Defaulting to E:\prashanth\mvntimesgroup\src\main\webapp[INFO] Reload Mechanic: automatic[INFO] Classes = E:\prashanth\mvntimesgroup\target\classes[INFO] Context path = /[INFO] Tmp directory = E:\prashanth\mvntimesgroup\target\tmp[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml[INFO] Web overrides = none[INFO] web.xml file = null[INFO] Webapp directory = E:\prashanth\mvntimesgroup\src\main\webapp2013-04-19 10:00:16.564:INFO:oejs.Server:jetty-8.1.10.v201303122013-04-19 10:00:20.639:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.2013-04-19 10:01:46.872:INFO:oejs.AbstractConnector:Started SelectChannelConnect[INFO] Started Jetty Server[INFO][INFO] --- maven-failsafe-plugin:2.12:integration-test (integration-test) @ mvntimesgroup ---[INFO] Failsafe report directory: E:\prashanth\mvntimesgroup\target\failsafe-reports-------------------------------------------------------T E S T S-------------------------------------------------------Results :Tests run: 0, Failures: 0, Errors: 0, Skipped: 0[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent![INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 1:36.468s[INFO] Finished at: Fri Apr 19 10:01:47 IST 2013[INFO] Final Memory: 39M/395M[INFO] ------------------------------------------------------------------------2013-04-19 10:01:48.490:INFO:oejsl.ELContextCleaner:javax.el.BeanELResolver purged2013-04-19 10:01:48.492:INFO:oejsh.ContextHandler:stopped o.m.j.p.JettyWebAppContext{/,file:/E:/prashanth/mvntimesgroup/src/main/webapp},file:/E:/prashanth/mvntimesgroup/src/main/webappRegardsPrashanth--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Attachments:- pom.xml
Hi Aslak/All,I have been using Cucumber with JVM recently and I was successfully able to run my cucumber tests through eclipse. I'm very new to Maven. When I compile and run my tests through Maven, it shows as Build Success, But no tests are getting picked and it is not run. Could you please help me in this regard.
I don't understand what you are telling us to do Aslak.I have been using maven to run test scripts but when I updated to 1.13 everything stopped working. I am currently using 1.12 again as I couldn't figure out why no tests were running.Can you please use a code example?
I am not really sure what you are looking for.
I am not with the OP - I will see if I can get you a github repo to use - currently its under my company repo (private).In the meantime, I attached a few key files for you to look at.
This is what I see when I run:-------------------------------------------------------T E S T S-------------------------------------------------------Running CucumberTestlog4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).log4j:WARN Please initialize the log4j system properly.@selenium @browseFeature: Browse TestsAs a userI should be able to browser through all productsfilter my resultsand click an item to view the Product Detail Page.Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.532 sec <<< FAILURE!Results :Tests in error:Feature: Browse Tests: -1Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
--
-------------------------------------------------------T E S T S-------------------------------------------------------
Results :Tests run: 0, Failures: 0, Errors: 0, Skipped: 0[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent![INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:36.468s[INFO] Finished at: Fri Apr 19 10:01:47 IST 2013[INFO] Final Memory: 39M/395M[INFO] ------------------------------------------------------------------------2013-04-19 10:01:48.490:INFO:oejsl.ELContextCleaner:javax.el.BeanELResolver purged2013-04-19 10:01:48.492:INFO:oejsh.ContextHandler:stopped o.m.j.p.JettyWebAppContext{/,file:/E:/prashanth/mvntimesgroup/src/main/webapp},file:/E:/prashanth/mvntimesgroup/src/main/webapp
RegardsPrashanth
On Wednesday, 24 April 2013 at 05:05, Prashanth T.V wrote:
Hi Aslak,Did you get a chance to look into my cucumber project which I had posted in github.