T120 - Added TAP headers to CheckDetail TAP export
ClosedPublic

Authored by tflink on Apr 23 2014, 12:16 PM.

Details

Summary

CheckDetail's export_TAP now adds the proper TAPv13 headers.

Test Plan

Tests changed accordingly

Diff Detail

Branch
feature/T120
Lint
No Linters Available
Unit
No Unit Test Coverage
tflink requested changes to this revision.Apr 23 2014, 1:36 PM

overall, it looks OK to me. Just a couple of small concerns

libtaskotron/check.py
315

Can you expand this a bit more to make it more readable? Maybe initialize tapout as ['TAP version 13', '1..%d' % len(check_details)]? I just find this line a bit difficult to parse. If I'm missing something and there's no reasonable way to make the header addition more clear, adding a comment explaining why those two lines are being added would be acceptable

testing/test_check.py
202

This is more of a general concern I hit elsewhere in the code. I'd like to see all variables named tap renamed - it causes confusion with the bayeux module.

Yes, I can figure out that this is not the tap module pretty quickly but it still takes longer to parse than it should and could lead to confusion

tflink commandeered this revision.Apr 24 2014, 2:51 PM
tflink edited reviewers, added: jskladan; removed: tflink.

I need this to keep working on reporting, so I'm commandeering the revision

tflink updated this revision.Apr 24 2014, 2:54 PM
  • cleaned up TAP headers to be a bit more readable
  • changed incidences of tap to something else to reduce potential confusion with tap module
tflink updated this revision.Apr 24 2014, 4:53 PM
  • changing resultsdb directive code to create and complete resultsdb job during the reporting process
tflink updated this revision.Apr 24 2014, 5:08 PM
attempting to undo the last review change that went to the wrong review

Sorry for the noise, when I tried to create a review for D70 the diff ended up going to this review instead

kparal accepted this revision.Apr 24 2014, 6:23 PM

Please adjust the docstrings and ship it.

libtaskotron/check.py
246–257

Please adjust the example - prepend it with:

TAP version 13
1..1
testing/test_check.py
306–310

Please adjust the example - prepend it with:

TAP version 13
1..1

Please adjust the docstrings and ship it.

Good catch. Thanks

tflink closed this revision.Apr 24 2014, 6:40 PM

I botched the push a little bit and phabricator isn't autoclosing the review as resolved. This was resolved with rLTRNff41db8250e6