vscode-elixir-test-explorer icon indicating copy to clipboard operation
vscode-elixir-test-explorer copied to clipboard

If the test name has new line, Test Explorer failed to the initialization

Open sglim opened this issue 2 years ago • 0 comments

If you set test name like in test file:

test """
       Some
newline
test
       """,

image

will cause the following error.

Error: TypeError: Cannot read properties of null (reading '0')

The result of mix test --trace --seed=0 --only="" looks like following:

SomeTest [test/some_test.exs]
  * test Some
newline
test [L#40]

So the extension failed to parse the test trace log.

sglim avatar Dec 30 '22 17:12 sglim