Error Improvements: Part 3 #7202
Labels
Epic
Requires breaking up into smaller issues
stage: ready for work
The issue is reproducible and in scope
type: enhancement
Requested enhancement of existing feature
type: error message
Error Improvements (Part 2) is soon to be released and provides a foundation for many more improvements that can made on top of it. The following is a list of further work that can be done. It is in no particular order and any given item's inclusion is not a guarantee it will be done. The items need some discussion and prioritization. Once that occurs, items can be broken out into their own issues, so smaller PRs can be made addressing them.
BUG: Errors that are currently not covered by tests and may not extra work to support source map/code frames:
fail
isn't called)FEATURE: Add the code frame to the error message/stack, so it appears in stdout and other reporters Add code frame for error messages in stdout #7819
FEATURE: Show diffs in reporter (Show diffs for assertions logged in browser console #3129 & .should('deep.equal') does not show a full diff comparison on failures #4084)
FEATURE: Code frames and stack translation relies on inline source maps. If we detect there is no source map, show a message about their benefits and points to directions on how to enable them.
FEATURE: Utilize the stack capturing and source mapping for purposes other than errors
FEATURE: Should we show the stack trace by default in reporter?
FEATURE: Some error messages have multiple error messages. Currently they just display:
PERF: Profile how much time Bluebird spends when we enable longStackTraces (cypress.js) and maybe turn it always off or always on
FEATURE: Splice out cypress internals when there's a user error (particularly Scenario 2, when error is in a command callback)
BUG: Chai assertion error messages use quotes instead of backticks
actual
to equalexpected
"FEATURE: Send new error properties to the dashboard
FEATURE: Capture and display info like current URL with an error (See this comment)
FEATURE: Explore opening stack lines in DevTools
FEATURE: Improve how errors are logged (use
console.group
)FEATURE: For File Opener Preference modal:
FEATURE: Utilize source maps in user's app code
BUG: When printing error to console, the stack lines show fully qualified URLs instead of source mapped URLs
BUG: When importing/requiring a file outside the project root, the path is not correct (
../foo
flattens intowebpack:///foo
)Make individual lines in the code frame clickable (then open in IDE)In progress/done
done
errors (called twice, timed out, etc) - Issuecy.on('fail')
handlers - Issue | PRcy.task
errors need the original error appended like other Node.js errors - Issue | PRRelated Issues
The text was updated successfully, but these errors were encountered: