playwright icon indicating copy to clipboard operation
playwright copied to clipboard

feat(test runner): advanced error representation

Open dgozman opened this issue 2 years ago • 0 comments

  • Use util.inspect() to print errors like Node.js does, which includes any custom properties on the error object and standard cause property for inner errors.
  • Move test runner stack trace filtering to serializeError().
  • Move common stack trace filtering to parseStackTraceLine().
  • Simplify reporters handling errors.
  • Small tweaks for nicer representation.
  • API change: TestError.message is now a formatted message with properties, TestError.stack is just a stack without message.

dgozman avatar Dec 09 '22 00:12 dgozman