mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-17 09:26:50 +08:00
Task Settings Module Test Suite
This directory contains a comprehensive test suite for verifying the refactored TaskSettings modules.
Quick Start
To run all tests, execute the following batch file:
RunTaskSettingsTests.bat
Available Tests
Functionality Tests
- TaskSettingsModuleTests.ps1 - Verifies that all modules have the required controls, data bindings, and commands.
- Run with:
RunTaskSettingsModuleTests.bat
UI Consistency Tests
- UIConsistencyTests.ps1 - Checks that UI styling is consistent across all modules.
- UIScreenshotGenerator.ps1 - Creates a checklist for manual UI verification.
- Run with:
RunUIConsistencyTests.batorGenerateUIScreenshots.bat
Data Binding and Localization Tests
- DataBindingLocalizationTests.ps1 - Verifies data binding and localization implementation.
- DetailedDataBindingTests.ps1 - Performs detailed data binding verification.
- HardcodedStringChecker.ps1 - Identifies potential hardcoded strings.
- Run with:
RunDataBindingTests.bat,RunDetailedDataBindingTests.bat, orCheckHardcodedStrings.bat
Documentation
- TaskSettingsTestDocumentation.md - Main test documentation
- UIVerificationGuide.md - Guide for UI consistency verification
- LocalizationVerificationGuide.md - Guide for localization verification
- TaskSettingsTestSummary.md - Summary of test results
Test Results
Test results are saved in the Results directory with timestamps for tracking.
Adding New Tests
To add a new test:
- Create a new PowerShell script in this directory
- Add a corresponding batch file for easy execution
- Update this README with information about the new test
Best Practices
When testing TaskSettings modules:
- Always verify against the requirements document
- Check both functionality and appearance
- Ensure data binding paths are correct
- Verify localization is implemented properly
- Document any issues found during testing