nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

Plugin reporting is very verbose

Open AutomatedTester opened this issue 3 years ago • 3 comments

Description of the bug/issue

In the latest versions of Nightwatch when an error is hit in the Axe plugin we get very verbose logging like image

but in 2.1 we had logging like image

I wonder if there is a way to make it less verbose, it looks like the actionable error messages are making the reporting of errors a lot bigger here than intended.

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Sample test

No response

Command to run

No response

Verbose Output

No response

Nightwatch Configuration

No response

Nightwatch.js Version

2.3.5

Node Version

No response

Browser

No response

Operating System

No response

Additional Information

A workaround is that people can look at the HTML report to get a cleaner view but it would be good to see the output cleaner too

AutomatedTester avatar Sep 15 '22 11:09 AutomatedTester

We need to remove the stack trace altogether here, it's totally unnecessary, even in the 2.1 version.

beatfactor avatar Sep 15 '22 16:09 beatfactor

@beatfactor Yes it would be a great idea but I think we should display stack-trace at least once to make users life easier. Thoughts?

harshit-bs avatar Sep 15 '22 17:09 harshit-bs

The stack trace points to the axe internal commands and is not relevant to the actual error. It's basically noise.

beatfactor avatar Sep 15 '22 21:09 beatfactor