forked from elixir-lsp/elixir-ls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test runner): Use ExUnit testPaths and testPattern (elixir-lsp#500)
* fix(test runner): Use ExUnit testPaths and testPattern * Handle bad URI format * Add tests for test_paths and test_pattern * Make all fixture apps unique * Rename umbrella app to match filesystem * wait for compilation after tests * wait for compilation before code lens request
- Loading branch information
1 parent
3e47cf6
commit e0ccca3
Showing
9 changed files
with
256 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...test/fixtures/test_code_lens_custom_paths_and_pattern/custom_path/fixture_custom_test.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defmodule TestCodeLensCustomPathsAndPatternTest do | ||
use ExUnit.Case | ||
|
||
test "fixture test" do | ||
assert true | ||
end | ||
end |
14 changes: 14 additions & 0 deletions
14
apps/language_server/test/fixtures/test_code_lens_custom_paths_and_pattern/mix.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
defmodule TestCodeLensCustomPathsAndPattern.MixProject do | ||
use Mix.Project | ||
|
||
def project do | ||
[ | ||
app: :test_code_lens_custom_paths_and_pattern, | ||
version: "0.1.0", | ||
test_paths: ["custom_path"], | ||
test_pattern: "*_custom_test.exs" | ||
] | ||
end | ||
|
||
def application, do: [] | ||
end |
7 changes: 7 additions & 0 deletions
7
...ella_test_code_lens_custom_path_and_pattern/apps/app1/custom_path/fixture_custom_test.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defmodule UmbrellaTestCodeLensCustomPathAndPatternTest do | ||
use ExUnit.Case | ||
|
||
test "fixture test" do | ||
assert true | ||
end | ||
end |
14 changes: 14 additions & 0 deletions
14
...ge_server/test/fixtures/umbrella_test_code_lens_custom_path_and_pattern/apps/app1/mix.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
defmodule App1.Mixfile do | ||
use Mix.Project | ||
|
||
def project do | ||
[ | ||
app: :app1, | ||
version: "0.1.0" | ||
] | ||
end | ||
|
||
def application do | ||
[] | ||
end | ||
end |
7 changes: 7 additions & 0 deletions
7
apps/language_server/test/fixtures/umbrella_test_code_lens_custom_path_and_pattern/mix.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defmodule UmbrellaTestCodeLensCustomPathAndPattern.Mixfile do | ||
use Mix.Project | ||
|
||
def project do | ||
[apps_path: "apps"] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters