Hi Aslak,
I am getting a blank xml file.
It just has the suite information as below
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
<property name="repo" value="https://oss.sonatype.org/content/
repositories/releases"/>
<property name="cucumber-jvm.version" value="1.0.2"/>
<property name="cucumber-html.version" value="0.2.1"/>
<property name="gherkin.version" value="2.9.3"/>
<property name="test.classes" value="${basedir}/target/test-classes"/
<property name="jars" value="lib"/>
<property name="dotgem.parent" value="${basedir}/lib"/>
<target name="download">
<mkdir dir="${jars}"/>
<get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
dest="${jars}/gherkin-${gherkin.version}.jar"/>
<get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
</target>
<target name="clean" description="Delete all generated artifacts">
<delete dir="${basedir}/target" failonerror="false"/>
<!-- Necessary for our Eclipse project which points to the same
output folder -->
<mkdir dir="${test.classes}"/>
</target>
<target name="classpath" depends="clean">
<path id="classpath">
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</path>
</target>
<!--<target name="compile" depends="classpath">-->
<!--<mkdir dir="target/classes"/>-->
<!--<javac srcdir="src/main/java" destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
<!--</target>-->
<!--<target name="compile" depends="classpath">
<mkdir dir="target/test-classes"/>
<javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
</target>-->
<target name="compile" depends="clean" description="Compile test
classes">
<copy todir="${test.classes}" overwrite="true">
<fileset dir="src">
<include name="**/*.properties"/>
</fileset>
</copy>
<javac srcdir="src" destdir="${test.classes}" debug="true"
debuglevel="lines,source">
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<echo taskname="waitfor" message="${executeTags}" />
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<!--<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>-->
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="TEST-*.xml"/>
</fileset>
<report format="noframes" todir="target/junit-report/html"/>
</junitreport>
</target>
</project>
Is there any other method to generate a report where i can get the
total number of scenarios passed and failed.
I am able to create a html report but it does not have a summary, I
need a summary
Thanks,
Akanksha
Post by akankshaHi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead. Can
we see it please?
Aslak
Post by akankshaThe format is generated but there is no data
A summary table as below gets generated but has no data
Summary
Tests Failures Errors Success rate Time
0 0 0 NaN 0.000
Note: failures are anticipated and checked for with assertions while
errors are unanticipated.
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
[java] 1650 steps (11 failed, 8 skipped, 1631 passed)
[java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but it does
not work
"it does not work" usually doesn't provide enough information to help anyone.
<arg value="--format"/>
<arg value="junit:output"/>
<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="TEST-*.xml"/>
</fileset>
<reportformat="noframes" todir="target/junit-report/html"/>
</junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
-- There are two rules:
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en