-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add --code flag for collecting code context. #1154
Conversation
* @param {String} path | ||
*/ | ||
export const getWorkspacePath = (path) => { | ||
const srcIndex = path.indexOf('/src/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only works on linux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Discussed this offline.) This is a request from management, the full path will be visible in the popup.
if enabled. | ||
""" | ||
return getattr(self.cfg, "collect_code_context", False) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just for orphan multitest in testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might need it for hooks & maybe result call under pytest wrapper
Bug / Requirement Description
Include the 1 liner of the testcase assertion (top-level from testcase) into the report.
Solution description
Added
--code
flag to collect code context for the assertions. Code context one-liner will be displayed on the web UI if enabled.Note that file path information is no longer collected by default. To collect file path information, enable code context.
Checklist: