Skip to content

Conversation

@Borda
Copy link
Member

@Borda Borda commented Jan 22, 2026

Before submitting
  • Self-reviewed the code
  • Updated documentation, follow Google-style
  • Added docs entry for autogeneration (if new functions/classes)
  • Added/updated tests
  • All tests pass locally

Description

just adding new tests to improve stability and test coverage

Type of Change

  • 🧪 Test update

Testing

  • I have tested this code locally
  • I have added unit tests that prove my fix is effective or that my feature works
  • All new and existing tests pass

Additional Notes

@Borda Borda requested a review from SkalskiP as a code owner January 22, 2026 00:44
Copilot AI review requested due to automatic review settings January 22, 2026 00:44
@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58%. Comparing base (1bab3ff) to head (43a4a84).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #2093    +/-   ##
========================================
+ Coverage       52%     58%    +7%     
========================================
  Files           61      61            
  Lines         7076    7076            
========================================
+ Hits          3657    4132   +475     
+ Misses        3419    2944   -475     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

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 unit tests for the supervision.annotators.core module to improve code stability and test coverage. The new test file covers 20 out of 23 annotator classes with basic functionality tests including empty detection handling and single detection annotation.

Changes:

  • Added new test file test/annotators/test_core.py with 532 lines of test code
  • Implemented test fixtures for test images, masks, and gradient images
  • Created helper function assert_image_mostly_same for verifying annotation output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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