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

Customizing reporting data of sessions #758

Open
cbscsm opened this issue Jan 18, 2024 · 0 comments
Open

Customizing reporting data of sessions #758

cbscsm opened this issue Jan 18, 2024 · 0 comments

Comments

@cbscsm
Copy link

cbscsm commented Jan 18, 2024

How would this feature be useful?

  • AFAIK, reports of nox have fixed data format: args, name, result, result_code, signatures. If I can add some custom data into it, it will be helpful.
  • For example:
    • Elapsed time which is checked from custom logic for each session.
    • Parsed result of some command or status.
    • Summary of session result.

Describe the solution you'd like

  • Allowing to add data for reporting via session object. It might be like session.report.set("elapsed_time", elapsed_time), session.report.elapsed_time("elapsed_time"), or session.report.add(elapsed_time="elapsed_time").

Describe alternatives you've considered

  • Currently, logs can contain structured data. However, comparing with data files like JSON, logs are relatively hard to be parsed or aggregated in automations like CI pipeline.
  • Or I can write my own new file. But it will be nice to integrated with built-in report file. It already has useful information.

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant