Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeLamanda committed Jun 9, 2023
1 parent 39d6967 commit 6658888
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/init_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ describe("build_spec", function()
return data.id
end)
local spec = plugin.build_spec({ tree = tree })
assert.equals(spec.command, "mvn Dtest=subdir.FileWithTests#passing_test test")
assert.equals(spec.command, "mvn test -Dtest=subdir.FileWithTests#passing_test")
end)
async.it("maven - successful on single namespace", function()
local tree = Tree.from_list({
Expand Down Expand Up @@ -396,7 +396,7 @@ describe("build_spec", function()
return data.id
end)
local spec = plugin.build_spec({ tree = tree })
assert.equals(spec.command, "mvn Dtest=subdir.FileWithTests test")
assert.equals(spec.command, "mvn test -Dtest=subdir.FileWithTests")
end)
async.it("maven - runs on entire file in subdir", function()
local tree = Tree.from_list({
Expand Down Expand Up @@ -438,7 +438,7 @@ describe("build_spec", function()
return x.id
end)
local spec = plugin.build_spec({ tree = tree })
assert.equals(spec.command, "mvn Dtest=subdir.FileWithTests test")
assert.equals(spec.command, "mvn test -Dtest=subdir.FileWithTests")
end)
async.it("maven - runs on entire directory", function()
local dir = path_join(maven_files.root, "src", "test", "java", "subdir")
Expand Down Expand Up @@ -523,7 +523,7 @@ describe("build_spec", function()
return x.id
end)
local spec = plugin.build_spec({ tree = tree })
assert.equals(spec.command, "mvn Dtest=subdir.FileWithTests,subdir.AnotherFileWithTests test")
assert.equals(spec.command, "mvn test -Dtest=subdir.FileWithTests,subdir.AnotherFileWithTests")
end)
end)

Expand Down

0 comments on commit 6658888

Please sign in to comment.