Closed Bug 846258 Opened 11 years ago Closed 11 years ago

[Cost Control] Unit tests for Usage (Cost Control) are needed

Categories

(Firefox OS Graveyard :: Gaia::Cost Control, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(b2g18+ fixed)

RESOLVED FIXED
Tracking Status
b2g18 + fixed

People

(Reporter: salva, Assigned: salva)

Details

Attachments

(1 file)

Actually, Usage application has no unit test. An effort is required to provide test coverage.
We shouldn't need to track this in order to get tests, someone will need to coordinate with test automation team on this regardless of tracking status and develop a strategy for adding a new test suite.
In the following days I will upload several PR to cover Cost Control. Probably, these PR include code refactor as well to turn the Cost Control into a test-friendly application.
Comment on attachment 753202 [details]
Adding unit test infrastructure and tests for application startup cases

R+ with the latest nits addressed.

Good work Salva
Attachment #753202 - Flags: review?(jmcf) → review+
master: 6a2e916b9f00d2984699c38592b27e23ad6be67d
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment on attachment 753202 [details]
Adding unit test infrastructure and tests for application startup cases

It adds a new test suite and infrastructure to support the tests so it is a medium sized patch. Modifications on the application needed to get tests running are small but important and other v1-train bugs could be blocked by the lack of these changes. Please, grant me the approval.

Bug caused by (feature/regressing bug #): none
User impact if declined: low
Testing completed: yes
Risk to taking this patch (and alternatives if risky): medium 
String or UUID changes made by this patch: none
Attachment #753202 - Flags: approval-gaia-v1?
(In reply to Salvador de la Puente González [:salva] from comment #6)
> Risk to taking this patch (and alternatives if risky): medium 

Is the risk medium, or just the patch size? What's the worst user regresion that could happen by landing this code?
Flags: needinfo?(salva)
Only the patch size. Fortunately the changes are related to the application start-up but there is no worst regression as these tests warrant the start-up is correct precisely.
Flags: needinfo?(salva)
Attachment #753202 - Flags: approval-gaia-v1? → approval-gaia-v1+
I was not able to uplift this bug to v1-train.  If this bug has dependencies which are not marked in this bug, please comment on this bug.  If this bug depends on patches that aren't approved for v1-train, we need to re-evaluate the approval.  Otherwise, if this is just a merge conflict, you might be able to resolve it with:

  git checkout v1-train
  git cherry-pick -x -m1 6a2e916b9f00d2984699c38592b27e23ad6be67d
  <RESOLVE MERGE CONFLICTS>
  git commit
Flags: needinfo?(salva)
v1-train: 86f90fe70497a7bd04aa08c046587c8a1dd04aa9
Flags: needinfo?(salva)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: