diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-06-11 15:09:25 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-06-11 15:47:18 +0200 |
commit | 6aa59ee14a9712c53f7586929c45e6a2ce3105e7 (patch) | |
tree | 429ba64ccda336072178a6968cfb37dc8593c611 /xtesting/tests | |
parent | de6e39eebc4920cafb241adda9e79db9d2fbca64 (diff) |
Fix tag logics in behave
The unit tests will be fully rewritten in a second change (out of this
bugfix).
Co-Authored-By: Ugur Caglar Kilic <ugur.caglar.kilic@oracle.com>
Change-Id: I6413fbcecdf44dbfe9c978045f4b1d43ca0de2ec
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit e2a7ac290649fe12228604876fdd63976734bec5)
(cherry picked from commit 261536179b363e0260e4e0068e4471bfb7c63b60)
Diffstat (limited to 'xtesting/tests')
-rw-r--r-- | xtesting/tests/unit/core/test_behaveframework.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xtesting/tests/unit/core/test_behaveframework.py b/xtesting/tests/unit/core/test_behaveframework.py index 2baaba03..00515cee 100644 --- a/xtesting/tests/unit/core/test_behaveframework.py +++ b/xtesting/tests/unit/core/test_behaveframework.py @@ -85,7 +85,7 @@ class RunTesting(unittest.TestCase): # pylint: disable=missing-docstring suites = ["foo"] - tags = [] + tags = ["bar"] def setUp(self): self.test = behaveframework.BehaveFramework( @@ -119,13 +119,14 @@ class RunTesting(unittest.TestCase): self.test.EX_OK) html_file = os.path.join(self.test.res_dir, 'output.html') args_list = [ - '--tags=', '--junit', + '--junit', '--junit-directory={}'.format(self.test.res_dir), '--format=json', '--outfile={}'.format(self.test.json_file)] if six.PY3: args_list += [ '--format=behave_html_formatter:HTMLFormatter', '--outfile={}'.format(html_file)] + args_list.append('--tags='+','.join(self.tags)) args_list.append('foo') args[0].assert_called_once_with(args_list) mock_method.assert_called_once_with() @@ -153,13 +154,14 @@ class RunTesting(unittest.TestCase): status) html_file = os.path.join(self.test.res_dir, 'output.html') args_list = [ - '--tags=', '--junit', + '--junit', '--junit-directory={}'.format(self.test.res_dir), '--format=json', '--outfile={}'.format(self.test.json_file)] if six.PY3: args_list += [ '--format=behave_html_formatter:HTMLFormatter', '--outfile={}'.format(html_file)] + args_list.append('--tags='+','.join(self.tags)) if console: args_list += ['--format=pretty', '--outfile=-'] args_list.append('foo') |