diff options
author | Gaurang033 <gaurangnshah@gmail.com> | 2014-12-12 17:01:01 +0530 |
---|---|---|
committer | Gaurang033 <gaurangnshah@gmail.com> | 2014-12-14 20:21:54 +0530 |
commit | 3f930d734237a7b6b68b1b7dadb12fa25458bd49 (patch) | |
tree | 57c28313d9d491e546479146c5f3eec17ebc8c16 /functional_tests/test_xunit.py | |
parent | 347352af79dfced2827266986a22c0259e1a8012 (diff) | |
download | nose-3f930d734237a7b6b68b1b7dadb12fa25458bd49.tar.gz |
Fix #859 Xunit plug-in not able to change testsuite name
Added command line parameter in Xunit plug-in to specify test suite
name. Also added functional test case.
Incorporated Comments
Diffstat (limited to 'functional_tests/test_xunit.py')
-rw-r--r-- | functional_tests/test_xunit.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/functional_tests/test_xunit.py b/functional_tests/test_xunit.py index 9f4ac2f..6c2e99d 100644 --- a/functional_tests/test_xunit.py +++ b/functional_tests/test_xunit.py @@ -108,3 +108,20 @@ class TestIssue700(PluginTester, unittest.TestCase): assert 'tests="1" errors="0" failures="0" skip="0"' in result assert 'line1\n' in result assert 'line2\n' in result + + +class TestIssue859(PluginTester, unittest.TestCase): + activate = '--with-xunit' + testsuite_name = "TestIssue859" + args = ['-v', '--xunit-file=%s' % xml_results_filename, '--xunit-testsuite-name=%s' % testsuite_name] + plugins = [Xunit(), Skip()] + suitepath = os.path.join(support, 'issue859') + + def runTest(self): + print str(self.output) + f = open(xml_results_filename, 'r') + result = f.read() + f.close() + print result + assert 'tests="1" errors="0" failures="0" skip="0"' in result + assert 'testsuite name="TestIssue859"' in result |