Commit Graph
180 Commits
Author SHA1 Message Date
JumpingYang001 2b42021b3f Add Format-Table Pester Unit Test 2016-04-25 20:16:25 -07:00
Andrew Schwartzmeyer 53bfc80b56 Fix Pester tests
The `Get-Process` cmdlet cannot be used for these types of tests due to
security constraints on OS X.

These tests are about to be re-written soon anyway, so the simple fix
was to use another cmdlet.
2016-04-25 15:27:24 -07:00
Andrew Schwartzmeyer ea5d5c3d05 Switch to netcoreapp1.0
Instead of using `dotnet publish`, we can use `dotnet build` and the new
`netcoreapp1.0` framework with a new dependency on
`Microsoft.NETCore.App` to generate output that does not include the
runtime, but can be run anywhere (given the installation of the
runtime).

While we cannot yet adopt a dependency on the shared host until .NET
Core RTM, we are forced to switch to this system anyway because the
latest RC3 packages and CLI do not support `netstandardapp1.5`. See
dotnet/cli#2482.

Thus we're in an in-between state where we have to use `netcoreapp1.0`,
but cannot use `"Microsoft.NETCore.App": { "type": "platform" }` to
utilize the shared host, as we need to continue to ship our host.
Without specifying "platform", we retain the status quo with respect to
build steps and outputs.

