Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result expected_failure and unexpected_success, they appear in the console, but not in HTML #73

Open
dongfangtianyu opened this issue Sep 17, 2020 · 0 comments · May be fixed by #74
Open

Comments

@dongfangtianyu
Copy link

  • HtmlTestRunner version: 1.2.1
  • Python version: python3.7
  • Operating System: windows10

Description

class TestCase(unittest.TestCase):

    @unittest.expectedFailure
    def test_xfail(self):
        assert False

    @unittest.expectedFailure
    def test_xpaas(self):
        assert True

test code get result expected_failure and unexpected_success,
they appear in the console, but not in HTML

What I Did

Running tests... 
----------------------------------------------------------------------
 test_error (testcases.test_A.TestCase) ... ERROR (0.000996)s
 test_fail (testcases.test_A.TestCase) ... FAIL (0.000000)s
 test_log (testcases.test_A.TestCase) ... OK (0.000000)s
 test_pass (testcases.test_A.TestCase) ... OK (0.000000)s
 test_skip (testcases.test_A.TestCase) ... SKIP (0.000000)s
 test_xfail (testcases.test_A.TestCase) ... expected failure (0.000000)s
 test_xpaas (testcases.test_A.TestCase) ... unexpected success (0.000000)s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant