Test coverage is very low. What needs to be set up and tested?
See subtasks for work.
• Prtksxna | |
May 9 2014, 8:20 PM |
F5657352: ScreenShot_2017-02-16_19.56.17.png | |
Feb 16 2017, 6:56 PM |
Test coverage is very low. What needs to be set up and tested?
See subtasks for work.
Subject | Repo | Branch | Lines /- | |
---|---|---|---|---|
tests: Add render.article.createImgThumbnail | mediawiki/extensions/Popups | master | 17 -1 |
Change 179106 had a related patch set uploaded (by Prtksxna):
tests: Add render.article.createImgThumbnail
Change 179106 abandoned by Prtksxna:
tests: Add render.article.createImgThumbnail
Reason:
I think I am doing something utterly useless here. The code in the test is the same as the function.
Krinkle, does this make sense?
OK, here is my analysis so far:
1. ext.popups.core.js
Not tested:
Tested:
2. ext.popups.renderer.article.js
Not tested:
Tested:
3. These files are not tested: ext.popups.disablenavpop.js, ext.popups.logger.js, ext.popups.settings.js.
I think this task is definitely more than a 3 pointer (probably an 8) because the extension is covered sparsely.
Change 283348 had a related patch set uploaded (by Bmansurov):
WIP: Add QUnit tests to cover ext.popups.core.js
We should take care when doing this that we write the write tests. Browser tests may be better in some places and there may not be value in testing certain units.
Change 283566 had a related patch set uploaded (by Bmansurov):
Add basic browser tests
Change 283568 had a related patch set uploaded (by Bmansurov):
Create Popups jenkins job
Change 283762 had a related patch set uploaded (by Bmansurov):
Add QUnit tests for ext.popups.logger
I'm taking this back to transform it to an Epic and get it better fleshed out and split to pieces.
The spike already done and other work we need to do taking into account the spike's results.
@bmansurov I'll split tasks for the patches you already have, and change the patches to link to the correct bugs. We can talk tomorrow if there is something wrong.