Skip to content

Conversation

Copy link

Copilot AI commented Dec 13, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>Refactor tests to use TestCommandFails</issue_title>
<issue_description>In the tmstest folder, ps1 files, find all occurrences of code similar to this:

$installResult = Invoke-WithExitCodeIgnored{ tms install vsoft.* tms.biz.*  }
$testOk = Test-Result -CommandResult $installResult -Message "*Error: The product tms.biz.bcl is excluded in the section ""excluded products"" from tms.config.yaml.*"  
if (-not ($testOk)) {   
    Write-Error "The error message should mention 'Error: The product tms.biz.bcl is excluded in the section ""excluded products"" from tms.config.yaml.'. Actual message: $($installResult)"
}

And replace it for the equivalent:

Test-CommandFails -Command { tms install vsoft.* tms.biz.* } -ExpectedMessage "*Error: The product tms.biz.bcl is excluded in the section ""excluded products"" from tms.config.yaml.*"
```</issue_description>

<agent_instructions>Use the versioning branch</agent_instructions>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Dec 13, 2025
@agallero
Copy link
Contributor

copilot didn't work here, so I did the same locally

@agallero agallero closed this Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor tests to use TestCommandFails

2 participants