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

Failed test case details are not printed #737

Open
gmkumar2005 opened this issue Jan 30, 2024 · 0 comments
Open

Failed test case details are not printed #737

gmkumar2005 opened this issue Jan 30, 2024 · 0 comments

Comments

@gmkumar2005
Copy link

When I run a test case in scalajs it prints the full trace of the failure as below with line numbers

==> X basic.BasicSuite.renders empty elements 0.02s munit.FailException: /Users/mallru/workspace/front-end/calico-dom-utils/calicotestcases/src/test/scala/basic/BasicSuite.scala:51 querySelector returned null check if the query is correct
50:          val actual = dom.document.querySelector("#app > td")
51:          assert(actual != null, "querySelector returned null check if the query is correct")
52:          assertEquals(actual.outerHTML, expectedEl.outerHTML)

Above test case runs NodeJs internally.

When I run the same test case which uses PlayWright internally the trace is not displayed

==> X basic.BasicSuite.renders empty elements 0.01s munit.FailException:

Why is munit loosing the details ?

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

No branches or pull requests

1 participant