Releases: alexneo2003/playwright-azure-reporter
Release v1.19.0
🎉 Release 1.19.0
Features
BREAKING CHANGES
- automark: Renamed
automatedTestStorageFullPathtoautomatedTestStoragePathwith enhanced functionality
- Replace boolean
automatedTestStorageFullPathwith flexibleautomatedTestStoragePath- Supports boolean (false: basename, true: full path) for backward compatibility
- Supports callback function
(testCase: TestCase) => stringfor custom path logic - Enables relative paths to avoid exposing sensitive info (usernames) in CI/CD
- Add new
automatedTestTypecallback option- Sets
Microsoft.VSTS.TCM.AutomatedTestTypefield in Azure DevOps - Callback signature:
(testCase: TestCase) => string - Field not set if callback returns empty/falsy value
- Sets
- Update _getAutomatedTestStorage to handle both boolean and function types
- Add 4 comprehensive test cases covering callback scenarios
- Update README and examples with advanced callback usage patterns
- Maintain full backward compatibility with boolean values
Installation:
npm install @alex_neo/playwright-azure-reporter@latestRelease v1.18.0
Release v1.17.0
🎉 Release 1.17.0
Features
- reporter: add automatic test case automation status marking (dc87cc5), closes #134
- reporter: extract test case IDs from annotation descriptions using testCaseIdMatcher (2392fb7), closes #132
BREAKING CHANGES
- reporter: Requires Work Items (Read & Write) token scope for marking test cases as automated
Installation:
npm install @alex_neo/playwright-azure-reporter@latestRelease v1.16.2
🎉 Release 1.16.2
This is a stable release.
Installation:
npm install @alex_neo/playwright-azure-reporter@latestRelease v1.16.1
Release v1.16.0
🎉 Release 1.16.0
This is a stable release.
Installation:
npm install @alex_neo/playwright-azure-reporter@latestFeatures
-
reporter: add testRunADO mode with pagination support (21f0929)
- Add testRunADO publishTestResultsMode for updating existing test results
- Implement recursive pagination for Azure DevOps getTestResults API (>200 items)
- Add comprehensive validation for testRunADO mode requirements
- Create complete test suite with 6 test scenarios including pagination test
- Add documentation for testRunADO configuration and usage
- Improve error handling with detailed warning messages
- Support large test runs with automatic pagination handling
- Prevent automatic test run completion in testRunADO mode
-
ci: add automated test results reporting to PR comments (a0c9373)
Closes: Updates existing test results instead of creating new ones
BREAKING CHANGE: testRunADO mode requires both testRunId and isExistingTestRun=true
BREAKING CHANGES
- reporter: testRunADO mode requires both testRunId and isExistingTestRun=true
Release v1.15.0
🎉 Release 1.15.0
This is a stable release.
Installation:
npm install @alex_neo/playwright-azure-reporter@latestChanges
Bug Fixes
- attachments: implement retry mechanism for file access during upload (2bd80e5), closes #120
- changelog: prevent duplicate entries in publish workflow (d35cc9c)
Features
-
summary: testCaseSummary config block (enabled, outputPath, consoleOutput, publishToRun) to report unmatched test cases and optionally upload summary as run attachment. (37c9e43)Adds testCaseSummary config block (enabled, outputPath, consoleOutput, publishToRun) to report unmatched test cases and optionally upload summary as run attachment.
Includes:
- core reporter logic: generate summary, conditional console/file output, run attachment publishing
- configuration IDs to names resolution with debug logging
- attachment publishing helper for summary
- updated mocks (azureAreas, new azureTestPlanOptionsResponse) to support new endpoints
- expanded tests: new reporter-testCaseSummary.spec covering summary scenarios (no matches, configurations, file output, run attachment)
- updates to existing tests to mock configuration endpoints and test plan options
- README docs: document publishToRun, behavior matrix, usage example
BREAKING CHANGES
- summary: none (feature is opt-in via testCaseSummary.enabled)
Release v1.14.0
🎉 Release 1.14.0
This is a stable release.
Installation:
npm install @alex_neo/playwright-azure-reporter@latestChanges
Feature
feat(auth): implement comprehensive authentication system with smart token refresh
- Add support for three authentication types: pat, accessToken, and managedIdentity
- Implement Azure DefaultAzureCredential integration for seamless Azure authentication
- Add intelligent token refresh mechanism with expiration-based optimization
- Make token field optional when using managedIdentity authentication
- Add applicationIdURI field for Azure resource identification
BREAKING CHANGES:
- authType field now supports 'managedIdentity' value requiring applicationIdURI
- token field becomes optional for managedIdentity authentication type
Features:
- New authType: 'managedIdentity' with Azure DefaultAzureCredential support
- Automatic credential resolution (Azure CLI, managed identity, environment variables)
- Smart token refresh with 5-minute expiration threshold to prevent unnecessary refreshes
- Token expiration tracking using expiresOnTimestamp from Azure responses
- Strategic refresh placement in onTestEnd for optimal timing during test execution
- Backward compatibility maintained for existing PAT and accessToken configurations
- Enhanced validation logic for different authentication scenarios
Performance Optimizations:
- Token refresh only occurs when expiration is within 5 minutes
- Prevents excessive API calls by tracking token expiration timestamps
- Efficient credential reuse to avoid connection recreation
- Connection updates only when token actually changes
Dependencies:
- Add @azure/identity ^4.12.0 for Azure authentication services
Documentation:
- Update README.md with comprehensive authentication examples
- Add detailed authType-examples.md with usage patterns for all three types
- Include configuration examples for different Azure environments
- Document smart token refresh behavior and thresholds
Testing:
- Add comprehensive test suite for token refresh mechanism (10 new tests)
- Test coverage for all authentication scenarios and edge cases
- Validate smart refresh logic with various expiration scenarios
- Test error handling and graceful degradation
- Maintain 83 passing unit tests with full feature coverage
- Add validation tests for applicationIdURI requirement
Architecture:
- Store DefaultAzureCredential instance for efficient token refresh
- Track token expiration with _tokenExpiresOn property
- Implement _refreshTokenIfNeeded with intelligent refresh logic
- Update authentication handler creation to store expiration data
- Ensure connection recreation only when necessary
Release v1.13.3
🎉 Release 1.13.3
This is a stable release.
Installation:
npm install @alex_neo/playwright-azure-reporter@latestChanges
Bug Fixes
-
Replace pagination with configuration filtering as requested
- Fetch configuration names in onBegin hook using testPlanApi.getTestConfigurationById
- Store configuration names for filtering test points by configurationNames parameter
- Remove recursive pagination logic in favor of server-side filtering
- Update test descriptions to reflect new configuration filtering approach
- Preserve backward compatibility when no configuration IDs are provided
-
add missing conventional-changelog and conventional-github-releaser dependencies (93bfa1c)
Release v1.13.2-beta.1
🎉 Beta Release v1.13.2-beta.1
This is a manual beta release.
Installation:
npm install @alex_neo/playwright-azure-reporter@betaNote: This is a beta release for testing purposes. For production use, please use the latest stable release.