80 |
80 |
81 return {} |
81 return {} |
82 |
82 |
83 def hasCoverage(self, interpreter): # noqa: U100 |
83 def hasCoverage(self, interpreter): # noqa: U100 |
84 """ |
84 """ |
85 Public method to get the test framework version and version information |
85 Public method to check, if the collection of coverage data is available. |
86 of its installed plugins. |
|
87 |
86 |
88 @param interpreter interpreter to be used for the test |
87 @param interpreter interpreter to be used for the test |
89 @type str |
88 @type str |
90 @return flag indicating the availability of coverage functionality |
89 @return flag indicating the availability of coverage functionality |
91 @rtype bool |
90 @rtype bool |
92 """ |
91 """ |
93 return True |
92 proc = QProcess() |
|
93 proc.start(interpreter, [UnittestExecutor.runner, "has_coverage"]) |
|
94 if proc.waitForFinished(3000): |
|
95 return proc.exitCode() == 0 |
94 |
96 |
95 def supportsPatterns(self, interpreter): # noqa: U100 |
97 def supportsPatterns(self, interpreter): # noqa: U100 |
96 """ |
98 """ |
97 Public method to indicate the support for test filtering using test name |
99 Public method to indicate the support for test filtering using test name |
98 patterns or a test name pattern expression. |
100 patterns or a test name pattern expression. |