Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Mar 3, 2025

w## Description

This pull request updates configuration handling, output management, and test structure, including the addition of JSON report output, modifications to the ConvertFrom-PesterConfiguration filter, and updates to the test result and code coverage paths.

Improvements to configuration and output management

  • README.md:
    • Added ReportAsJson input to allow output of generated reports in JSON format.
  • action.yml:
    • Introduced ReportAsJson input and updated the runs section to use this input for environment variables.
  • scripts/main.ps1:
    • Added logic to export test results and code coverage results to JSON format if ReportAsJson is enabled.

Enhancements to configuration handling

  • scripts/Helpers.psm1:
    • Renamed Convert-PesterConfigurationToHashtable to ConvertFrom-PesterConfiguration and added the AsHashtable parameter to improve configuration conversion.

Updates to test structure and paths

  • scripts/init.ps1:
    • Updated paths for test result and code coverage output to new directories.
  • tests/1-Simple/Emoji.Tests.ps1:
    • Refactored test script to source the emoji data from an external script file.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@MariusStorhaug MariusStorhaug self-assigned this Mar 3, 2025
…nd refactor Get-PesterTestTree for improved clarity and structure
…y and structure by simplifying variable usage and enhancing readability
…bility, enhancing object property handling and adding verbose logging
… ticks for improved precision in test result metrics
…maintain consistency in code coverage output
… improved precision in test result metrics and update JSON export depth for better output handling
…ompression to improve performance and reduce output size
@MariusStorhaug MariusStorhaug merged commit 99bd1f5 into main Mar 3, 2025
17 checks passed
@MariusStorhaug MariusStorhaug deleted the outputAsJson branch March 3, 2025 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚀[Feature]: CodeCoverage as a custom JSON output 🚀[Feature]: TestResults as a custom JSON output

2 participants