Skip to content

Releases: alexneo2003/playwright-azure-reporter

Release v1.19.0

09 Dec 12:16

Choose a tag to compare

🎉 Release 1.19.0

Features

  • automark: add callback support for storage path and test type (48d0e98), closes #138

BREAKING CHANGES

  • automark: Renamed automatedTestStorageFullPath to automatedTestStoragePath with enhanced functionality
  • Replace boolean automatedTestStorageFullPath with flexible automatedTestStoragePath
    • Supports boolean (false: basename, true: full path) for backward compatibility
    • Supports callback function (testCase: TestCase) => string for custom path logic
    • Enables relative paths to avoid exposing sensitive info (usernames) in CI/CD
  • Add new automatedTestType callback option
    • Sets Microsoft.VSTS.TCM.AutomatedTestType field in Azure DevOps
    • Callback signature: (testCase: TestCase) => string
    • Field not set if callback returns empty/falsy value
  • 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@latest

Release v1.18.0

08 Dec 10:10

Choose a tag to compare

🎉 Release 1.18.0

Features

  • reporter: extend auto-mark functionality with test name and storage path options (8c3bb36), closes #136

Installation:

npm install @alex_neo/playwright-azure-reporter@latest

Release v1.17.0

30 Nov 13:34

Choose a tag to compare

🎉 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@latest

Release v1.16.2

20 Oct 16:41

Choose a tag to compare

🎉 Release 1.16.2

This is a stable release.

Installation:

npm install @alex_neo/playwright-azure-reporter@latest

Release v1.16.1

07 Oct 16:35

Choose a tag to compare

🎉 Release 1.16.1

This is a stable release.

Installation:

npm install @alex_neo/playwright-azure-reporter@latest

Changes

Bug Fixes

  • reporter: preserve TestCase getter properties when creating extended test cases (7b20c14), closes #128

Release v1.16.0

20 Sep 18:59

Choose a tag to compare

🎉 Release 1.16.0

This is a stable release.

Installation:

npm install @alex_neo/playwright-azure-reporter@latest

Features

  • 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

16 Sep 20:00

Choose a tag to compare

🎉 Release 1.15.0

This is a stable release.

Installation:

npm install @alex_neo/playwright-azure-reporter@latest

Changes

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

15 Sep 17:19

Choose a tag to compare

🎉 Release 1.14.0

This is a stable release.

Installation:

npm install @alex_neo/playwright-azure-reporter@latest

Changes

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

02 Sep 17:42

Choose a tag to compare

🎉 Release 1.13.3

This is a stable release.

Installation:

npm install @alex_neo/playwright-azure-reporter@latest

Changes

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

31 Aug 16:59

Choose a tag to compare

Pre-release

🎉 Beta Release v1.13.2-beta.1

This is a manual beta release.

Installation:

npm install @alex_neo/playwright-azure-reporter@beta

Note: This is a beta release for testing purposes. For production use, please use the latest stable release.