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

Ignore call base class contructor in code coverage #2553

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

fflaten
Copy link
Collaborator

@fflaten fflaten commented Aug 2, 2024

PR Summary

Calls to base constructors like base() were discovered never hit by breakpoint or tracer CC. PowerShell only hits scriptblock contents of both constructors.

Adding base ctor call to ignore command list.

Issue reported on Discord: https://discord.com/channels/180528040881815552/447476910499299358/1268943815272828998

PR Checklist

  • PR has meaningful title
  • Summary describes changes
  • PR is ready to be merged
    • If not, use the arrow next to Create Pull Request to mark it as a draft. PR can be marked Ready for review when it's ready.
  • Tests are added/update (if required)
  • Documentation is updated/added (if required)

Copy link
Member

@nohwnd nohwnd left a comment

Choose a reason for hiding this comment

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

wow those tests must have been super annoying to fix 😒

@nohwnd nohwnd merged commit 76be67d into pester:main Oct 1, 2024
11 checks passed
@fflaten fflaten deleted the cc-ignore-basector branch October 1, 2024 20:47
nohwnd pushed a commit that referenced this pull request Oct 30, 2024
* Ignore calls to base class constructor in code coverage

* Update tests
nohwnd added a commit that referenced this pull request Nov 17, 2024
* Implement Cobertura coverage format (#2298)

* wip: Implement Cobertura coverage format

* fix unit test

* revert editor settings change

* remove ?? operator

* fix attribute ordering

* make coverage report test work on all platforms

* Fix windows paths

* fix unit test for Windows paths

* kick the build

* re-implement Cobertura coverage report generation

* fix compatibility issues

* fix tests

* removing Cobertura from v4 parameter options

* fix compatibility with ReportGenerator

* Update src/functions/Coverage.ps1

Co-authored-by: Frode Flaten <[email protected]>

* fix whitespace

* fix output

* fix windows paths

* order packages,classes,methods by name

* change Cobertura DTD to loose

* Tune coverage report for performance

* Remove outdated condition

* Add Cobertura DTD file

* Apply suggestions from code review

Co-authored-by: Jakub Jareš <[email protected]>

* Fix typo and update JaCoCo starttime

* Fix tests

* Use epoch time for Cobertura and JaCoCo

* Update test

---------

Co-authored-by: Frode Flaten <[email protected]>
Co-authored-by: Jakub Jareš <[email protected]>

* Ignore call base class contructor in code coverage (#2553)

* Ignore calls to base class constructor in code coverage

* Update tests

* Unix timestamps with supported apis

* Add info about mode

* output bps

* output bps

* output bps

* What if we don't call it?

* Revert "What if we don't call it?"

This reverts commit 1c03a6b.

* bsclass

---------

Co-authored-by: Joe Skeen <[email protected]>
Co-authored-by: Frode Flaten <[email protected]>
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.

2 participants