Skip to content

Fix and improve Start-PSxUnit - #1065

Merged
Andy Jordan (andyleejordan) merged 2 commits into
masterfrom
andschwa/fix-start-psxunit
Jun 1, 2016
Merged

Andy Jordan (andyleejordan) merged 2 commits into
masterfrom
andschwa/fix-start-psxunit

Conversation

@andyleejordan

@andyleejordan Andy Jordan (andyleejordan) commented Jun 1, 2016 •

Copy link
Copy Markdown
Member
  • Last PR had a typo in "TestAruments" which caused the configuration not to get picked up
  • Now bails appropriately if PowerShell wasn't built, instead of rebuilding it every time
  • Passes -verbose to the xUnit runner, not dotnet, so we can see which test failed
  • Also Make git describe work relative to script, so that you don't have to watch your CWD when running commands from the build module.

This change is Reviewable

* Last PR had a typo in "TestAruments" which caused the configuration
  not to get picked up
* Now bails appropriately if PowerShell wasn't built, instead of
  rebuilding it every time
* Passes `-verbose` to the xUnit runner, not dotnet, so we can see which
  test failed
So that you don't have to watch your CWD when running commands from the
build module.
@andyleejordan

Copy link
Copy Markdown
Member Author

Now we correctly get:

xUnit.net Runner (64-bit ubuntu.14.04-x64)
  Discovering: powershell-tests
  Discovered:  powershell-tests
  Starting:    powershell-tests
    PSTests.MshSnapinInfoTests.TestReadCoreEngineSnapIn
    PSTests.MshSnapinInfoTests.TestReadRegistryInfo
    PSTests.PSVersionInfoTests.TestVersions
    PSTests.RunspaceTests.TestRunspaceWithPipeline
SUMMARY: Total: 1 targets, Passed: 0, Failed: 1.

@JamesWTruher

Copy link
Copy Markdown
Collaborator

:shipit:

@andyleejordan
Andy Jordan (andyleejordan) merged commit 455f223 into master Jun 1, 2016
@andyleejordan
Andy Jordan (andyleejordan) deleted the andschwa/fix-start-psxunit branch June 1, 2016 19:10
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WG-Maintainers-Build specific to affecting the build WG-Quality-Test issues in a test or in test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants