Ejemplo n.º 1
0
    def end_suite(self, suite: TestSuite) -> None:
        """Removing test suites that are empty after excluding tests that are not part of the TestRail test run.

        *Args:*\n
            _suite_ - Robot Framework test suite object.
        """
        suite.suites = [s for s in suite.suites if s.test_count > 0]
        if not suite.suites:
            self._log_to_parent_suite(suite, "No tests to execute after using TestRail pre-run modifier.")