Skip to content

feat(ensemble_test_runner): add profile support for test execution an… - #2328

Open
sharjeelyunus wants to merge 9 commits into
mainfrom
test-runner-improvements
Open

feat(ensemble_test_runner): add profile support for test execution an…#2328
sharjeelyunus wants to merge 9 commits into
mainfrom
test-runner-improvements

Conversation

@sharjeelyunus

Copy link
Copy Markdown
Member

…d configuration

  • Introduced --profile option in CLI for selecting test profiles.
  • Updated README to document the new profile selection feature.
  • Enhanced JSON schema to include profiles configuration.
  • Modified test discovery and execution logic to handle profiles.
  • Added support for profiles in test case definitions and configurations.
  • Updated HTML report to display profile information for test runs.

Description

Related Issue

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)

What Has Changed

How to Test

Screenshots / Videos

Checklist

  • I have run flutter analyze and addressed any new warnings
  • I have run flutter test and all tests pass
  • I have tested my changes on the relevant platform(s)
  • I have updated documentation if needed
  • My changes do not introduce new warnings or errors

…d configuration

- Introduced `--profile` option in CLI for selecting test profiles.
- Updated README to document the new profile selection feature.
- Enhanced JSON schema to include profiles configuration.
- Modified test discovery and execution logic to handle profiles.
- Added support for profiles in test case definitions and configurations.
- Updated HTML report to display profile information for test runs.
@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

- Added functionality to clean up parallel run artifacts, including screenshots.
- Updated `cleanTransientArtifacts` to publish screenshots to the report directory.
- Adjusted test cases to verify the new screenshot handling and reporting structure.
- Added support for deduplicating identical encoded screenshots in the contact sheet.
- Introduced a new `ScreenshotHighlight` class to manage highlight information for screenshots.
- Updated image encoding to support both PNG and JPEG formats with compression.
- Enhanced HTML report generation to include screenshot highlights.
- Modified test cases to validate the new screenshot handling and deduplication logic.
- Updated screenshot encoding to include WebP format alongside PNG and JPEG.
- Introduced a new method to handle WebP encoding using the cwebp tool.
- Enhanced the screenshot handling logic to select the smallest encoded image.
- Modified tests to validate the inclusion of WebP files in the output.
- Added a new callback `onBeforeActionStep` to `TestStepExecutor` for pre-action handling.
- Updated `_tap` method to invoke the new callback if provided.
- Enhanced step formatting to support single nested optional steps in `formatStepBrief` and `outlineSteps`.
- Introduced logic to capture screenshots for optional action steps during execution.
- Modified tests to validate the new formatting and callback functionality.
…functionality

- Implemented a new test to verify that the onBeforeActionStep callback is triggered before a tap action is executed.
- Ensured the callback captures the correct step and state of the button tap during the test execution.
- Enhanced the test suite to validate the interaction between the callback and the action step.
…e screenshot deduplication

- Introduced a new callback `onAfterActionStep` in `TestStepExecutor` to allow actions after executing a test step.
- Updated the execution flow to call `onAfterActionStep` after specific actions like entering and clearing text.
- Enhanced screenshot handling by implementing visual deduplication for equivalent screenshots, reducing redundancy in reports.
- Modified tests to validate the new callback functionality and visual deduplication logic.
…selection

- Added `actionSettleTimeout` to `TestExecutionConfig` for customizable action settling duration.
- Refactored `_settle` method calls in `TestStepExecutor` to use `_settleAfterAction` for improved action handling.
- Introduced `exactIds` in `EnsembleTestSelection` to allow precise test selection.
- Updated test execution planner to support exact ID filtering while maintaining session dependencies.
- Enhanced CLI to accept `ensembleTestShardId` for better test sharding management.
- Added tests to validate new selection features and sharding behavior.
…reporting

- Removed the `_publishScreenshotsToReport` method to simplify the screenshot handling process.
- Updated `cleanTransientArtifacts` to clarify that it only removes transient frame manifests while keeping report screenshots intact.
- Adjusted screenshot writing logic to separate manifest and image directories, ensuring proper organization of report artifacts.
- Modified tests to reflect changes in screenshot directory structure and verify the retention of report screenshots.
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