Skip to content
Browse files

correct redo test bug and test results interpretation

  • Loading branch information...
1 parent c88f5f0 commit aed5cf25590e8217ee92766d6f8c1d7b1835f14e @ostinelli committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 sublimerl_tests_integration.py
View
7 sublimerl_tests_integration.py
@@ -328,16 +328,15 @@ def interpret_test_results(self, retcode, data):
# get outputs
if re.search(r"DONE.", data):
# test passed
- passed_count = re.search(r"(\d+) ok, 0 failed of \d+ test cases", data).group(1)
+ passed_count = re.search(r"(\d+) ok, 0 failed(?:, 1 skipped)? of \d+ test cases", data).group(1)
if int(passed_count) > 0:
self.log("=> %s TEST(S) PASSED.\n" % passed_count)
else:
self.log("=> NO TESTS TO RUN.\n")
elif re.search(r"ERROR: One or more tests failed", data):
- failed_count = re.search(r"\d+ ok, (\d+) failed of \d+ test cases", data).group(1)
+ failed_count = re.search(r"\d+ ok, (\d+) failed(?:, 1 skipped)? of \d+ test cases", data).group(1)
self.log("\n=> %s TEST(S) FAILED.\n" % failed_count)
- self.log("** Hint: hit Ctrl-Alt-F8 (by default) to show a browser with Common Tests' results. **\n")
else:
self.log("\n=> TEST(S) FAILED.\n")
@@ -356,7 +355,7 @@ def dialyzer_test(self, view):
test_runner.start_test()
def ct_or_eunit_test(self, view, new=True):
- if SUBLIMERL.get_erlang_module_name(view).find("_SUITE") != -1:
+ if SUBLIMERL.last_test_type == 'ct' or SUBLIMERL.get_erlang_module_name(view).find("_SUITE") != -1:
# ct
test_runner = SublimErlCtTestRunner(view)
else:

0 comments on commit aed5cf2

Please sign in to comment.
Something went wrong with that request. Please try again.