Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display outline values instead of index in junit output #1459

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

uuf6429
Copy link

@uuf6429 uuf6429 commented Mar 3, 2024

Replaces "example name #N" with "example name (XX)" in JUnit output.

Closes #1448

}

Assert::assertEquals(0, $this->getExitCode());
Assert::assertEquals(0, $this->getExitCode(), $message);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this PR, but when tests failed, the output was hidden since echo/output is not the right way to influence PHPUnit test results (the $message assertion parameter should be used instead).

* @return string
*/
private function buildExampleName(ExampleNode $scenario)
private function buildExampleName(ExampleNode $scenario): string
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if it would make sense to have this function inside ExampleNode - it might be useful elsewhere.

I have implemented something similar for a custom report at work, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug?] Reruns of Scenario outlines lead to potentially confusing scenario names
1 participant