testing-html-merge #15
1 changed files with 5 additions and 5 deletions
|
|
@ -57,7 +57,7 @@ class Runner:
|
||||||
"""runs the main test script and if available and sub test scripts if their running condition is met"""
|
"""runs the main test script and if available and sub test scripts if their running condition is met"""
|
||||||
# check if required dependencies have passed
|
# check if required dependencies have passed
|
||||||
if not self._dependencies_passed():
|
if not self._dependencies_passed():
|
||||||
logger.warning(f"skipping run_tests() of {self.env_type}, because some dependencies have not passed")
|
logger.warning(f"skipping run_tests() of {self.env_type} (one or more dependencies have not passed)")
|
||||||
return
|
return
|
||||||
|
|
||||||
for test in test_list:
|
for test in test_list:
|
||||||
|
|
@ -79,16 +79,16 @@ class Runner:
|
||||||
# check if test aleady passed
|
# check if test aleady passed
|
||||||
if self._is_test_passed(identifier_string, remove_existing=True):
|
if self._is_test_passed(identifier_string, remove_existing=True):
|
||||||
if test.prevent_skip:
|
if test.prevent_skip:
|
||||||
logger.info(f"continuing , test {identifier_string} has passed but prevent_skip=True")
|
logger.info(f"continuing {identifier_string} (passed before but prevent_skip=True)")
|
||||||
else:
|
else:
|
||||||
logger.info(f"skipping {identifier_string}, test has passed")
|
logger.info(f"skipping {identifier_string} (test has passed)")
|
||||||
return
|
return
|
||||||
|
|
||||||
if test.condition:
|
if test.condition:
|
||||||
condition_result = self._run_condition(test.condition)
|
condition_result = self._run_condition(test.condition)
|
||||||
if not condition_result:
|
if not condition_result:
|
||||||
# test condition is defined but not met
|
# test condition is defined but not met
|
||||||
logger.info(f"skipping {identifier_string}, test condition is not met")
|
logger.info(f"skipping {identifier_string} (test condition is not met)")
|
||||||
return
|
return
|
||||||
|
|
||||||
# test condition is undefined or not met
|
# test condition is undefined or not met
|
||||||
|
|
@ -126,7 +126,7 @@ class Runner:
|
||||||
return already_passed
|
return already_passed
|
||||||
|
|
||||||
def _call_pytest(self, full_test_path: Path) -> int:
|
def _call_pytest(self, full_test_path: Path) -> int:
|
||||||
"""runs pytest programmatically on a specific file
|
"""runs pytest programmatically with a specific file
|
||||||
|
|
||||||
all tests in the file [full_test_path] will be run along with command line arguments"""
|
all tests in the file [full_test_path] will be run along with command line arguments"""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue