{"id":13597690,"url":"https://github.com/Xainey/PSTestReport","last_synced_at":"2025-04-10T05:33:05.972Z","repository":{"id":201594595,"uuid":"80182324","full_name":"Xainey/PSTestReport","owner":"Xainey","description":"Simple Bootstrap PowerShell Test Report","archived":false,"fork":false,"pushed_at":"2017-03-24T16:58:50.000Z","size":190,"stargazers_count":40,"open_issues_count":2,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-06T22:40:21.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xainey.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-01-27T04:58:03.000Z","updated_at":"2024-08-09T00:04:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"745ebf1a-ea57-4e03-9af7-26f4e9422b8f","html_url":"https://github.com/Xainey/PSTestReport","commit_stats":null,"previous_names":["xainey/pstestreport"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xainey%2FPSTestReport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xainey%2FPSTestReport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xainey%2FPSTestReport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xainey%2FPSTestReport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xainey","download_url":"https://codeload.github.com/Xainey/PSTestReport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248163323,"owners_count":21057911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T17:00:39.200Z","updated_at":"2025-04-10T05:33:04.343Z","avatar_url":"https://github.com/Xainey.png","language":"HTML","readme":"# PSTestReport\n\nEarly example to generate a static PowerShell test report.\n\nCDN references are included for most common libraries.\n\nThe output could be reduced to a single file or the additional common assets served by a web server.\n\nMust export Pester and PSScript Analyzer results to JSON.\n\n## Step 1: Run/Save tests\n\n```\n$testresults = Invoke-Pester -CodeCoverage \"*.ps1\" -PassThru\n$testresults | ConvertTo-Json -Depth 5 | Set-Content \".\\artifacts\\PesterResults.json\"\n\n$SAResults = Invoke-ScriptAnalyzer -Path . -Severity @('Error', 'Warning') -Recurse -Verbose:$false\n$SAResults | ConvertTo-Json | Set-Content \".\\artifacts\\ScriptAnalysisResults.json\"\n```\n\n## Step 2: Run Invoke-PSTestReport script\n\n```\n# Example: \n$options = @{\n  BuildNumber = 0\n  GitRepo = \"Xainey/PSHitchhiker\"\n  GitRepoURL = \"https://github.com/Xainey/PSHitchhiker\"\n  CiURL = \"http://jenkins/job/PSHitchhiker/\"\n  ShowHitCommands = $false\n  Compliance = 0.4\n  ScriptAnalyzerFile = \".\\artifacts\\ScriptAnalyzerResults.json\"\n  PesterFile = \".\\artifacts\\PesterResults.json\"\n  OutputDir = \".\\artifacts\"\n}\n\n.\\Invoke-PSTestReport.ps1 @options\n```\n\n## Example\n\n![HitchHikersGuide](powershell-test-report-fail.png)\n\n## Example with sidebar in Jenkins\n\n![HitchHikersGuide](powershell-test-report-pass.png)","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXainey%2FPSTestReport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXainey%2FPSTestReport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXainey%2FPSTestReport/lists"}