-
Notifications
You must be signed in to change notification settings - Fork 48
Overhaul core Tracker: add units tests to the new tracker-core
package
#1226
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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 |
# for free
to join this conversation on GitHub.
Already have an account?
# 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: