Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test results not reflected in test explorer #15

Open
craigharman opened this issue Nov 6, 2024 · 1 comment · May be fixed by #16
Open

Test results not reflected in test explorer #15

craigharman opened this issue Nov 6, 2024 · 1 comment · May be fixed by #16

Comments

@craigharman
Copy link

I have been using Japa-vscode on a project for the past 6 months and recently I have noticed the the status of the tests is no longer reflecting in the Japa test explorer.

Things I see:

  1. The tests execute and output is provided in "test results" panel
  2. The output in "test results" panel is not coloured/formatted (I am not sure if this is expected but I seem to recall it used to be formatted)
  3. A test fails in the "test results" panel but the test explorer shows a green "pass" tick.

I haven't added (or use any) additional reporters but I also tried adding ndjson() to my configuration. This seemed to have no effect. Not sure what else to try.

@luffynando
Copy link

luffynando commented Nov 22, 2024

Yeah its for change in japa 3.x need --reporters=ndjson

Link of change: https://japa.dev/docs/uprade-guide#changes-to-the-reporters-property

Commit of change reporter to reporters: japa/runner@b18350a

Line on extension related:

const args = ['run', ...this.#options.script!.split(' '), '--', '--reporter', 'ndjson']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants