Commit graph

267 commits

Author SHA1 Message Date
Andrew Schwartzmeyer
70be543038 Add Get-TraceSource test 2016-06-03 13:53:20 -07:00
Andrew Schwartzmeyer
dbae9e5c13 Import Trace-Command tests from source depot 2016-06-03 13:35:56 -07:00
Andrew Schwartzmeyer
9c7e97e325 Add Debian 8 RID 2016-06-03 09:37:59 -07:00
James Truher [MSFT]
6dac6bf58a Merge pull request #1063 from PowerShell/GetPsCallStackTests
Add Unit Test for Get-PSCallSta
2016-06-01 10:47:09 -07:00
TingLiu6
325c39f90a Add Unit Test for Get-PSCallSta 2016-06-01 02:29:44 -07:00
Andrew Schwartzmeyer
05fc323762 Fix Remove-TypeData runspace isolation
Responding to PR review.
2016-05-26 10:36:22 -07:00
Andrew Schwartzmeyer
f13f5afd23 Isolate Remove-TypeData tests with runspace 2016-05-24 11:51:58 -07:00
Jim Truher (MSFT)
b8b41397de modified update-typedata.tests for better isolation
similar changes here as found in update-formatdata. Run each test in it's own
PowerShell/Runspace instance which will protect the default runspace from
destructive changes
2016-05-23 16:49:35 -07:00
Jim Truher (MSFT)
b8c9578e5b modify updateformatdata tests to use runspace to isolate format changes.
This should be the pattern for any test which mainupulates current state
to protect from unintended side effects. This was done by default in ttest
because each test would have its own runspace
2016-05-23 15:04:13 -07:00
Jason Shirk
cf7f46e1b8 Merge pull request #918 from PowerShell/UpdateTypeDataPesterTest
Add Update-TypeData and Update-FormatData Pester Unit Test
2016-05-23 13:27:18 -07:00
Andrew Schwartzmeyer
4f8e30c10e Update xUnit tests to depend on powershell project 2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer
dcaf231bde Update dotnet-test-xunit package 2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer
5349900c3b Use get-command instead of get-process in xUnit 2016-05-20 15:17:12 -07:00
James Truher [MSFT]
b118b76446 Merge pull request #978 from PowerShell/ConverttoCSVDRT
Add Unit Test for ConvertTo-Csv
thanks for updating
2016-05-19 15:24:30 -07:00
James Truher [MSFT]
51d5491c54 Merge pull request #1009 from PowerShell/jimtru-psversion2
update PSVersionTable code to use powershell.version rather than .version…
2016-05-19 15:20:16 -07:00
Andrew Schwartzmeyer
1e24e76200 Mark ConsoleHost tests as slow 2016-05-19 14:28:43 -07:00
James Truher
8583cf5e96 update PSVersionTable code to use powershell.version rather than .version because on Linux the .version file doesn't seem to be binplaced. I postulate this is because it's a hidden file 2016-05-19 13:19:16 -07:00
Andrew Schwartzmeyer
ee582d42d5 Add regression test for CallDepthOverflow 2016-05-19 10:48:02 -07:00
Jim Truher (MSFT)
777b2ec7d8 Merge remote-tracking branch 'origin/master' into jimtru-AddGitCommitToPSVersionTable 2016-05-18 17:07:39 -07:00
Jim Truher (MSFT)
cfd5bded5b add functionality to PSVersionTable to include GitCommitID and update tests 2016-05-18 15:35:09 -07:00
Andrew Schwartzmeyer
fcf4b38370 Rename PowerShellGitHubDev.psm1 to build.psm1 2016-05-18 13:58:59 -07:00
Andrew Schwartzmeyer
7675de8d74 Link Pester readme to Pester Do and Don't 2016-05-18 10:08:05 -07:00
Andrew Schwartzmeyer
7e65fa448e Mark as pending Travis CI OS X failing tests
These tests *do not* fail locally, nor on the Linux test runner. They do
not fail when accessing the OS X runner under debug mode. The *only*
cause is the lack of a TTY on the OS X runner, which is a Travis CI
regression. Moreover, the formatting tests do not fail when the TTY is
removed locally.

These absolutely should be fixed at some point, but it is not worth
spending any more time on it.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
d1c2a2c896 Disable Set-PSDebug tests on AppVeyor
These pass locally, just not with AppVeyor's host.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
2712cead34 Use Pending for tests that shouldn't be Skipped 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
fe5328006d Fix Import-Alias tests 2016-05-17 13:28:44 -07:00
Andy Schwartzmeyer
2fdf48165a Clean up Set-PSDebug tests 2016-05-17 13:28:44 -07:00
Andy Schwartzmeyer
6cd7804fb0 Mark redirected input test as pending on Windows
While this passes on Linux, it does not pass on Windows, indicating a
platform-specific bug in .NET Core.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
6d7b6a10f6 Skip complex prompting tests
Not supported with non-PSReadLine Open PowerShell host.
2016-05-17 13:28:44 -07:00
Jason Shirk
8c97fd16cd Add ConsoleHost tests 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
c3eaf9a77e Mark as pending tests not working with ConsoleHost 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
7f9052c1c6 Remove platform tests
This is pointless to test as the .NET Code better be correct, or we have
worse problems.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
7c80035d35 Skip xUnit tests not yet ported to OS X 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
0012fa90d6 Remove deprecated Listener tests 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
4234b3db73 Remove CoreConsoleHost from xUnit tests 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
658f3e0d48 Update xUnit project to use ConsoleHost 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
5c0d17e3a2 Update ConsoleHost tests 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
dca17ac0f7 Migrate ConsoleHost tests 2016-05-17 13:28:44 -07:00
JumpingYang001
fb02fd76a6 Update ErrorAction from SilentlyContinue to Ignore for remove-item in Update-TypeData Pester test 2016-05-16 20:17:41 -07:00
JumpingYang001
3d6dae89a1 Update fixes based on lzybkr comments for Update-TypeData Pester Test 2016-05-16 19:52:47 -07:00
TingLiu6
10144d7c55 Fixed the CR issue 2016-05-16 19:52:47 -07:00
TingLiu6
dbd2a8f1b1 Fix the CR issue for Update-TypeData 2016-05-16 19:52:47 -07:00
JumpingYang001
c715e42f0f Update fixes based on comments for Update-TypeData Pester Test 2016-05-16 19:52:47 -07:00
JumpingYang001
97ded9ca80 Add Update-TypeData and Update-FormatData Pester Unit Test 2016-05-16 19:52:47 -07:00
TingLiu6
732b842f8b Fix CR Issues 2016-05-16 19:40:31 -07:00
Andy Schwartzmeyer
ad18c631b4 Merge pull request #970 from PowerShell/ConvertFromCsvDRTTests
Add Unit Test for ConvertFrom-Csv
2016-05-16 10:43:11 -07:00
Andy Schwartzmeyer
2b335d8442 Merge pull request #969 from PowerShell/ExportFormatDataCommandTests
Add Unit Test for Export-FormatData
2016-05-16 10:42:27 -07:00
Andy Schwartzmeyer
29ebef64d4 Merge pull request #967 from PowerShell/RemoveTypeDataCommandTest
Add Unit Test for Remove-TypeData
2016-05-16 10:41:12 -07:00
TingLiu6
2080920a64 Add Unit Test for ConvertTo-Csv 2016-05-16 00:36:59 -07:00
TingLiu6
c4beeb9f62 Fixed CR issues 2016-05-12 21:51:55 -07:00