Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Lauszus
Copy link
Owner

@Lauszus Lauszus commented Sep 21, 2025

No description provided.

@Lauszus Lauszus added this to the 1.7.0 milestone Sep 21, 2025
@github-actions
Copy link

github-actions bot commented Sep 21, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/pyblhost
  pyblhost.py 577
Project Total  

This report was generated by python-coverage-comment-action

@Lauszus Lauszus force-pushed the feature/tests branch 2 times, most recently from ccd2a2d to 7f49546 Compare September 21, 2025 18:36
@Lauszus Lauszus changed the title feat: Add tests feat: Added tests Sep 21, 2025
@Lauszus Lauszus marked this pull request as ready for review September 21, 2025 19:52
@Lauszus Lauszus requested a review from Copilot September 21, 2025 19:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive test coverage for the pyblhost library and makes some minor bug fixes. The tests cover all major classes (BlhostBase, BlhostCan, BlhostSerial, BlhostDataParser, BlhostCanListener) and their functionality including communication protocols, data parsing, error handling, and edge cases.

  • Adds extensive test suite covering all major classes and their methods
  • Fixes a type annotation bug in BlhostCan constructor parameter
  • Adds test infrastructure with pytest, coverage reporting, and CI integration

Reviewed Changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_pyblhost.py Comprehensive test suite covering all classes with 2328 lines of tests
src/pyblhost/pyblhost.py Minor bug fixes: type annotation and ReliableUpdate logging placement
pyproject.toml Adds pytest dependencies and coverage configuration
Makefile Adds test targets and enhanced clean target
.github/workflows/build.yml Integrates test execution and coverage reporting into CI
.github/workflows/coverage.yml Adds coverage comment workflow for PR feedback
.github/copilot-instructions.md Provides development workflow documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Lauszus Lauszus merged commit 1a0fd20 into main Sep 21, 2025
3 checks passed
@Lauszus Lauszus deleted the feature/tests branch September 21, 2025 19:54
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