I created test cases without including ":id:" in the docstring. This worked fine and it autogenerated the id's using the module.class.method string as described.
When I tried to use test-run to build the xunit file for import, this did not work and I got errors and was unable to create the test run with the generated xunit file.
Could not find ID information for test_tlog.TestTlogRec.test_record_command_to_file, skipping...
A quick example I ran:
[root@vm3 btest]# cat test_default.py
class TestDefaults(object):
def test_one(self):
""" this is the first test """
pass
def test_two(self):
""" this is the second test """
pass
(.pyvirt) [root@vm3 btest]# betelgeuse test-run junit.xml test_default.py spoore RedHatEnterpriseLinux7 /dev/stdout
Could not find ID information for test_default.TestDefaults.test_one, skipping...
Could not find ID information for test_default.TestDefaults.test_two, skipping...
<?xml version='1.0' encoding='utf-8'?>
<testsuites><properties><property name="polarion-project-id" value="RedHatEnterpriseLinux7" /><property name="polarion-user-id" value="spoore" /><property name="polarion-testrun-id" value="test-run-15408339859" /><property name="polarion-include-skipped" value="true" /><property name="polarion-set-testrun-finished" value="true" /><property name="polarion-dry-run" value="false" /><property name="polarion-lookup-method" value="custom" /><property name="polarion-custom-lookup-method-field-id" value="testCaseID" /></properties><testsuite errors="0" failures="0" name="pytest" skips="0" tests="2" time="0.006"><testcase classname="test_default.TestDefaults" name="test_one" time="0.000118970870972" /><testcase classname="test_default.TestDefaults" name="test_two" time="5.31673431396e-05" /></testsuite></testsuites>
I created test cases without including ":id:" in the docstring. This worked fine and it autogenerated the id's using the module.class.method string as described.
When I tried to use test-run to build the xunit file for import, this did not work and I got errors and was unable to create the test run with the generated xunit file.
Could not find ID information for test_tlog.TestTlogRec.test_record_command_to_file, skipping...
A quick example I ran: