Commit graph

432 commits

Author SHA1 Message Date
JumpingYang001
719c9fd5f3 Update fix for Get-Member Pester Test 2016-06-14 21:27:48 -07:00
JumpingYang001
bd61c5e88d Add Get-Member Pester Test and fix merged to master broken 2016-06-14 19:51:41 -07:00
James Truher [MSFT]
ed590b95e7 Merge pull request #1097 from PowerShell/CompareObjectPesterTest
Fix merge to master broken for Compare-Object Pester Test
2016-06-14 15:06:16 -07:00
JumpingYang001
4005348f45 Update fixes based on James comments for DisplayXML Pester Test 2016-06-11 23:11:53 -07:00
JumpingYang001
1d6ab11ea8 Update fix based on comment for DisplayXML Pester Test 2016-06-11 23:11:53 -07:00
JumpingYang001
0dc339f579 Update Format-Custom Tree object Pester Test 2016-06-11 23:11:53 -07:00
JumpingYang001
1504f9b64f Add Format-Custom Tree object Pester Test 2016-06-11 23:11:53 -07:00
JumpingYang001
dd3ee79c89 Fix OSX fail for DisplayXML Pester Test 2016-06-11 23:11:53 -07:00
JumpingYang001
c87dac7ba0 Add DisplayXMLTest to Pester Unit Test 2016-06-11 23:11:53 -07:00
JumpingYang001
0514f6a8d0 Add Compare-Object Pester Test and fix merge to master broken 2016-06-11 22:53:01 -07:00
Andrew Schwartzmeyer
e3056303aa Rename compilationOptions to buildOptions in project.json files
This resolves #928. This is a breaking change in that you *must* be
running a recent version of .NET CLI.
2016-06-10 11:03:56 -07:00
Sergei Vorobev
88ac6d0b2d Temporarely skip 1 failing test 2016-06-10 17:03:49 +00:00
James Truher [MSFT]
7170bc681b Merge pull request #982 from PowerShell/SelectObjectPesterTest
Add Select-Object Pestert Test
2016-06-09 16:41:36 -07:00
James Truher [MSFT]
5b17b603fb Merge pull request #989 from PowerShell/CsvCommandTest
Add Unit Test for Export-Csv
2016-06-09 16:37:57 -07:00
James Truher [MSFT]
0d3f980795 Merge pull request #1022 from PowerShell/ImportCSVV2Tests
Add Unit Test for Import-Csv
2016-06-09 16:34:53 -07:00
James Truher [MSFT]
b76f569caf Merge pull request #983 from PowerShell/ConvertToXml
Add Unit Test for ConvertTo-Xml
2016-06-09 16:28:05 -07:00
Andrew Schwartzmeyer
560bcaf736 Refactor base directory tests 2016-06-09 14:16:33 -07:00
Andy Schwartzmeyer
a48c5281a5 Fix Windows consistency tests
Use `USERPROFILE`, not `HOME`. The latter doesn't exist on Windows, and
`HOMEPATH` strips the drive. The former provides `C:\Users\<username>`.

Fix location tested for JIT cache location on Windows.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
4b0c916646 Skip tests which can't be run on Travis OS X
These should be marked as `-Pending` but Pester doesn't accept both
`-Skip` and `-Pending` parameters, so they had to be combined to support
skipping on Windows.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
41c7f9e469 Update XDG BDS tests to specifications
This renames the tests and updates for better requirement
specifications. The profile, modules, history, and startup cache data
are tested for not breaking Windows behavior, new Linux behavior, and
respecting set variables on launch. This also corrects some erroneous
assumptions I had previously made.

The ModuleAnalysisCache cannot be tested, and the startup cache data
might not be testable on Windows.
2016-06-09 09:50:36 -07:00
v-alexjo
c2527199a6 Further code review changes 2016-06-09 09:50:36 -07:00
v-alexjo
4c1f9f9c79 Adding XDG tests 2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
fd649c0f77 Revert "Merge pull request #1046 from PowerShell/GetMemberCommandTest"
This reverts commit 7392c68bcb, reversing
changes made to 1ee6e4ef2d.
2016-06-08 13:24:33 -07:00
Andrew Schwartzmeyer
1f36de3e03 Revert "Merge pull request #1047 from PowerShell/CompareObjectPesterTest"
This reverts commit 1ee6e4ef2d, reversing
changes made to 5a0155dc9d.
2016-06-08 13:23:21 -07:00
James Truher [MSFT]
26691a5088 Merge pull request #1024 from PowerShell/MeasureObjectPesterTest
Add Measure-Object Pester Unit Test
2016-06-08 12:02:56 -07:00
James Truher [MSFT]
7392c68bcb Merge pull request #1046 from PowerShell/GetMemberCommandTest
Add Unit Test for Get-Member
2016-06-08 12:00:57 -07:00
James Truher [MSFT]
1ee6e4ef2d Merge pull request #1047 from PowerShell/CompareObjectPesterTest
Add Compare-Object Pester Unit Test
2016-06-08 11:59:14 -07:00
James Truher [MSFT]
5a0155dc9d Merge pull request #1056 from PowerShell/NewObjectPesterTest
Add New-Object Pester Unit Test
2016-06-08 11:57:59 -07:00
James Truher [MSFT]
8fca9646e9 Merge pull request #1057 from PowerShell/SelectXMLPesterTest
Add Select-XML Pester Unit Test
2016-06-08 11:56:23 -07:00
James Truher [MSFT]
0e2f25def5 Merge pull request #1059 from PowerShell/TeeObjectTests
Add Unit Test For Tee-Object
2016-06-08 11:53:39 -07:00
Andrew Schwartzmeyer
c6960f0867 Add tests for command name matching 2016-06-03 14:18:00 -07:00
Andy Schwartzmeyer
b9bf32d962 Merge pull request #1068 from PowerShell/andschwa/trace-command
Port Trace-Command
2016-06-03 14:13:13 -07:00
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
Jason Shirk
a3748647d5 Merge pull request #919 from PowerShell/WriteTests
Add Unit Test For Write Command
2016-06-03 10:46:26 -07:00
Andrew Schwartzmeyer
9c7e97e325 Add Debian 8 RID 2016-06-03 09:37:59 -07:00
TingLiu6
9ae922551c Fixed CR Issues of Write-Host and Write-Output 2016-06-02 23:31:12 -07:00
JumpingYang001
72793ae7e4 Update fix based on comments for Select-XML Pester Test 2016-06-02 19:27:38 -07:00
TingLiu6
e043c40e24 Fixed CR Issues 2016-06-02 02:01:49 -07:00
TingLiu6
a570b90878 Fixed CR issues 2016-06-01 19:55:50 -07:00
TingLiu6
56ef0c8030 Fixed CR issues 2016-06-01 19:44:02 -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
JumpingYang001
e13115ed78 Update fix based on comments for Measure-Object Pester Test 2016-05-31 22:04:50 -07:00
JumpingYang001
4df5303ac1 Update fix based on comments for Compare-Object Pester Test 2016-05-31 21:50:00 -07:00
JumpingYang001
ce2b3d0664 Update fix based on comments for New-Object Pester Test 2016-05-31 21:29:14 -07:00
JumpingYang001
20de9e0405 Update fix based on comments for Select-XML Pester Test 2016-05-31 21:25:22 -07:00
TingLiu6
89b7a6bd1f Add Unit Test For Tee-Object 2016-05-30 02:35:04 -07:00
JumpingYang001
bef1688f87 Add Select-XML Pester Unit Test 2016-05-30 01:33:31 -07:00
TingLiu6
23f843f76a Remove a invalid TC to Fix issue of Update-TypeData 2016-05-29 23:48:10 -07:00
JumpingYang001
9ed1d89978 Add NewObjectDRTTestsV2 Pester Unit Test 2016-05-29 23:21:36 -07:00
JumpingYang001
7551d33fc0 Add New-Object Pester Unit Test 2016-05-29 23:11:27 -07:00
TingLiu6
a48fef48e0 Update Get-Member Pester Test 2016-05-27 01:50:48 -07:00
TingLiu6
d35e861716 Add Unit Test for Get-Member 2016-05-26 20:44:56 -07:00
JumpingYang001
5a46c5e649 Add Compare-Object Pester Unit Test 2016-05-26 20:02:35 -07:00
Andrew Schwartzmeyer
05fc323762 Fix Remove-TypeData runspace isolation
Responding to PR review.
2016-05-26 10:36:22 -07:00
TingLiu6
0fa73fb375 Fixed issue on OSX 2016-05-24 23:01:22 -07:00
TingLiu6
df6e4c4a92 Remove Write-Debug Test 2016-05-24 20:19:48 -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
JumpingYang001
ef10c6c02d Add Measure-Object Pester Unit Test 2016-05-23 00:29:46 -07:00
TingLiu6
a9cbdf049d Add Unit Test for Import-Csv 2016-05-22 23:34:14 -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
TingLiu6
93e78e533a Added a V2 TC 2016-05-20 02:27:44 -07:00
TingLiu6
d7db0a6f70 Add Unit Test for Write-Host 2016-05-19 23:50:01 -07:00
TingLiu6
b96d207ea8 Fix the CR issues for Write command test 2016-05-19 23:50:01 -07:00
TingLiu6
97c00e6343 Add Unit Test For Write Command 2016-05-19 23:50:01 -07:00
JumpingYang001
0559fcd6e5 Update fix based on comment for Select-Object Pester Test 2016-05-19 21:47:03 -07:00
TingLiu6
c2479d38b4 Fixed CR Issues 2016-05-19 20:00:38 -07:00
TingLiu6
64b249d647 Fixed CR Issues 2016-05-19 19:37:49 -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
TingLiu6
b4b2f35e21 Add Unit Test for Export-Csv 2016-05-18 02:02:36 -07:00
JumpingYang001
9b7b14ae2e Add SelectObjectV2DRT Pester Unit Test 2016-05-18 01:25:22 -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
TingLiu6
b070320fb7 Add Unit Test for ConvertTo-Xml 2016-05-17 02:34:05 -07:00
JumpingYang001
64d41126df Add Select-Object Pestert Test 2016-05-17 02:29:20 -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
TingLiu6
a9f6c90acc Fixed CR issues 2016-05-12 21:46:34 -07:00
TingLiu6
3360035d29 Add Unit Test for ConvertFrom-Csv 2016-05-12 01:42:15 -07:00
TingLiu6
f0de4321c8 Add Unit Test for Export-FormatData 2016-05-11 23:29:15 -07:00
TingLiu6
cd871b97a3 Fixed CR issues for Remove-TypeData 2016-05-11 19:46:56 -07:00
TingLiu6
0b97247cbf Add Unit Test for Remove-TypeData 2016-05-10 02:57:01 -07:00
Andy Schwartzmeyer
3897635a8a Merge pull request #965 from PowerShell/NewTimeSpanPesterTest
Add Unit Test for New-TimeSpan
2016-05-09 10:57:47 -07:00
Dicey Dai
e7092ba393 Add Unit Test for New-TimeSpan 2016-05-08 21:45:04 -07:00
Ting Liu [Wicresoft]
9bf21a7460 Merge branch 'master' into GroupObjectTests 2016-05-07 17:38:16 +08:00
TingLiu6
7aa80eeb55 Add Unit Test for Group-Object 2016-05-07 02:24:08 -07:00
Andy Schwartzmeyer
ce7e96d7fa Merge pull request #955 from PowerShell/ConvertFromStringDataTest
Add Unit Test for ConvertFrom-StringData
2016-05-06 10:02:23 -07:00
Andy Schwartzmeyer
52de677068 Merge pull request #949 from PowerShell/native
remove dependency on native GetHostname
2016-05-06 10:01:40 -07:00
Andy Schwartzmeyer
649cfb4c10 Merge pull request #933 from PowerShell/FormatCustomListWidePesterTest
Add Format-Custom,Format-List,Format-Wide Pester Test
2016-05-06 10:00:12 -07:00
Andy Schwartzmeyer
77168c9f18 Merge pull request #908 from PowerShell/GetUniqueTests
Add Unit Test for Get-Unique
2016-05-06 09:57:01 -07:00
TingLiu6
e3603e3bf3 Add Unit Test for ConvertFrom-StringData 2016-05-06 04:09:57 -07:00
TingLiu6
187013985a Fix the CR issue for Get-Unique 2016-05-05 14:14:39 -07:00
TingLiu6
14231c96e7 Add Unit Test for Get-Unique 2016-05-05 14:14:39 -07:00
TingLiu6
3437566ebd Fix the CR issues for Get-Random 2016-05-05 14:13:55 -07:00
TingLiu6
d9ffecc360 Fix the CR issue for Get-Random 2016-05-05 14:13:55 -07:00
TingLiu6
01af13ce37 Fix the issue of CR for Get-Random 2016-05-05 14:13:55 -07:00
TingLiu6
5d91a8164f Add Unit Test for Get-Random 2016-05-05 14:13:55 -07:00
George Fleming
1b97c954ea remove dependency on native GetHostname 2016-05-05 09:08:06 -07:00
Bryce Milton
fd4389a643 Merge pull request #941 from PowerShell/BryceM-dev
Porting TTests from psl-monad Management DRTs
2016-05-04 17:24:48 -07:00
Bryce Milton
eeb92da5c7 removing debug code 2016-05-04 17:10:16 -07:00
Bryce Milton
e9606484da Incorporating feedback from code-review 2016-05-04 17:09:01 -07:00
Andrew Schwartzmeyer
da2d6bfc80 Add PSReadLine regression tests 2016-05-04 16:27:51 -07:00
Andrew Schwartzmeyer
2af90428ed Update dotnet-test-xunit package 2016-05-04 13:43:52 -07:00
Andrew Schwartzmeyer
4619d0d7ba Add tests for cmdlet example 2016-05-04 12:13:00 -07:00
JumpingYang001
b1328d144b Update Format-Custom,Format-List,Format-Wide Pester Test 2016-05-02 20:14:57 -07:00
Bryce Milton
0eacf59dae Porting TTests from psl-monad Management DRTs
https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/ClearEventLogDRT.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/CombinePathCommandTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/ContentCommandTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/ConvertPathCommandTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/DebugProcessDRT.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/EventlogCommandTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/GetEventLogDRTTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/GetHotFixDRTTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/GetProcessDRTTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/GetProviderCommandTest.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/GetServiceV2DRT.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/GetWMIObjectTest.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/InvokeWMIMethodTest.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/LimitEventLogDRT.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/NavigationTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/NewEventLogDRT.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/ParsePathCommandTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/PingComputerDRT.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/PingPathCommandTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/ProcessCommandTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/ProcessTaskTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/PropertyCommandTests.cs

