Skip to content

tests: split the Pivot Pester files by topic #170

Open

Description

@eizedev

Three Pester files of the Pivot module are over the file limit of the growth guard (build/growth-baseline.json, 300 code lines):

  • tests/powershell/PivotReport.Tests.ps1: 1,409 code lines (Invoke-UDPivotReport, both engines, sign-in, links, errors)
  • tests/powershell/PivotTemplates.Tests.ps1: 728 code lines (template stores, view files, -SchemaUrl)
  • tests/powershell/Pivot.Tests.ps1: 530 code lines (New-UDPivotReport and the rest)

To do:

  • Split each file by topic, for example one file per engine and one for sign-in in PivotReport.Tests.ps1.
  • Move the shared setup (stand-in command line, stand-in pivotkit-server, Endpoint stub) into one helper file that each test file dot-sources, instead of copying it.
  • Move tests only. The counts must stay the same (357 passed, 7 skipped locally with all modules built).
  • Lower the baseline with npm run growth -- --update.

Not affected: the module. It was left out of the module split (#163) to keep that pull request reviewable.

Activity

  1. added this to the Maintenance milestone on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions