def test_parse_richgo(self): output = get_output("richgo") failed = list(self.parser.parse_failed("go#richgo", output)) self.assertEqual( failed, [ ParseResult(name="TestA", namespaces=[]), ParseResult(name="TestAAAB", namespaces=[]), ], )
def test_parse_exunit(self): output = get_output("exunit") failed = list(self.parser.parse_failed("elixir#exunit", output)) self.assertEqual( failed, [ ParseResult(name="the world", namespaces=[]), ParseResult(name="greets the world", namespaces=[]), ], )
def test_parse_pytest(self): output = get_output("pytest") failed = list(self.parser.parse_failed("python#pytest", output)) self.assertEqual( failed, [ ParseResult(name="test_d", namespaces=["TestMyClass"]), ParseResult(name="test_a", namespaces=[]), ], )
def test_parse_jest(self): output = get_output("jest") failed = list(self.parser.parse_failed("javascript#jest", output)) self.assertEqual( failed, [ ParseResult( name="it shouldn't pass", namespaces=["First namespace", "Another namespace"], ), ParseResult(name="it shouldn't pass again", namespaces=[]), ], )