Additionally, there is no longer a good reason to use the RC3 packages,
and it has been advised we switch to RC2 since the
`Microsoft.NETCore.App` is only available for RC2. We must update
packages because our current version can no longer be debugged.
2016-04-25 14:01:44 -07:00
Sergei Vorobev f424f127f3 Merge pull request #873 from PowerShell/RemoveVariablePesterUnitTest
Add Remove-Variable Pester Unit Test
2016-04-24 23:33:09 -07:00
JumpingYang001 99c197cc7d Add Remove-Variable Pester Test 2016-04-24 22:33:29 -07:00
Andy Schwartzmeyer 44d011db81 Merge pull request #886 from PowerShell/GetAliasV2DRT
Add a V2 DRT for Get-Alias
2016-04-22 11:54:47 -07:00
Andy Schwartzmeyer abfbb53b49 Merge pull request #877 from PowerShell/GetCultureUT
Add Unit Test for Get-Culture
2016-04-22 11:53:46 -07:00
Andy Schwartzmeyer dca4376ac6 Merge pull request #876 from PowerShell/UnitTest_Temp
Add Unit Test for Add-Member
2016-04-22 11:52:59 -07:00
Andy Schwartzmeyer 0a566ecb29 Merge pull request #867 from PowerShell/InvokeCommandPesterTest
Add Invoke-Expression Pester Unit Test
2016-04-22 11:51:19 -07:00
Andy Schwartzmeyer c21ef82aee Merge pull request #866 from PowerShell/UpdateNewAliasPesterTest
Update New-Alias Pester Unit Test
2016-04-22 11:49:42 -07:00
Andy Schwartzmeyer 3e53aefebb Merge pull request #897 from PowerShell/andschwa/add-encodedcommand-tests-#712
Add -EncodedCommand tests
2016-04-22 11:49:04 -07:00
JumpingYang001 cd938e0905 Update Get-Variable Pester Test 2016-04-22 02:02:22 -07:00
TingLiu6 fc1d89a373 Fix the issues of CR for Add-Member 2016-04-22 01:44:22 -07:00
TingLiu6 e67043d99f Fix the issue of CR fot Get-Culture 2016-04-21 23:46:21 -07:00
Bryce Milton ed331bde7f Merge pull request #885 from PowerShell/BryceM-Dev
Porting Management DRT TTests from psl-monad to Pester
2016-04-21 22:54:26 -07:00
Andrew Schwartzmeyer 019b44b1ca Add test for -EncodedCommand 2016-04-21 16:05:07 -07:00
Andrew Schwartzmeyer a529bff212 Add tests for powershell -? parsing
And all other accepted forms.
2016-04-21 15:59:40 -07:00
Andrew Schwartzmeyer afb499d85e Update Pester tests readme 2016-04-21 15:50:30 -07:00
Andrew Schwartzmeyer 33aaa8c6f9 Use -noprofile for powershell.exe tests 2016-04-21 15:41:52 -07:00
Bryce Milton 6d6c4db2b8 Revert "attempting to work around Linux\OS1 dynamic file"
This reverts commit 1d883c705d.
2016-04-21 13:13:09 -07:00
Bryce Milton 1d883c705d attempting to work around Linux\OS1 dynamic file
https://github.com/PowerShell/PowerShell/issues/891
2016-04-21 13:00:57 -07:00
Bryce Milton abaa636f3a Fixing non-windows byte-encoding verification failure 2016-04-21 12:28:36 -07:00
Bryce Milton f6e0eee5d1 Fixing Linux\OSX compatibility issues
**Added -Pending:$flags for Linux and OSX to set-content and add-content
tests that expose dynamic variable file issues on these platforms
(https://github.com/PowerShell/PowerShell/issues/891)
**Handled platform-specific line-ending differences in Get-Content
-ReadLine - Tail tests
2016-04-21 12:08:37 -07:00
TingLiu6 350a630d8f Add a V2 DRT for Get-Alias 2016-04-20 23:47:06 -07:00
Bryce Milton 54efb3cb52 Porting Management DRT TTests from psl-monad to Pester 2016-04-20 21:56:49 -07:00
TingLiu6 6a0dc423f4 Fixed the CR issues 2016-04-20 21:34:23 -07:00
Bryce Milton 613d9c3cad Porting Management DRT TTests from psl-monad to Pester 2016-04-20 21:27:17 -07:00
Dicey Dai 97c215791e Add Invoke-Expression Pester Unit Test 2016-04-20 21:25:16 -07:00
Andy Schwartzmeyer 6c098b84e2 Merge pull request #878 from PowerShell/GetHostUT
Add Unit Test for Get-Host
2016-04-20 21:06:07 -07:00
Dicey Dai 5318cecf39 Update New-Alias Pester Unit Test 2016-04-20 20:26:16 -07:00
Andrew Schwartzmeyer 957966508f Whitespace cleanup 2016-04-20 14:09:16 -07:00
Andrew Schwartzmeyer b2ae01fc3e Fix cryptic Pester failure
When the Pester tests were invoked over PSRP and the environment was
more pristine than a local client, the lack of a "foo" variable in some
scope caused the Pester test suite to emit an error at the end, failing
the PSRP build.

Removing the Clear-Variable directive eliminates this error, and is not
necessary for the Pester test itself.
2016-04-20 14:07:40 -07:00
Andrew Schwartzmeyer 0b91bf718f Whitespace clean up and re-indent 2016-04-20 10:48:08 -07:00
George Fleming 7a99b885da Modify Set-PSBreakpoint.Tests.ps1 and fix 3 pending tests 2016-04-20 10:44:16 -07:00
TingLiu6 717608bb69 Add Unit Test for Get-Host 2016-04-20 02:16:36 -07:00
TingLiu6 2b54e7a709 Add Unit Test for Get-Culture 2016-04-20 01:28:43 -07:00
TingLiu6 61441715c1 Add Unit Test for Add-Member 2016-04-20 00:57:31 -07:00
Andy Schwartzmeyer ecc3483061 Merge pull request #860 from PowerShell/NewVariablePesterUnitTest
Add New-Variable Pester Unit test
2016-04-19 16:37:48 -07:00
JumpingYang001 7f0442a069 Update fixes based on comments for New Variable Pester Unit Test 2016-04-19 16:00:39 -07:00
JumpingYang001 1f739bb85c Remove newline var for New-Variable Pester Unit Test 2016-04-19 16:00:39 -07:00
JumpingYang001 4a619f49e3 Add New-Variable Pester Unit test 2016-04-19 16:00:39 -07:00
JumpingYang001 2400907968 Update fixes based on comments for Clear Variable Pester Unit Test 2016-04-19 15:59:26 -07:00
JumpingYang001 23aebe7945 Add Clear-Variable Pester Unit Test 2016-04-19 15:59:26 -07:00
George Fleming b8598b74ac Use new Listener signature 2016-04-19 15:14:22 -07:00
Andy Schwartzmeyer a655b439bc Merge pull request #850 from PowerShell/andschwa/fix-xunit
Re-enable xUnit tests on Linux
2016-04-18 19:27:55 -07:00
Andy Schwartzmeyer 3501376053 Merge pull request #845 from PowerShell/SetVariablePesterUnitTest
Add Set-Variable Pester Unit test
2016-04-15 09:30:52 -07:00
JumpingYang001 ca049ba56f Updaet fixed comments for Set-Variable Peste unit test 2016-04-14 19:27:18 -07:00
Andrew Schwartzmeyer dc9b4c595d Fix xUnit tests for Linux
The latest xUnit packages fix the "could not resolve coreclr path"
problem we were having. To resolve all dependencies, the cli-deps feed
was replaced with the aspnet feeds.

However, the latest xUnit packages do not allow us to set the default
AssemblyLoadContext.
2016-04-14 18:06:57 -07:00
Andy Schwartzmeyer 9496106637 Merge pull request #830 from PowerShell/UnitTest_Temp
Add Unit test for Set-PSBreakpoint
2016-04-14 11:49:08 -07:00
Andrew Schwartzmeyer b930eeef9f Disable broken OS X Pester tests
- The Get-Process cmdlet on OS X has issues due to permissions
- The Get-Process test in NativeLinuxCommands should have been removed
- The ProcessName property has the same bug that has been fixed on Linux
2016-04-14 10:05:51 -07:00