https://github.com/PowerShell/psl-monad/monad/tests/monad/DRT/commands/management/UnitTests/RemoveEventLogDRTTests.cs
2016-05-02 18:42:23 -07:00
JumpingYang001
506ae5d899 Add Format-Custom,Format-List,Format-Wide Pester Test 2016-04-29 03:10:09 -07:00
Andy Schwartzmeyer
381586a605 Merge pull request #923 from PowerShell/andschwa/test-psreadline
Import TestPSReadLine
2016-04-28 15:28:17 -07:00
Jason Shirk
a7ba3395b9 Merge pull request #901 from PowerShell/FormatTablePesterUnitTest
Add Format-Table Pester Unit Test
2016-04-28 13:03:11 -07:00
Andrew Schwartzmeyer
689ca6a02f Remove CaptureScreen binding
Does not exist for Open PowerShell
2016-04-28 11:00:40 -07:00
Andrew Schwartzmeyer
0239674ff1 Add project.json to build test/PSReadLine 2016-04-28 10:54:51 -07:00
Andrew Schwartzmeyer
9c15c6ccd0 Import TestPSReadLine app
This app is used for basic PSReadLine functionality testing.

Squashed commit of the following:

commit 3c1ac0aa87df663d0cfb1346352fd240a6ad1fa4
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Sun Dec 13 09:23:31 2015 -0800

    Use nuget packages for PowerShell SDK.

