Simpletest coverage at 89%

Bug #605624 reported by XavierAntoviaque
This bug report is a duplicate of:  Bug #677066: Code review issue - make check. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Humanity Project
Confirmed
Medium
Vlad Dragu

Bug Description

See attached.

Revision history for this message
XavierAntoviaque (xavier-antoviaque) wrote :
Changed in hackit:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Vlad Dragu (vlad-dragu)
milestone: none → alpha1.0
Revision history for this message
Vlad Dragu (vlad-dragu) wrote :

I worked on the php unit tests and committed the code to launchpad.
On functions/func_general.php there are 3 functions that I had to mock.
Once mocked, I cannot get coverage for them. 2 of those functions return a random result (they calculate scan and hack chances based on a probability) and the other one does a header redirect location.
Can you please send me the coverage report for the functions/func_login.php file. It shows 100% on my system, I do not know why it shows 98 on yours.
Other than that, everything works.

Changed in hackit:
status: Confirmed → Incomplete
Revision history for this message
XavierAntoviaque (xavier-antoviaque) wrote :

All good.

I'm keeping this one open to not forget to fix these during the next review with proppy, but the coverage is good enough to not block this release.

Changed in hackit:
status: Incomplete → Confirmed
milestone: alpha1.0 → none
Revision history for this message
Vlad Dragu (vlad-dragu) wrote :

Currently is at 98%.

Changed in hackit:
milestone: none → alpha2.1
Revision history for this message
Vlad Dragu (vlad-dragu) wrote :

I raised the Simpletest coverage to 98% percent. Th remaining 2% percent is caused by:
 - mocked functions like hack/scan result
 - the classes added by the DataObject library which i should exclude from make check but i'm not really sure how to do it (they are all at 75%)
 - a function in site_collection class that returns a result based on the number of sites a user owns. In order to test it i must insert in the db 10000 sites. I wrote the test function that does that and performs the tests, but i commented it out because it takes a long time to execute

Changed in hackit:
status: Confirmed → Incomplete
Revision history for this message
david blanchard (david-blanchard) wrote :

I just tried on my side - I've got indeed the 98%. Xav' are you ok with Vlad's explanation for the 2% and should we close the bug ?

Revision history for this message
XavierAntoviaque (xavier-antoviaque) wrote :

Yes, that's fine for this release.

But rather than closing it, I would target it toward the next release. We have been talking about discussing those with Proppy to cover the the remaining percents (and I'd like to have a look at the test for site_collection).

Changed in hackit:
milestone: alpha2.1 → alpha3.0
Changed in hackit:
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.