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

feat(forge coverage): support running coverage on a test suite with failing tests #9654

Open
Simon-Busch opened this issue Jan 9, 2025 · 1 comment
Labels
Cmd-forge-coverage Command: forge coverage T-feature Type: feature

Comments

@Simon-Busch
Copy link

Component

Forge

Describe the feature you would like

Since the introduction of #8268, we need to have all passing tests to generate the coverage summary or lcov.

I understand the intend, however in some case, it would be great to be able to generate the coverage even with a few failing tests.

Ex: I'm working on an engagement for a customer, on a specific part of the architecture, there are a couple of failing tests on the otherside, I would love to be able to still generate the coverage report with a specific flag.

ex: forge coverage --report lcov --accept-failure

Additional context

No response

@Simon-Busch Simon-Busch added T-feature Type: feature T-needs-triage Type: this issue needs to be labelled labels Jan 9, 2025
@github-project-automation github-project-automation bot moved this to Todo in Foundry Jan 9, 2025
@grandizzy
Copy link
Collaborator

@Simon-Busch cannot you just use different branches and run coverage for tests related to specific part of the architecture?

@zerosnacks zerosnacks added Cmd-forge-coverage Command: forge coverage and removed T-needs-triage Type: this issue needs to be labelled labels Jan 15, 2025
@zerosnacks zerosnacks changed the title Add a flag to force forge coverage with failing tests feat(forge coverage): support running coverage on a test suite with failing tests Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cmd-forge-coverage Command: forge coverage T-feature Type: feature
Projects
Status: Todo
Development

No branches or pull requests

3 participants