Skip to content

Commit

Permalink
Add test for relative formatter loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed Jul 10, 2015
1 parent ecfc2ac commit 1ded3c5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/cli_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,15 @@ Codes: true
]], get_output "spec/samples/good_code.lua spec/samples/bad_code.lua --formatter spec.formatters.custom_formatter -q --codes --no-color --no-config")
end)

it("loads custom formatters relatively to project root", function()
assert.equal([[Files: 2
Formatter: spec.formatters.custom_formatter
Quiet: 1
Color: false
Codes: true
]], get_output("samples/good_code.lua samples/bad_code.lua --formatter spec.formatters.custom_formatter -q --codes --no-color", "spec/"))
end)

it("has built-in TAP formatter", function()
assert.equal([[
1..7
Expand Down

0 comments on commit 1ded3c5

Please sign in to comment.