Add PyLint Adapter and a combined PyUnit and PyLint adapter.

This commit is contained in:
Sebastian Serth
2020-05-05 00:02:10 +02:00
parent 7154bafb7e
commit 4bf483cfb3
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,13 @@
class PyUnitAndPyLintAdapter < TestingFrameworkAdapter
def self.framework_name
'PyUnit and PyLint'
end
def parse_output(output)
PyLintAdapter.new.parse_output(output)
rescue NoMethodError
# The regex for PyLint failed and did not return any matches
PyUnitAdapter.new.parse_output(output)
end
end