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

Refactor coverage tests #10209

Merged
merged 4 commits into from Jun 30, 2020
Merged

Refactor coverage tests #10209

merged 4 commits into from Jun 30, 2020

Conversation

asherf
Copy link
Member

@asherf asherf commented Jun 30, 2020

This will make it easier to add more coverage tests

Problem

A single test method runs two different test scenarios.
this makes it harder to understand failures and add more tests..
https://github.com/pantsbuild/pants/pull/10209/files?w=1

Solution

Refactor logic and put it in reusable methods.

Result

Adding tests for more scenarios is now easier, see #9997 (review)
Will follow up on this PR with tests for running coverage with HTML and XML report types.

This will make it easier to add more coverage tests
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Thanks!

asherf and others added 3 commits June 29, 2020 18:49
…t.py

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
…t.py

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
@Eric-Arellano Eric-Arellano merged commit bba964e into pantsbuild:master Jun 30, 2020
@asherf asherf deleted the test-base branch June 30, 2020 04:15
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.

None yet

2 participants