Merge lp:~gz/pyjunitxml/split_test_id_before_parameter into lp:pyjunitxml
Proposed by
Martin Packman
Status: | Merged |
---|---|
Merged at revision: | 20 |
Proposed branch: | lp:~gz/pyjunitxml/split_test_id_before_parameter |
Merge into: | lp:pyjunitxml |
Prerequisite: | lp:~gz/pyjunitxml/unexpected_expectations_python_2.7 |
Diff against target: |
46 lines (+18/-6) 2 files modified
junitxml/__init__.py (+6/-6) junitxml/tests/test_junitxml.py (+12/-0) |
To merge this branch: | bzr merge lp:~gz/pyjunitxml/split_test_id_before_parameter |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil | Needs Fixing | ||
Robert Collins | Pending | ||
Review via email:
|
Description of the change
Babune has a little weirdness in its results like:
<http://
Branch contains a simple change to the way test ids are split to stop treating dots inside parameters as a good point to split the test class from the test name.
To post a comment you must log in.
Hmm, what are the constraints on a test id ?
I've got the feeling that the (par1,par2) addition is quite bzr specific
and I don't know if we even enforce the constraints that parameter strings should not embed
any funny stuff (say a '(') which will break your fix as well.
14 + class_end = test_id.rfind(".", 0, test_id.find("("))
So I'd be very tempted to ask for a better way than test_id.find("(") to identify
a valid python identifier at the *start* of the test id and then, and only then,
extract the class from that.