commit 0fe7731a68d62af9508200a067aa162cb5154f68
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Sat Nov 14 20:11:50 2015 -0800

    Merge branch 'master' of https://github.com/srdubya/PSReadLine into vimode

commit aa6510e19887dd2cb1ed7fa06b172dc456b0cede
Author: Jason Shirk (POWERSHELL) <jasonsh@microsoft.com>
Date:   Thu Jun 18 18:24:23 2015 -0700

    Fix/suppress various FxCop errors

commit d59a997c3a2b4d18b91e0f937fc4ff76e58929f1
Author: Jason Shirk (POWERSHELL) <jasonsh@microsoft.com>
Date:   Thu Jun 18 15:32:20 2015 -0700

    Rename namespace PSConsoleUtilities to Microsoft.PowerShell

commit 258a8f28db90d98b8785487516544836ce42bb4e
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Fri Sep 26 18:15:19 2014 -0700

    Fix exception after AcceptAndGetNext

    The "current" line cleared after accepting via AcceptAndGetNext
    and we would crash trying to recall this current line.

    I've changed how history search works after AcceptAndGetNext
    to work in a more natural way so that arrow keys can be used
    to recall commands near the accepted command instead of
    searching for other commands with the same prefix.

    Fixes #152.

commit e069ed088a9ea970d8b0e9cdb990da5ad4d20f01
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Tue Sep 9 17:36:59 2014 -0700

    Add ValidateAndAcceptLine function

    To avoid cluttering the screen and history with command lines
    that don't work because of stupid errors like "command not found",
    you can bind enter to ValidateAndAcceptLine.

commit cb81fa2cc4708ee54214320dc6ce8564e38a1642
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Fri Jun 27 20:58:57 2014 -0700

    Fix prompt error highlight characters

    When deciding what character to color red for errors, we were
    using IsSymbol - that was a bit too restrictive so it was changed
    to be any non-whitespace and non-alphanumeric characters.

    Fixes #127

