Fix test, basic functionality of detekt
parent
f0728f99aa
commit
1b93c1b811
|
@ -12,6 +12,12 @@ class Detekt < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
system bin/"detekt", "--help"
|
||||
(testpath/"input.kt").write <<~EOS
|
||||
fun main() {
|
||||
|
||||
}
|
||||
EOS
|
||||
system bin/"detekt", "--input", "input.kt", "--report", "txt:output.txt"
|
||||
assert_equal "EmptyFunctionBlock", shell_output("cat output.txt").slice(/\w+/)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue