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

Refactor tests and improve test coverage #9

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

thomasasfk
Copy link
Contributor

  • Remove all_test.py and distribute its tests across new test files
  • Add integration_test.py for end-to-end testing
  • Implement unit tests for network operations, CLI options, and utility functions
  • Enhance main function testing with various arguments
  • Add tests for proxy functionality and CSV output
  • Improve test coverage for edge cases in percentile calculation
  • Set up test fixtures for mocking time and requests session
  • Update requirements-dev.txt to include pytest

This commit significantly improves the test suite by breaking down monolithic tests into more focused, modular test files. It adds both unit and integration tests, covering various aspects of the cf_speedtest package including network operations, command-line options, utility functions, and main program flow. The new tests also cover edge cases and different configurations, enhancing the overall robustness of the test suite.

- Remove all_test.py and distribute its tests across new test files
- Add integration_test.py for end-to-end testing
- Implement unit tests for network operations, CLI options, and utility functions
- Enhance main function testing with various arguments
- Add tests for proxy functionality and CSV output
- Improve test coverage for edge cases in percentile calculation
- Set up test fixtures for mocking time and requests session
- Update requirements-dev.txt to include pytest

This commit significantly improves the test suite by breaking down monolithic
tests into more focused, modular test files. It adds both unit and integration
tests, covering various aspects of the cf_speedtest package including network
operations, command-line options, utility functions, and main program flow.
The new tests also cover edge cases and different configurations, enhancing
the overall robustness of the test suite.
@12932
Copy link
Owner

12932 commented Jul 26, 2024

LGBT

@12932 12932 merged commit 78d9ee1 into 12932:master Jul 26, 2024
5 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.

2 participants