Fix test, basic functionality of detekt
This commit is contained in:
parent
f0728f99aa
commit
1b93c1b811
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue