Skip to content

Can you give a valid cucumber-js example? #34

@HermansJarno

Description

@HermansJarno

This is my junit file:

<?xml version="1.0" encoding="UTF-8"?> <testsuites tests="1" failures="0" errors="0" skipped="0"> <testsuite name="Zoekopdracht op google" timestamp="2024-10-14T08:39:03" time="6.184" tests="1" failures="0" errors="0" skipped="0"> <properties> <property name="specId" value="0"/> <property name="featureName" value="Zoekopdracht op google"/> <property name="capabilities" value="chrome.129_0_6668_59.windows"/> <property name="featureFile" value="file:///C:/APPS/test-project/tests/features/google-voorbeeld.feature"/> </properties> <testcase classname="CucumberJUnitReport-chrome.129_0_6668_59.windows.Zoekopdracht op google" name="abc" time="5.489"> <system-out><![CDATA[ ✅ Gegeven dat de google zoekpagina geladen is✅ Als er wordt gezocht naar "ABC"✅ Dan wordt "abc.nl" als eerste resultaat getoond ]]></system-out> </testcase> </testsuite> </testsuites>

This is my feature file:

`#Auto generated Octane revision tag
@BSPID40002REV0.2.0
Feature: Zoekopdracht op google
"""
Als ABC
Wil ik controleren dat ABC het eerste resultaat is op Google
Zodat ABC snel te vinden is
"""

@TSCID247004
Scenario: abc
Given dat de google zoekpagina geladen is
When er wordt gezocht naar "ABC"
Then wordt "ABC.nl" als eerste resultaat getoond`

This my output in commandline:
java -jar "C:\temp_TA\bdd2octane-1.1.9.jar" --framework="cucumber-js" --reportFiles="**/junit-report.xml" --featureFiles="**/tests/features/*.feature" --resultFile="bdd2octane\octane-report.xml" All xml files matching pattern "**/junit-report.xml": junit-report.xml All feature files matching pattern "**/tests/features/*.feature": tests\features\google-voorbeeld.feature Feature name is empty in element: <testsuite tests="1" failures="0" name="Zoekopdracht op google" time="6.184" errors="0" timestamp="2024-10-14T08:39:03" skipped="0" >...</testsuite> try searching by scenario name Cannot locate a feature file by scenario name for: Zoekopdracht op google, skipping... 0 test case(s) processed 1 test case(s) skipped

The cucumber version and junit version is imo irrelevant for this issue. We've tried to adjust our junit to the unit test examples in this repository but no success. Please provide a working example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions