Add PyLint Adapter and a combined PyUnit and PyLint adapter.
This commit is contained in:
13
lib/py_unit_and_py_lint_adapter.rb
Normal file
13
lib/py_unit_and_py_lint_adapter.rb
Normal 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
|
Reference in New Issue
Block a user