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

Generate baseline #284

Open
Chemaclass opened this issue Jul 12, 2024 · 0 comments
Open

Generate baseline #284

Chemaclass opened this issue Jul 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Chemaclass
Copy link
Member

Chemaclass commented Jul 12, 2024

Issues that are on this so-called baseline are no longer reported. This allows you to focus on new issues that are triggered by new or changed code.

Inspired by https://docs.phpunit.de/en/10.5/error-handling.html#ignoring-previously-reported-issues

When you run your test suite using the --generate-baseline CLI option then bashunit's test runner will write a list of all issues that are triggered to an XML file:

bashunit --generate-baseline baseline.xml

When you run your test suite using the --use-baseline CLI option then bashunit's test runner will use this list of already known issues to ignore them for the current run:

bashunit --use-baseline baseline.xml
@Chemaclass Chemaclass added the enhancement New feature or request label Jul 12, 2024
@Chemaclass Chemaclass self-assigned this Jul 12, 2024
@Chemaclass Chemaclass removed their assignment Jul 16, 2024
@Chemaclass Chemaclass changed the title Compare testsuite with baseline Generate baseline Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant