-
Notifications
You must be signed in to change notification settings - Fork 0
🚀[Feature]: Add support for running setup and teardown scripts during tests with integrated matrix processing #177
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
Conversation
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
|
Rework so that it runs PowerShell based steps. |
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Reworked the implementation to use PowerShell-based steps as requested. The new approach removes the separate bash-based BeforeAll-ModuleLocal and AfterAll-ModuleLocal jobs and instead adds simple PowerShell steps directly to the Test-ModuleLocal.yml workflow that check for and execute BeforeAll.ps1/AfterAll.ps1 scripts. This is now fully PowerShell-based and consistent with the existing testing infrastructure. (2027a0b) |
…tation Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
|
@copilot Check if we can use the Get-Settings job to see if there are BeforeAll.ps1 and AfterAll.ps1 scripts, and only run the jobs for these if the files exist. |
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Implemented the requested changes to use separate jobs for BeforeAll and AfterAll scripts with proper job dependencies. The implementation now includes: Separate Reusable Workflows:
Enhanced Get-Settings:
Job Dependencies: Conditional Execution:
Applied changes to both CI.yml and workflow.yml files. (7b69fe7) |
…tecture Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
|
@copilot Lets move the jobs 'BeforeAll-ModuleLocal' and 'AfterAll-ModuleLocal' into the 'Test-ModuleLocal' reusable workflow. Lets also remove the detection logic and have the beforeall and afterall jobs always run but simply end successfully if there are no AfterAll and BeforeAll files present so we simplify the inputs/outputs between stages. |
…e detection logic Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Implemented the requested changes to move BeforeAll and AfterAll jobs into the Test-ModuleLocal workflow and removed the detection logic for simplified execution: Changes Made:
Job Dependencies: Validation:
The implementation now uses a simplified single-workflow approach as requested. (f6fef54) |
|
@copilot Is there a way we can move the matrix (foreach) process for the actual tests to be brought into the "Test-ModuleLocal" reusable workflow? |
…g workflows Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Yes! Successfully moved the matrix (foreach) processing into the Test-ModuleLocal reusable workflow: Changes Made:
New Flow: Benefits:
The Test-ModuleLocal workflow now handles all the matrix processing internally while CI.yml and workflow.yml just pass the test suites array. (3e25e4c) |
- Implemented `setup-plan.ps1` to create an implementation plan for features, including JSON output option and template handling. - Developed `update-agent-context.ps1` to update agent context files based on `plan.md`, supporting multiple agent types and ensuring environment validation. - Created templates for agent files and implementation plans to standardize documentation and facilitate easier updates. - Introduced a comprehensive feature specification template to guide feature development and ensure clarity in requirements. - Added a task template to streamline task generation for feature implementation, ensuring proper sequencing and dependencies.
…nce and requirements
…omated publishing process
This PR implements support for BeforeAll.ps1 and AfterAll.ps1 setup and teardown scripts during the Test-ModuleLocal workflow, as requested in issue #169. Additionally, the matrix processing for test execution has been moved into the Test-ModuleLocal workflow for better organization and maintainability.
Changes Made
Workflow Architecture
Script Detection and Execution
Matrix Processing Enhancement
Example Usage
Place BeforeAll.ps1 and/or AfterAll.ps1 scripts in your test directories:
Documentation
Test Coverage
Workflow Execution Order
This implementation provides exactly the functionality requested in the issue using an integrated single-workflow approach for setup and teardown, with enhanced matrix processing that centralizes test execution logic within the reusable workflow for better maintainability.
Fixes #169.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.