-
Notifications
You must be signed in to change notification settings - Fork 46
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
Overhaul core Tracker: add units tests to the new tracker-core
package
#1226
Closed
7 tasks done
Tracked by
#1181
Labels
- Developer -
Torrust Improvement Experience
EPIC
Contains several subissues
Quality & Assurance
Relates to QA, Testing, and CI
Testing
Checking Torrust
Comments
The code coverage report for only the cargo llvm-cov --package bittorrent-tracker-core The current state before starting adding tests:
I will add more unit tests to the package. |
This was referenced Feb 3, 2025
TORRUST_TRACKER_CORE_RUN_MYSQL_DRIVER_TEST=true cargo llvm-cov --package bittorrent-tracker-core
|
I didn't reach 100% line coverage: But the critical functionality is covered. I didn't add tests for database errors, for example:
cc @da2ce7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
- Developer -
Torrust Improvement Experience
EPIC
Contains several subissues
Quality & Assurance
Relates to QA, Testing, and CI
Testing
Checking Torrust
Parent issue: #1181
After extracting the new package I want to review the tests. We had a lot of high-level tests because It was very hard to unit test the old
core::Tracker
. Now it should be easier to write unit tests for the package.Sub-tasks
authentication
mod #1231whitelist
mod #1235torrent
mod #1240announce_handler
mod #1247scrape_handler
mod #1249error
mod #1250databases
mod #1251The text was updated successfully, but these errors were encountered: