Fix test, basic functionality of detekt

master
wasanx25 2019-11-26 23:22:37 +09:00 committed by Rui Chen
parent f0728f99aa
commit 1b93c1b811
1 changed files with 7 additions and 1 deletions

View File

@ -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