commit 0ecd15d909ea31ccd9390c15d295af2f750d0d68
Author: Jason Shirk <jason@truewheels.net>
Date:   Thu Jun 12 14:09:17 2014 -0700

    Attempt better recovery from an exception

    If an exception occurs when editing the command line, display some
    diagnostic information so that I might get a bug report.  Also
    attempt to restore the command line so they can continue editing.

commit 079d18223c7e49638c96f4533d27198b47a5d2bb
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Thu Apr 17 09:28:04 2014 -0700

    Tweak for easier testing

commit d79bf5056bdef0a165ee453c5f7b45e528cc0681
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Sun Apr 13 11:21:30 2014 -0700

    Cleanup some Resharper issues

commit 1258dd12cab81d07aa52d388468ee9ef99063664
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Sun Jan 26 20:21:22 2014 -0800

    InvokePrompt tests

    Removed Console.WriteLine replacement as it didn't work for InvokePrompt.
    Changed test harness to override VS and actually write stdout to the screen.

commit 526b0b5123c88cd8f47a166f376f34356976edb5
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Fri Jan 24 23:00:48 2014 -0800

    Remove custom bindings

commit fd0679c0da99da5ae4e1d5a59842b1fb0a9af6c2
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Fri Jan 3 00:09:49 2014 -0800

    Add CaptureScreen function

    CaputureScreen is used to copy lines from the screen to the clipboard.
    Text is copied in plain text as well as rtf with colors.
    Rtf looks best in Outlook - which is my primary reason for adding the feature.

commit e2a0b53f72a0e6a39a9736a3c1a3d2a6b1b81184
Author: Jason Shirk <jason@truewheels.net>
Date:   Fri Nov 15 07:29:12 2013 -0800

    Fix Undo after Paste

commit 8453eca0dd9ffe0cb160fefb12d0be935e64ec85
Author: Jason Shirk <jason@truewheels.net>
Date:   Fri Nov 15 00:30:50 2013 -0800

    Ctrl-R support

commit 0b058c2aaee18b33d97dd8d375fac7bbf4d07ce9
Author: Jason Shirk <jason@truewheels.net>
Date:   Sat Nov 2 08:49:48 2013 -0700

    Really exit from test program when typing exit

    Exit wasn't exiting anymore because the thread that reads keys was blocked.

commit e9d5203346f62dacc6315c8e8cb4dc227a6477df
Author: Jason Shirk <jason@truewheels.net>
Date:   Mon Sep 23 09:03:59 2013 -0700

    Comment out history search in test program

commit 674f90a64c5c627d50f6b018511eb9585640d65a
Author: Jason Shirk <jason@truewheels.net>
Date:   Thu Sep 19 09:18:19 2013 -0700

    Add demo mode and ETW trace

    Added ETW tracing for key presses (a key logger!) so it can be used
    in a variety of ways, e.g. when doing performance profiling, you can
    add a message of sorts via key presses if you turn on the provider.

    The ETW tracing code depends on CLR 4.5, this might force some folks
    to upgrade.

    Added PSReadline.EnableDemoMode which uses the ETW trace to display
    key presses while you type.  This is useful for talks and producing
    screen captures to show the editing experience.

commit 222a5efea732d6c34e5263b638d5d3fc04407355
Author: Jason Shirk <jason@truewheels.net>
Date:   Wed Sep 11 17:55:30 2013 -0700

    Support 2 key chords

    Support for 2 key chords has been added.

    There is a small breaking change in Set-PSReadlineKeyHandler
    because the -CtrlX switch is no longer needed.  It could have
    been left in, but it's better to just remove it - not very
    many people use this module yet.

    The signature of key handlers was also changed to better support
    features that have not yet been implemented.  The signature change
    shouldn't affect any existing key handlers because default arguments
    should cover those cases.

commit 3121bcbf6c57b98ead2cc525f8d3d40cbc54c49e
Author: Jason Shirk <jason@truewheels.net>
Date:   Fri May 24 19:56:34 2013 -0700

    Add Get-PSReadlineKeyHandler

    To make it easier to see what keys are bound, you can use the command Get-PSReadlineKeyHandler.

    The command Set-PSReadlineKeyHandler also adds support for binding Ctrl-X prefixed commands in Emacs mode.

commit ed78159f1a27f7a78a26fbad555203dcee94a05c
Author: Jason Shirk <jason@truewheels.net>
Date:   Sun May 12 23:52:15 2013 -0700

    Initial checkin.
2016-04-28 10:49:41 -07:00