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

Added --code flag for collecting code context. #1154

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rnemes
Copy link
Contributor

@rnemes rnemes commented Dec 4, 2024

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:

  • Test
  • Example (both test_plan.py and .rst)
  • Documentation (API)
  • News fragment present for release notes
  • MS info leakage check
  • For new driver: driver index page
  • For new assertion: ui/pdf/std renderers, documentation
  • For new cmdline arg: documentation

@rnemes rnemes requested a review from a team as a code owner December 4, 2024 19:29
* @param {String} path
*/
export const getWorkspacePath = (path) => {
const srcIndex = path.indexOf('/src/');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only works in linux

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

Successfully merging this pull request may close these issues.

1 participant