Design for test-ability
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bug-repo-syncer |
New
|
Wishlist
|
Unassigned |
Bug Description
Design all interfaces so that they can easily tested. Also consider test
duration.
This is a high level bug to collect issues and ideas. For concrete fixes
separate bugs should be filed.
= `ApplicationMai
These methods should return some kind of reports that describe their
actions. Hmm???
= `*Controller.
Tests for these methods are currently quite slow because they
download many bugs.
To test these methods they currently download changes from a fixed
date. Then the test function searches for certain bugs in the list
of returned bugs. As the number of bugs increases over time, the
test gets slower and slower. This problem would be alleviated if
the function returned only IDs.
== Strategy 1 ==
Tests for these methods could be sped up after switching to
"Launchpad-
the test. Everything in staging is deleted after some weeks. The test for Trac could delete its bugs at the end.
== Strategy 2 ==
Change method's return value to list of bug IDs.
Research this with `LaunchpadContr
hard to predict the performance of the changed design. Launchpadlib returns an
iterator over bug-tasks that probably downloads the tasks when their ID
`self_link` is taken.
Changed in bug-repo-syncer: | |
importance: | Undecided → Wishlist |
milestone: | none → 0.2.0 |
description: | updated |
summary: |
- dummy + Improve interface of `SyncTaskExecutor.synchronize_repos()` |
description: | updated |
summary: |
- Improve interface of `SyncTaskExecutor.synchronize_repos()` + Duplicate test bug |
summary: |
- Duplicate test bug + Improve interface of `SyncTaskExecutor.synchronize_repos()` |
Changed in bug-repo-syncer: | |
importance: | Wishlist → Medium |
summary: |
- Improve interface of `SyncTaskExecutor.synchronize_repos()` + Design for test-ability |
Changed in bug-repo-syncer: | |
importance: | Medium → Wishlist |
description: | updated |
Changed in bug-repo-syncer: | |
milestone: | 0.2.0 → 0.3.0 |
description: | updated |
Changed in bug-repo-syncer: | |
milestone: | 0.3.0 → 0.4.0 |
description: | updated |
Changed in bug-repo-syncer: | |
milestone: | 0.4.0 → 0.5.0 |
description: | updated |