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

Improve test coverage in function _log #252

Conversation

lucasrmendonca
Copy link
Contributor

Description, Motivation and Context

The case where no logger was specified wasn't being covered by tests so this change makes tests cover all branches of _log function.

What kind of change does this PR introduce?

  • Refactoring (no new functionality, only code improvements)

Checklist:

  • My code follows the code style of this project.
  • I have added tests to cover my changes.
  • Overall test coverage is not decreased.
  • All new and existing tests passed.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

The case where no logger was specified wasn't being covered by tests so
this change makes tests cover all branches of _log function.
@coveralls
Copy link

coveralls commented Jan 15, 2023

Coverage Status

Coverage: 98.057%. Remained the same when pulling e176e14 on lucasrmendonca:improveTestCoverageInFunctionLog into 7c92a2d on KSDaemon:dev.

@lucasrmendonca lucasrmendonca marked this pull request as draft January 16, 2023 01:09
@lucasrmendonca
Copy link
Contributor Author

Converting to draft to investigate why coverage remained the same instead of increasing

@lucasrmendonca
Copy link
Contributor Author

Decided to close this for now to work on a better solution that stubs console.log and spies on it

@lucasrmendonca lucasrmendonca deleted the improveTestCoverageInFunctionLog branch June 14, 2024 21:11
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