Skip to content

feat(selectivity): add ability to save selectivity report#1221

Merged
KuznetsovRoman merged 1 commit intomasterfrom
TESTPLANE-938.selectivity_report
Mar 13, 2026
Merged

feat(selectivity): add ability to save selectivity report#1221
KuznetsovRoman merged 1 commit intomasterfrom
TESTPLANE-938.selectivity_report

Conversation

@KuznetsovRoman
Copy link
Member

No description provided.

Comment on lines +238 to +240
const reportPath =
process.env.TESTPLANE_SELECTIVITY_REPORT_PATH ||
this._config.forBrowser(browserId).selectivity.reportPath;
Copy link
Member Author

Choose a reason for hiding this comment

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

Saving report is optional and turned off by default
To enable saving this report, user should set "reportPath" in config if he needs this report
On tasklet side, we can conveniently override it with "TESTPLANE_SELECTIVITY_REPORT_PATH" env variable

@KuznetsovRoman KuznetsovRoman force-pushed the TESTPLANE-938.selectivity_report branch from 437651e to 10c7d8e Compare March 13, 2026 06:52
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 13, 2026

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1221

commit: 4d99910

@KuznetsovRoman
Copy link
Member Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 10c7d8e058

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@KuznetsovRoman KuznetsovRoman force-pushed the TESTPLANE-938.selectivity_report branch from 10c7d8e to 7fe48ae Compare March 13, 2026 13:07
const promises = await Promise.allSettled(
Object.keys(browserReportPaths).map(async reportPath => {
const report: SelectivityReport = {
totalProcessedCount: 0,
Copy link
Member

Choose a reason for hiding this comment

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

maybe totalCount and skipperCount? Processed is to long, imho

Copy link
Member Author

Choose a reason for hiding this comment

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

totalCount is missleading.
If test was disabled at the start, it was not inspected "should it be run or not"
The same with browsers, which has disabled selectivity: its not counted.
So "processed" its "testplane selectivity inspected, whether this test should be executed or not"

@KuznetsovRoman KuznetsovRoman merged commit 724a965 into master Mar 13, 2026
5 of 6 checks passed
@KuznetsovRoman KuznetsovRoman deleted the TESTPLANE-938.selectivity_report branch March 13, 2026 15:41
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.

2 participants