Blazemeter / taurus
Showing 1 of 2 files from the diff.

@@ -23,7 +23,7 @@
Loading
23 23
from bzt.engine import HavingInstallableTools
24 24
from bzt.modules import SubprocessedExecutor
25 25
from bzt.modules.services import PythonTool
26 -
from bzt.utils import RequiredTool
26 +
from bzt.utils import RequiredTool, CALL_PROBLEMS
27 27
from bzt.utils import get_full_path, RESOURCES_DIR
28 28
29 29
@@ -118,6 +118,18 @@
Loading
118 118
    def __init__(self, engine, version, **kwargs):
119 119
        super(Robot, self).__init__(packages=["robotframework", "apiritif"], version=version, engine=engine, **kwargs)
120 120
121 +
    def check_if_installed(self):
122 +
        self.log.debug(f"Checking {self.tool_name}.")
123 +
        try:
124 +
            _, _ = self.call([sys.executable, "-m", self.tool_name.lower(), "--version"])
125 +
        except CALL_PROBLEMS as exc:
126 +
            if exc.returncode == 251:
127 +
                self.log.debug(f"{self.tool_name} output: {exc.stdout}")
128 +
                return True
129 +
130 +
            self.log.debug(f"{self.tool_name} check failed: {exc}")
131 +
            return False
132 +
121 133
122 134
class TaurusRobotRunner(RequiredTool):
123 135
    def __init__(self, tool_path, **kwargs):
Files Coverage
bzt 90.43%
Project Totals (69 files) 90.43%
9414.2
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
1
codecov:
2
  notify:
3
    require_ci_to_pass: yes
4

5
coverage:
6
  round: up
7

8
ignore:
9
  - bzt/resources
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading