-
Notifications
You must be signed in to change notification settings - Fork 187
[Test]Establish Comprehensive Testing Infra #538
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
Open
weiyuanyue
wants to merge
37
commits into
main
Choose a base branch
from
milly/uiamerge
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR establishes a comprehensive testing infrastructure for AI Dev Gallery by introducing three types of tests (unit, integration, and UI automation) with corresponding test frameworks and CI/CD integration.
Motivation
Changes
Project Restructure
AIDevGallery.UnitTests→AIDevGallery.Teststo accommodate multiple test typesTest Infrastructure
FlaUITestBase: High-level UI testing framework
NativeUIA3TestBase: Low-level UI automation
PerformanceCollector: Test execution metrics
Test Categories
Unit Tests
Integration Tests
UI Automation Tests 🖱️
CI/CD Integration
Modified
.github/workflows/build.yml:Original Workflow(Before)
graph TD A[Trigger: Push/PR] --> B[Build] B --> C[Generate MSIX] C --> D[Upload Artifact] D --> E[Complete] style A fill:#e1f5ff style B fill:#fff4e1 style E fill:#e8f5e9New Workflow(After)
graph TD A[Trigger Event] --> B{PR/Push?} B --> |Yes| C1[Run Unit Tests] C1 --> C1A[Generate Reports] C1A --> C2{Tests Pass?} C2 --> |Yes| C3[✓ Pass] C2 --> |No| C4[✗ Fail Fast] B --> |Yes|D1[Build] D1 --> D2[Generate MSIX & Upload Artifact] D2 --> D3[✓ Complete] F[Download MSIX<br/>Skip Build] A --> E{Manual Trigger<br/>All Tests?} E -->|Yes| G[Build App & Tests<br/>Independent Mode] F --> H[Deploy MSIX] G --> H H --> I[Run All Tests<br/>Unit+Integration+UI] I --> J[Generate Reports] J --> K[✓ Complete] style A fill:#e1f5ff style F fill:#c8e6c9 style G fill:#fff9c4 style I fill:#e8f5e9 style K fill:#c8e6c9 style C4 fill:#ffcdd2Dependencies
FlaUI.UIA3(v5.0.0) for UI automation frameworkKnown Limitations