Skip to content

tests: cmdlet-binding test coverage for VisioPowerShell (first slice) #173

Description

@saveenr

Write the first slice of cmdlet-binding tests against VisioPowerShell/Commands/. The audit at #154 (closed) established that ~56 of 70 cmdlets have no dedicated test, the same regression class as the four bugs that shipped in module 4.6.1 (Lock-VisioShape / Unlock-VisioShape switch binding, Export-VisioShape inverted file-existence check, New-VisioShape polyline / Bezier minimum-point validation).

Scope (first slice)

Suggested in docs/futures/test-coverage-gaps.md:

Approach

The harness is already in place: VisioPSSession.InvokeScript<T> hosts a real PowerShell runspace with the module loaded. Add fixture-style tests, one file per cmdlet group.

Why

Cmdlet-binding tests catch a distinct regression class from the underlying-library tests: parameter binding (positional, mandatory, switches), ParameterSetName resolution, pipeline binding, output piping. The 4.6.1 bugs all sit in this layer.

Out of scope

Closing the entire ~56-cmdlet gap. The audit suggested a capped first slice rather than chasing the whole list. Subsequent slices can be filed as follow-ups once this lands.

Cross-refs

Effort

M.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions