question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Courgette Reporter shows testname with "2" appended to it

See original GitHub issue

When running my tests, the report xml generated always appends “2” after each test name. Digging through the courgrette files generate in var folders, the test run.json shows:

      ],
        "line": 7,
        "name": "Admin can create a new Channel",
        "description": "",
        "id": "channels;admin-can-create-a-new-channel",
        "after": [

the test run. xml will show:

<testcase classname="Channels" name="Admin can create a new Channel 2" time="37.828686">

while the testrun.html/report.js will show:

formatter.scenario({
  "name": "Admin can create a new Channel",
  "description": "",
  "keyword": "Scenario",
  "tags": [

I am currently failing at trying to figure out where and why the test case name in the xml files add 2 to the test name. Could you shed some light on the above?

courgette runner config:

@RunWith(Courgette.class)
@CourgetteOptions(
		threads = 2,
		runLevel = CourgetteRunLevel.SCENARIO,
		rerunFailedScenarios = false,
		showTestOutput = true,
		cucumberOptions = @CucumberOptions(
				features = { "src/test/resources/features" },
				glue = { "com.workjam.stepdefinition" },
				plugin = {
						"pretty:target/cucumber-report/cucumber-pretty.txt",
						"json:target/cucumber-report/cucumber.json",
						"html:target/cucumber-report/cucumber.html",
						"junit:target/cucumber-report/cucumber.xml",
				},
				tags = { "@RestReady" }
		)
)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
prashant-ramcharancommented, Dec 29, 2018

That’s fine, will keep it open until it’s merged into master.

Thanks for reporting.

1reaction
prashant-ramcharancommented, Dec 28, 2018

There’s nothing for you to do on your side. Your runner should look exactly the way it is right now.

I will have to make a code change in Courgette to allow only 1 multithreaded junit plugin in the runtime options before the tests execute.

Hope that makes sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diff - 7f72620d8b..47b94319df - chromium/src - Git at Google
Append (kRoot))); +} + +// Validates that the correct base name is returned from file paths under the +// 'My Files' path. +TEST_F(ChromeScanningAppDelegateTest, ......
Read more >
COVID-19 World Vaccine Adverse Reactions - Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from COVID-19 World Vaccine Adverse Reactions.
Read more >
test - gists · GitHub
To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters.
Read more >
Vital and Health Statistics; Series 1, No. 32 (7/94) - CDC
This report describes the plan and operation of the third National Health and. Nutrition Examination Survey, The sample for this study of the...
Read more >
Everyday food practices among three low-income groups
refugee, 2) to examine the cultural variations in food practices among ... their economic status to the rural cooking class participants, they show...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found