Skip to content

Fix/ci badges and codecov#20

Merged
lihuacai168 merged 3 commits intomasterfrom
fix/ci-badges-and-codecov
Jun 29, 2025
Merged

Fix/ci badges and codecov#20
lihuacai168 merged 3 commits intomasterfrom
fix/ci-badges-and-codecov

Conversation

@lihuacai168
Copy link
Owner

No description provided.

- Fix broken badges in README.md by using correct GitHub Actions paths
- Update CI workflow to use Codecov v4.0.1 with proper configuration
- Replace static coverage badge with dynamic Codecov badge
- Add proper repository slug and token configuration for coverage upload
- Remove non-existent workflow badges that were causing 404 errors

This ensures badges display correctly and coverage reporting works properly.
Test Suite Enhancement:
- Combine unit tests (47 functions) with integration tests (19 functions)
- Run comprehensive test suite in CI containers for better coverage
- Include all test files except test_integration_execute.py and test_performance_execute.py

Coverage Improvements:
- Expected significant coverage increase from combined test execution
- Unit tests cover: API endpoints, security, file handling, JMeter execution
- Integration tests provide: real workflow validation, container environment testing

CI Workflow Updates:
- Rename "Simplified CI Integration Tests" to "Comprehensive Test Suite"
- Keep single unit test step for documentation but mark as included
- Maintain same coverage extraction and upload process
- Reduce overall CI time by eliminating redundant test environment setup

Test Coverage Breakdown:
• test_execute_api.py: 17 tests (JMeter execution core functionality)
• test_api_enhanced.py: 14 tests (complete workflow integration)
• test_security.py: 9 tests (security mechanisms)
• test_api.py: 7 tests (basic API endpoints)
• Total: ~47 unit tests + 19 integration tests = 66+ tests

This change should significantly improve coverage from the previous 19%
by including comprehensive unit test coverage alongside integration testing.
@lihuacai168 lihuacai168 force-pushed the fix/ci-badges-and-codecov branch from 70f580c to 92af7b7 Compare June 29, 2025 03:34
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.25%. Comparing base (f5b5b33) to head (92af7b7).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   18.56%   28.25%   +9.68%     
==========================================
  Files          20       20              
  Lines        1600     1600              
==========================================
+ Hits          297      452     +155     
+ Misses       1303     1148     -155     
Flag Coverage Δ
integration 28.25% <ø> (+9.68%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lihuacai168 lihuacai168 merged commit fe2a8e3 into master Jun 29, 2025
10 checks passed
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.

3 participants