JumpingYang001
368b6a5c6c
Add Parser Pester Test Part 1
2016-07-14 19:48:52 -07:00
Andrew Schwartzmeyer
32e0a7dcaa
Format New-Item.Tests.ps1
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
e6c037c666
Remove Platform.HasExecutionPolicy query
...
Also change Get-ExecutionPolicy to not throw, but to return
Unrestricted (which is the effect of the actual policy).
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
73a1a51f69
Remove Platform.HasRegistry query
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
c2cd059aa8
Remove Platform.HasDriveAutoMounting query
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
c9a4197af1
Remove Platform.HasAmsi query
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
46cfa26812
Remove Platform.HasCom query
2016-07-14 17:34:12 -07:00
Sergei Vorobev
6c087155a7
Update PowerShellGithubDev.Tests.ps1
2016-07-14 13:46:29 -07:00
Quoc Truong
ac7bed909e
Merge pull request #1359 from PowerShell/quoct/onegettest
...
Enable test for PackageManagement on CorePowerShell
2016-07-14 13:26:01 -07:00
Quoc Truong
d7309a2435
Remove test that calls powershell
2016-07-14 09:56:35 -07:00
Quoc Truong
24eaf67917
Remove install contoso credential test
2016-07-13 16:36:29 -07:00
Quoc Truong
6338d8c33a
Remove scope test for install-package in nuget.tests.ps1
2016-07-13 15:58:05 -07:00
Andrew Schwartzmeyer
6f938bd860
Add regression test for Get-Process -IncludeUserName
2016-07-13 15:46:25 -07:00
Quoc Truong
67bc478695
Fix test failure for Install-PackageProvider.tests.ps1 on Windows
2016-07-13 15:39:52 -07:00
Andy Schwartzmeyer
a39beee33d
Merge pull request #1264 from PowerShell/childitem
...
Fixing symlink to use absolute paths instead of relative
2016-07-13 12:57:26 -07:00
quoctruong91
a041c44c5b
Fix a test failure where path name is not in the correct case
2016-07-13 01:34:38 -07:00
quoctruong91
8253bb9b85
Fix NuGet.tests.ps1 failure
2016-07-13 01:09:47 -07:00
quoctruong91
987faf03a7
Remove test that requires installing packages that has dependencies
2016-07-13 00:34:43 -07:00
quoctruong91
50c3e5bfc8
Fix Install PackageProvider failure because we are not running on administrator
2016-07-12 21:17:11 -07:00
Quoc Truong
c978927947
Fix Nuget tests
2016-07-12 21:17:11 -07:00
Quoc Truong
85955352fe
Fix test failures for PackageManagement
2016-07-12 21:17:11 -07:00
PowerShell Team
55b8cd1da6
Import source-depot tests for PackageManagement
2016-07-12 21:17:11 -07:00
Quoc Truong
cdb9a96d9d
Edit map.json to add in PackageManagement tests
2016-07-12 21:17:11 -07:00
Alex Jordan
90defe681d
Changing childitem to cope with regex
2016-07-12 15:58:21 -07:00
Alex Jordan
7c6a0ce2f1
New-Item tests to use Should Match
2016-07-11 22:22:45 -07:00
Alex Jordan
4a4df0f080
Editing for OSX passing symbolic links
2016-07-11 20:56:34 -07:00
Travis Plunk
5669e14dff
Ported Execution policy tests
...
Made a fix to store data on testdrive instead of system drive
Made a note of where the tests where ported from
Skipped entire test file on non-windows machines
2016-07-11 18:54:34 -07:00
Andy Schwartzmeyer
43f07425e9
Merge pull request #1283 from PowerShell/andschwa/readlinesafe
...
Implement ReadLineSafe for Linux
2016-07-08 17:02:49 -07:00
Jason Shirk
5e1cbe0e5d
Merge pull request #1328 from PowerShell/dongbo/type-completion
...
Fix issue #682 - [system.manage<Tab>] doesn't work
2016-07-08 16:16:32 -07:00
Andrew Schwartzmeyer
332397e955
Bump expect timeout for slow CI systems
2016-07-08 14:28:49 -07:00
Dongbo Wang
81b92583e1
Fix #682 - [system.manage<Tab>] doesn't work
2016-07-08 14:18:20 -07:00
Andrew Schwartzmeyer
50e6627a8e
Throw PlatformNotSupported on Windows .NET Core build
2016-07-08 14:08:22 -07:00
Andrew Schwartzmeyer
8d23dad0ab
Add Read-Host regression test
2016-07-08 13:48:51 -07:00
Andrew Schwartzmeyer
9a7199b05b
Enable Invoke-Item test for Windows
2016-07-08 13:48:36 -07:00
Dongbo Wang
2f9be46eac
Merge pull request #1285 from PowerShell/dongbo/miss-files-ops
...
Add back missing files for OPS
2016-07-06 16:54:16 -07:00
Dongbo Wang
731797c9e6
Add map.json file under the 'test' folder to track the tests that were moved
2016-07-06 15:56:47 -07:00
PowerShell Team
df15348557
Merge Get-TimeZone.Tests.ps1 and Set-TimeZone.Tests.ps1 to TimeZone.Tests.ps1
2016-07-06 15:52:18 -07:00
Dongbo Wang
c1d9316a3c
Disable 3 FileCatalog tests. They fail in CoreCLR OPS on AppVeyor build VM (Windows Server 2012R2), though they always pass on Windows 10
2016-07-06 15:08:51 -07:00
Dongbo Wang
c502b31509
Exclude the TimeZone/Computer/FileCatalog cmdlets for Linux. They use windows specific Win32 APIs
2016-07-06 13:04:51 -07:00
PowerShell Team
45791aa030
Add tests for TimeZone cmdlets and FileCatalog cmdlets [SD:717473]
2016-07-06 13:04:32 -07:00
Alex Jordan
946280b4f3
Removing extra invokeitem test
2016-07-05 18:05:56 -07:00
Jason Shirk
9a6655c147
Merge pull request #1246 from PowerShell/andschwa/guard-rawui
...
Guard RawUI when TTY is non-existent
2016-07-01 17:20:03 -07:00
Andrew Schwartzmeyer
25e2316345
Fix Console-Host tests
...
Update tests from Source Depot and run everywhere.
2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
2dd01a9d31
Fix Write-Host tests
...
These were not testing the development build of PowerShell.
2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
fe56aaafa7
Re-enable tests on OS X
2016-07-01 14:36:15 -07:00
Sergei Vorobev
c01ee38d5e
Speed-up CimCmdlets FullCLR test
2016-07-01 12:20:48 -07:00
Sergei Vorobev
777ba09bce
Add a simple test for Get-WinEvent on windows (Core + Full)
2016-07-01 12:20:48 -07:00
Andy Schwartzmeyer
b7f33f6822
Merge pull request #1255 from PowerShell/jasonsh/measure-object-fix
...
Fix Measure-Object -Property w/ wildcards
2016-07-01 10:25:11 -07:00
Jason Shirk (POWERSHELL)
dc1d672a86
Fix Measure-Object -Property w/ wildcards
...
Fixes #1215
2016-06-30 18:16:37 -07:00
Jason Shirk (POWERSHELL)
bfc5b7e836
Revert Unix specific Split-Path -Qualifier code
...
The -Qualifier code for Split-Path made some incorrect assumptions:
* That a path only referred to the file system
* That drives cannot be used on Unix systems
These assumptions were both wrong, so I've reverted the change so we
do not have any Unix specific code in Split-Path now.
Fixes #1176
2016-06-29 14:12:29 -07:00
Alex Jordan
7bc1bffdca
Adding isWindows to invoke item test and new test location
2016-06-29 13:56:46 -07:00
Alex Jordan
7cac07f31c
Adding pending to invokeitem tests due to windows bug
2016-06-29 12:32:46 -07:00
James Truher
1e1c4b7dc0
Restructure of pester test layout
...
This restructuring moves tests to a directory name which matches the module
in which the cmdlet resides which should improve the discoverability of a
specific test.
For tests which are not about cmdlets in a module, new directories have been
created to make those tests easier to find as well
2016-06-29 12:05:41 -07:00
Alex Jordan
65f31c06bb
Adding Invoke-Item tests
2016-06-29 10:52:56 -07:00
Alex Jordan
61a6713f4c
Invoke-Item tests added
2016-06-29 10:52:56 -07:00
Andrew Schwartzmeyer
4086644de7
Disable JIT cache tests
...
This test fails since we've disabled the JIT cache entirely.
2016-06-28 20:08:11 -07:00
Sergei Vorobev
934cda2d7d
Add test for CimCmdlets module
2016-06-28 16:19:15 -07:00
Sergei Vorobev
56599d3514
Add tests for PSWorkflow and PSWorkflowUtility
2016-06-28 16:08:33 -07:00
Sergei Vorobev
055185440d
Merge pull request #1226 from PowerShell/vors/build
...
Add simple test for non-empty workflow, make it work
2016-06-28 14:54:07 -07:00
Andy Schwartzmeyer
b294a46d2e
Merge pull request #1210 from PowerShell/andschwa/rtm
...
Update PowerShell to use .NET Core 1.0
2016-06-28 14:37:20 -07:00
Sergei Vorobev
c4f268f7cd
Add simple test for non-empty workflow, make it work
2016-06-28 12:59:25 -07:00
Sergei Vorobev
e647549d0d
Exclude Microsoft.WSMan.Management from the list of default snapins
...
Fix #1180
2016-06-28 12:14:18 -07:00
Andrew Schwartzmeyer
2f303f3822
Use dotnet-test-xunit package from NuGet
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
10ea1733e9
Update to .NET Core 1.0 packages
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
e8b8b22c4e
Removing remaining centos.7.1 RIDs
...
This should have been done programmatically.
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
97df59f553
Re-enable checking of assemblies with strong names
...
This removes the `UsesCodeSignedAssemblies()` switch in `CorePsPlatform`
and reverts the work-arounds skipping strong name checking.
2016-06-27 14:49:46 -07:00
Sergei Vorobev
8011ad707f
Disable 3 debugging tests on all platforms to unblock code integration
2016-06-22 06:28:34 -07:00
James Truher [MSFT]
810ed39d49
Merge pull request #1062 from PowerShell/XMLCommandPesterTest
...
Add Export-Clixml and Import-Clixml Pester Test
2016-06-20 11:00:02 -07:00
Dongbo Wang
eae26dc0fa
Add test to verify that a simple workflow can run
2016-06-17 14:54:54 -07:00
Sergei Vorobev
299d7798ce
Merge pull request #1136 from PowerShell/vors/scheduledjobs
...
PSScheduledJobs Module
2016-06-17 11:26:24 -07:00
JumpingYang001
8cd16e81c1
Update fix based on comments for Sort-Object Pester Test
2016-06-16 19:54:13 -07:00
JumpingYang001
bb32b104bc
Add Sort-Object Pester Unit Test
2016-06-16 19:46:52 -07:00
JumpingYang001
c1b0095361
Update fix based on comments for Export-Clixml and Import-Clixml Pester Test
2016-06-16 19:44:57 -07:00
JumpingYang001
5c9ff45370
Add Export-Clixml and Import-Clixml Pester Test
2016-06-16 19:42:51 -07:00
Sergei Vorobev
7cd6a76479
Add project.json for ScheduledJob, add test that we build PSScheduledJob module
2016-06-16 19:20:35 -07:00
Andrew Schwartzmeyer
b19be8c911
Fix CentOS RID in tests and build module
2016-06-16 18:39:29 -07:00
Andrew Schwartzmeyer
8e7c2ca30b
Sign all assemblies with key
2016-06-16 15:48:18 -07:00
Sergei Vorobev
e32346e58c
Add tests to ensure we build LocalAccounts and Archive correctly
2016-06-16 12:53:51 -07:00
Andy Schwartzmeyer
cd6b4e2ebc
Merge pull request #1090 from PowerShell/scriptdebug
...
Fix Broken Powershell Debugging
2016-06-15 17:38:16 -07:00
Andrew Schwartzmeyer
7d1ce65079
Mark tests as pending on Travis's OS X and on Windows
...
Because redirected `stdin` does not yet work on Windows, and because any
output based test does not yet work on OS X on Travis (where this is no
TTY), we cannot yet run these tests on those platforms.
2016-06-15 12:36:17 -07:00
v-alexjo
acd9249fe2
Added PORTABLE as define for debugging and reidented tests.
2016-06-15 12:33:11 -07:00
v-alexjo
f483429d11
Guarding Diagonstics to fix powershell debugging on Linux
2016-06-15 12:32:10 -07:00
v-alexjo
72cd28c336
Moving debugging tests out of Set-PSBreakpoint tests
2016-06-15 12:32:10 -07:00
Andrew Schwartzmeyer
af258919b7
Add tests for hierarchical paths
2016-06-15 12:16:54 -07:00
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
Jason Shirk
962aeed560
Merge pull request #909 from PowerShell/WriteProgressTests
...
Add Unit Test for Write-Progress
2016-04-27 17:20:01 -07:00
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
TingLiu6
2980014463
Add Unit Test for Write-Progress
2016-04-25 02:10:17 -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
TingLiu6
92ac20f83b
Add Unit Test for Out-File,Out-String,Write-Error
2016-04-14 00:17:02 -07:00
JumpingYang001
60c3b58f9e
Merge remote-tracking branch 'origin/master' into SetVariablePesterUnitTest
2016-04-13 22:39:31 -07:00
JumpingYang001
46135239ba
Add Set-Variable Pester Unit test
2016-04-13 20:37:27 -07:00
TingLiu6
5300811ff9
Fixed the issue in PR
2016-04-13 20:16:36 -07:00
Andy Schwartzmeyer
f38a11fc02
Merge pull request #807 from PowerShell/GetVariablePesterUnitTest
...
Add Get-Variable Pester Unit Test
2016-04-13 11:11:08 -07:00
JumpingYang001
d0c759f10e
Update indent for Get-Variable Pester unit test
2016-04-13 09:41:04 -07:00
JumpingYang001
191f232519
Update fixed comments from PR for Get-Variable Pester unit test
2016-04-13 09:41:04 -07:00
JumpingYang001
0531914377
Enable bug777 skip for Get-Variable
2016-04-13 09:41:04 -07:00
JumpingYang001
95eade1305
Add Get-Variable Pester Unit Test
2016-04-13 09:41:04 -07:00
Andy Schwartzmeyer
5b880dbbb8
Merge pull request #782 from PowerShell/ImportAliasPesterUnitTest
...
Add Import-Alias Pester Unit test
2016-04-13 09:40:28 -07:00
JumpingYang001
6184dec3ad
Update stand-alone tests for Import-Alias Pester unit test
2016-04-13 02:42:34 -07:00
TingLiu6
b32e949cab
Add Unit Test for Set-PSBreakpoint
2016-04-12 20:27:38 -07:00
Andrew Schwartzmeyer
735a702f1c
Remove alias tests for Write-Output
...
The `echo` and `write` aliases were removed, which make these tests
inaccurate (but did not fail them).
2016-04-11 10:46:39 -07:00
TingLiu6
fbfcb47454
Unit Test for Set-PSBreakpoint
2016-04-10 23:30:46 -07:00
JumpingYang001
5c341e7d7f
Remove Context for Import-Alias pester unit test
2016-04-10 19:38:35 -07:00
Andrew Schwartzmeyer
3a43126a2e
Allow creation of symlink to non-existent target
...
This action is completely valid on both Windows and Linux (and OS X)
operating systems; tested with `mklink` and `ln -s` respectively.
Note that targets for hard links must exist, thus we check specifically
for symbolic links.
Both the path globber in session state and the `New-Item` implementation
needed to be fixed to allow the target not to exist.
Resolves #801 .
Also enable symbolic link tests on Windows.
2016-04-09 18:45:23 -07:00
Andrew Schwartzmeyer
022a63c6d2
Fix whitespace in csharp/project.json
2016-04-08 21:58:05 -07:00
Andrew Schwartzmeyer
7ace2b6b64
Fix NuGet warnings by depending on NuGet.Packaging.Core
...
And upgrade dotnet-test-xunit
2016-04-08 21:50:24 -07:00
Sergei Vorobev
bf1a2c8521
Make Add-Type work without a flat folder structure
...
- Get rid of the assumption that all framework assemlbies live in
the same place
- Enable build scenario (assemlbies are referenced directly from unpacked
nuget packages)
- Fix #766
- Re-enable Add-Type tests
2016-04-08 21:41:30 -07:00
Andy Schwartzmeyer
a6a6ac7c36
Merge pull request #787 from PowerShell/andschwa/platform-module
...
Remove Microsoft.PowerShell.Platform
2016-04-08 16:07:38 -07:00
Andrew Schwartzmeyer
73fe95feb8
Add tests for removal of aliases
2016-04-08 15:52:37 -07:00
Andrew Schwartzmeyer
b3521944ec
Fix Pester test
2016-04-08 15:23:38 -07:00
Andrew Schwartzmeyer
8c7174de10
Fix xUnit tests
2016-04-08 15:22:37 -07:00
Andrew Schwartzmeyer
bcdad12c04
Fix tests for removal of Platform module
2016-04-08 15:13:01 -07:00
Andrew Schwartzmeyer
2bd274f5d7
Fix tests broken by removal of aliases
2016-04-08 13:36:54 -07:00
Andrew Schwartzmeyer
bfaad3f057
Programmatic update of core console host rename
2016-04-08 10:59:41 -07:00
JumpingYang001
6e2190fc7d
Add Import-Alias Pester Unit test
2016-04-08 01:47:50 -07:00
Andy Schwartzmeyer
a5966a8618
Merge pull request #775 from PowerShell/UnitTest_Temp
...
Add Unit Tests for GetDateTest.cs and StartSleepTest.cs
2016-04-07 21:03:00 -07:00
Andy Schwartzmeyer
d58774b5a6
Merge pull request #778 from PowerShell/ExportAliasPesterUnitTest
...
Add Export-Alias Pester Unit Test
2016-04-07 21:01:56 -07:00
TingLiu6
757724abf5
fix the issue of review
2016-04-07 20:27:04 -07:00
JumpingYang001
108bcbf860
Update comments for Export-Alias Pester unit test
2016-04-07 19:51:28 -07:00
TingLiu6
63f8782d05
Improve Unit Test for Get-Date
2016-04-07 00:15:50 -07:00
JumpingYang001
04f3936b6b
Add Export-Alias Pester Unit Test
2016-04-06 23:17:43 -07:00
JumpingYang001
c4421eaa30
Update Skip bug 777 for New-Alias Pester unit test
2016-04-06 19:57:05 -07:00
Ting Liu [Wicresoft]
9733f5e8e7
Merge branch 'master' into UnitTest_Temp
2016-04-06 16:27:44 +08:00
JumpingYang001
a3ed623c64
Add New-Alias Pester and update Set-Alias Pester test
2016-04-06 01:24:00 -07:00
TingLiu6
4a4994ba2d
Add Unit Test for StartSleepTest.cs
2016-04-06 01:17:27 -07:00
TingLiu6
11afac883f
Add Unit Test for GetDateTest.cs
2016-04-06 01:14:14 -07:00
Andrew Schwartzmeyer
fe0ad12598
Update test documentation
2016-04-04 19:20:26 -07:00
Andrew Schwartzmeyer
1b3bd12230
Don't load Netwonsoft.Json from path
...
It's already loaded.
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
d27ae18ca0
Skip Add-Type.Tests.ps1
...
This broke and needs to be fixed.
2016-04-01 22:35:00 -07:00
Andrew Schwartzmeyer
067609cdce
Add runtimes back to xUnit runner
...
Per dotnet/cli#2201
2016-04-01 20:25:12 -07:00
Andrew Schwartzmeyer
5a1666c984
Fix programatic references to Linux.Host
2016-04-01 19:15:41 -07:00
JumpingYang001
fc0f9c315c
Add Pester Unit test for Set-Alias
2016-04-01 00:50:10 -07:00
Andy Schwartzmeyer
954280d950
Merge pull request #756 from PowerShell/GetAliasPesterUnitTest
...
Add Pester Unit test for Get-Alias
2016-03-31 20:14:15 -07:00
JumpingYang001
97b96dda9e
Update Pester Unit test for Get-Alias
2016-03-31 20:03:07 -07:00
Andrew Schwartzmeyer
d7b104110e
Bump .NET Core packages to 23931-00
2016-03-31 12:33:44 -07:00
JumpingYang001
c0f3fea44b
Add Pester Unit test for Get-Alias
2016-03-31 01:24:50 -07:00
Andrew Schwartzmeyer
6f8daacf31
Add test/README.md
2016-03-30 23:30:26 -07:00
Andrew Schwartzmeyer
609a4c31e9
Fix up Pester test documentation
2016-03-30 23:30:25 -07:00
Andrew Schwartzmeyer
fd51ebe78f
Remove obsolete testing docs
2016-03-30 21:30:06 -07:00
Sergei Vorobev
244dea20a9
Fix version of dotnet-test-xunit to a previous good known one
2016-03-30 20:46:46 -07:00
George Fleming
e6980894f7
Modify tests to display link type and link target
2016-03-28 14:35:34 -07:00
Andy Schwartzmeyer
15495875b4
Merge pull request #737 from PowerShell/PesterTest_Temp
...
Improve Pester Test for New-object #476
2016-03-24 21:16:34 -07:00
TingLiu6
880225501a
Modify Pester test for New-Object
2016-03-24 20:20:06 -07:00
TingLiu6
0802c32562
Merge branch 'master' of https://github.com/PowerShell/PowerShell into PesterTest_Temp
2016-03-24 19:50:03 -07:00
TingLiu6
2d622eedc0
Modify Pester test for New-Object
2016-03-24 19:40:39 -07:00
JumpingYang001
b4ec4bf0d8
Fix travis fail with different Mode format in special machine for FileSytemProvider xunit test
2016-03-24 02:02:50 -07:00
JumpingYang001
81a31ab07e
Fix travis fail for FileSytemProvider xunit test
2016-03-24 01:38:35 -07:00
JumpingYang001
7c5a13ec74
Update FileSystemProviderTest to let all test method works for #120
2016-03-24 01:11:11 -07:00
Andy Schwartzmeyer
d8de5d20bf
Merge pull request #734 from PowerShell/typecataloggen
...
Fix type catalog generation
2016-03-23 13:16:50 -07:00
Andrew Schwartzmeyer
e88e463315
Add regression test .NET class interop
...
This bug arose because of a shortcut previously taken when generating
input for the type catalog generator. With a proper parser created, the
input to the generator is now correct, and so this test should succeed.
2016-03-22 21:41:46 -07:00
JumpingYang001
31ec32896f
Update Fact Skip for not work tests for FileSystemProvider xunit test
2016-03-22 20:23:37 -07:00
JumpingYang001
5c35053350
Update test fix for test_FileSystemProvider.cs
2016-03-22 20:23:37 -07:00
JumpingYang001
920bc1f3f8
Add FileSystemProvider xUnit test for issue 120
2016-03-22 20:23:37 -07:00
TingLiu6
bd51520505
Improve Pester Test for New-object #476
2016-03-22 19:58:34 -07:00
JumpingYang001
8141baaa47
Add comparison operator tests for #219
2016-03-22 01:17:22 -07:00
Andy Schwartzmeyer
8c67f6ca6f
Merge pull request #711 from PowerShell/PesterTest_Temp
...
Add Pester Test for Get-PSBreakpoint, Import-Module, Sort-Object #535 #479 #474
2016-03-21 10:30:15 -07:00
TingLiu6
25f8d334d6
Modify Pester Test for Get-PSBreakpoint
2016-03-20 22:04:08 -07:00
Andy Schwartzmeyer
8313aaa418
Merge pull request #695 from PowerShell/NativeLinuxCommandsTest
...
Add Pester tests for calling native Linux commands for #138
2016-03-18 19:39:09 -07:00
TingLiu6
6be57a0b5c
Add Pester Test for Get-PSBreakpoint, Import-Module, Sort-Object
2016-03-18 02:30:26 -07:00
JumpingYang001
bf80880b51
Update Pester test for calling native Linux commands for isssue 138
2016-03-18 00:23:57 -07:00
Andy Schwartzmeyer
3d967c33ec
Merge pull request #697 from PowerShell/RemoveModuleTest
...
Add Pester test for Remove-Module for #536
2016-03-18 00:11:55 -07:00
JumpingYang001
2836fe3714
Add Pester test for Remove-Module
2016-03-17 23:50:23 -07:00
JumpingYang001
89a6b8c1b5
Add Get-Process Pester test for issue 147
2016-03-17 23:49:09 -07:00
JumpingYang001
73fa64c350
Add Pester tests for calling native Linux commands for issue 138
2016-03-17 22:48:35 -07:00
JumpingYang001
c460e52043
Update test fix for test_SessionState.cs
2016-03-17 20:18:29 -07:00
Andrew Schwartzmeyer
1665d6c525
Add SessionStateTests to AssemblyLoadContext collection
2016-03-17 19:11:41 -07:00
JumpingYang001
c42258cfac
Add SessionStateInternal.Drives() xUnit test
...
Resolves #64
2016-03-17 19:10:23 -07:00
Andrew Schwartzmeyer
60ef5cd58d
Add xUnit tests readme
2016-03-17 18:20:05 -07:00
Andrew Schwartzmeyer
6d93a1766b
Add all classes to AssemblyLoadContext collection
...
To ensure that the initializer is called before any other code. This is
as close to a global init hook as I can find.
2016-03-17 18:15:39 -07:00
Andrew Schwartzmeyer
b820817c84
Fix AssemblyLoadContext fixture
...
Resolves #676 .
2016-03-17 17:36:06 -07:00
Andrew Schwartzmeyer
447b3ef729
Update xUnit runner to netstandardapp1.5
...
This was enabled in dotnet/coreclr.xunit#12
2016-03-14 16:51:49 -07:00
Andrew Schwartzmeyer
5901e70dd0
Revert work-around in Json.Tests.ps1
...
This resolves #627 .
2016-03-14 13:39:32 -07:00
Andrew Schwartzmeyer
887ac21256
Remove accidentally committed temporary file
...
This file was used to convert the test from UTF-8 with BOM to ASCII, and
got caught in a `git commit -a`.
2016-03-08 19:15:22 -08:00
Jumping Yang
a504defbb9
Fixed Pester Get-Location test
2016-03-08 14:55:30 +08:00
Andy Schwartzmeyer
299ee6af2e
Merge pull request #628 from PowerShell/osx-ping
...
Fix Start-Process tests
2016-03-04 17:53:15 -08:00
Andrew Schwartzmeyer
0df9b76322
Fix Start-Process tests
...
OS X's ping command requires the flags to be specified before the
arguments. I also reduced the ping count so that the tests execute a bit
faster. This resolves #556 .
2016-03-04 17:35:13 -08:00
George Fleming
e52da3b1e5
Add hardlink test for New-Item
2016-03-04 16:51:24 -08:00
Andrew Schwartzmeyer
6382bfb069
Enable Add-Type test on Windows
...
Resolves #606 .
2016-03-04 15:55:55 -08:00
Andrew Schwartzmeyer
0c6b14adab
Programmatic indentation and whitespace-cleanup of tests
2016-03-04 14:52:27 -08:00
Andrew Schwartzmeyer
0aaf74bdcc
Convert Pester tests to ASCII
...
Instead of UTF-8 with BOM.
Resolves #417 .
2016-03-04 14:48:30 -08:00
Andrew Schwartzmeyer
901160cb78
Fix Get-Location tests
...
These should never have passed.
2016-03-04 14:42:36 -08:00
Andrew Schwartzmeyer
15f8433d98
Use $PSScriptRoot instead of assigning $here
2016-03-04 14:42:08 -08:00
Andrew Schwartzmeyer
c37a0c4a64
Increase New-TimeSpan difference to reduce errant failures
2016-03-04 14:41:33 -08:00
Andrew Schwartzmeyer
579287c53d
Fix ExecutionPolicy tests to -Skip instead of return
2016-03-04 14:40:51 -08:00
Andrew Schwartzmeyer
4feb665203
Update PSVersionTable tests for PSEdition
2016-03-04 14:40:33 -08:00
Andrew Schwartzmeyer
615eca6fd5
Use -Skip:$IsWindows
...
Uses the $IsWindows etc. booleans from the Microsoft.PowerShell.Platform
module instead of sourcing Test-Common repeatedly.
2016-03-04 14:39:18 -08:00
Andrew Schwartzmeyer
de6a452f63
Pester test formatting cleanups
2016-03-04 14:38:01 -08:00
Andrew Schwartzmeyer
7857f13165
Skip SymbolicLink tests on Windows
...
On Windows, making symbolic links requires administrator access, so
let's skip it.
2016-03-03 18:09:52 -08:00
Andrew Schwartzmeyer
da9c58828e
Workaround dotnet/corefx#6603
2016-03-03 17:02:07 -08:00
Andrew Schwartzmeyer
d253a4e483
Make Add-Type test -Pending until it passes on Windows
2016-03-03 13:46:35 -08:00
Andy Schwartzmeyer
cdd0e9daef
Merge pull request #601 from PowerShell/newitem
...
Modify New-Item to support Symbolic Link on Linux
2016-03-01 16:32:14 -08:00
George Fleming
134ccef8c0
Remove directory symlink first to avoid broken symlink issues
2016-03-01 15:57:16 -08:00
George Fleming
d622477073
Change order of delete to get around broken symlink issue
2016-03-01 15:57:16 -08:00
George Fleming
5ab50a183f
New test for symlink of directory
2016-03-01 15:57:16 -08:00
Andrew Schwartzmeyer
96be23da1e
Add simple regression test for Add-Type
2016-03-01 14:28:17 -08:00
Andrew Schwartzmeyer
9402c68c57
Fix Start-Sleep Pester tests
2016-02-26 13:11:14 -08:00
Andrew Schwartzmeyer
9f2ce63267
Fix xUnit tests for netstandardapp1.5
...
With the switch to `netstandardapp1.5` framework for the host, the xUnit
test runner broke. For `dotnet test` to work with the .NET Core xUnit
runner, it must continue to target `dnxcore50`. Fortunately, we can
import our project's framework, and make everything work again.
Also improved the `xunit.sh` script to check for dependencies.
2016-02-19 14:40:17 -08:00
Andrew Schwartzmeyer
e6e4dcafbe
Build with new framework and new CLI
...
All libraries now use the framework `netstandard1.5`, and import the
`dnxcore50` and `portable` frameworks. The app that is published,
Microsoft.PowerShell.Linux.Host, that is, the top-level dependency that
emits an executable, instead targets `netstandardapp1.5` and has a new
`runtimes` key so that .NET CLI's `restore` and `publish` commands know
which runtime implementations to resolve.
When switching to the new CLI, we needed to fix how we specified our
dependencies. In particular, the .NET CLI team helped me figure out how
to download packages that are reference assembly only on Linux, with
implementations on Windows. The result of this is the new `frameworks`
setup.
Additionally, we were incorrectly specifying our build dependencies;
that is, projects we also build (not packages). The solution was much
cleaner. We removed the `type: build` section and replaced it with the
version `1.0.0-*` that all our projects currently use.
The `project.json` files also had their names, descriptions,
indentation, and versions fixed.
The build scripts were simplified.
2016-02-18 10:06:56 -08:00
Andrew Schwartzmeyer
dae6e0ebd5
Use Linux.Host in xUnit tests
...
Make its internals visible to the `powershell-tests` assembly, and use its
`MyHost` and `Listener` classes instead of facades.
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer
473ac41630
Initialize the ALC for the runspace tests
...
This initialization was moved out of the native host and into the
managed host, so the same setup must now be done before tests.
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer
c68164f280
Remove Commands.Omi module
...
This was a temporary work-around that now needs to be removed (mostly
because the xUnit tests are out-of-date because we didn't have a runner,
and it's not worth it to fix them). Rather than let more cruft
accumulate, we need to remove it.
Resolves #551
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer
9b9493241d
Update xUnit dependencies for dotnet-test-xunit
...
Add `xunit` and `dotnet-test-xunit` packages. Import `portable-net45`
for `xunit`. Add `xunit` as `testRunner`.
2016-02-17 17:03:03 -08:00
George Fleming
43d284f6b3
New pester test for Import-LocalizedData
2016-02-11 10:13:56 -08:00
George Fleming
4fe69773d4
Modified Get-ChildItem pester test to check for sorted list of files
2016-02-10 15:52:21 -08:00
Andrew Schwartzmeyer
dacaebefb8
Move Pester to submodule to Host/Modules
...
This way it can also be deployed automatically, removing the last manual
copy steps from our build scripts.
Travis and AppVeyor configurations updated for new submodule location.
2016-02-10 12:58:56 -08:00
Andrew Schwartzmeyer
5442346820
Update Get/Set-ExecutionPolicy tests
...
Test expected behaviors on both Windows and Linux.
2016-02-09 16:10:10 -08:00
George Fleming
8adffbb2e2
Fix HOMEPATH and Wait-Event tests
...
On Windows, HOMEPATH is not necessarily `\Users\username`, so the test
was made to match more loosely.
Wait-Event's timeout varied more than expected, so the test's range was
increased.
2016-02-08 10:59:15 -08:00
George Fleming
6ce53af354
Fix errors on CoreCLR Windows port
2016-02-08 10:59:02 -08:00
George Fleming
bdffd103d9
Remove / and /tmp references
2016-02-08 10:59:02 -08:00
George Fleming
cb6d7011d9
Clean up temp files in pester scripts
2016-02-08 10:59:02 -08:00
Andrew Schwartzmeyer
5845a56d89
Use $env:CORE_ROOT if set, otherwise AppContext.BaseDirectory
...
Otherwise the Json.NET DLL cannot be found when Pester tests are run
over PSRP.
2016-02-04 12:58:00 -08:00
Sergei Vorobev
2096bca2b8
Run FullCLR sanitary tests in AppVeyor
...
This change brings a very minimal set of tests and make
build fail, if we cannot load some PS assamblies on FullCLR
We should increase test coverage for FullCLR in future.
2016-02-03 17:29:27 -08:00
Andrew Schwartzmeyer
a8be633089
Bump packages to rc3-23729
2016-02-02 15:43:54 -08:00
Andrew Schwartzmeyer
71f670f86c
Add packages required for updated sources
...
Commands.Utility now needs Microsoft.CodeAnalysis.CSharp, which doesn't
explicitly target `dnxcore50`, so now Commands.Utility and the packages
which depend on it now much `import` the Portable Windows framework.
This also required adding the aspnetvnext feed.
System.Management.Automation now requires System.Diagnostics.StackTrace.
2016-01-26 16:49:28 -08:00
Andrew Schwartzmeyer
ae9c58e3e3
Remove xUnit reference from csharp/project.json
...
Currently fails to restore, working on prototype.
2016-01-20 10:14:44 -08:00
Andrew Schwartzmeyer
62de9f2645
Fix the Get-Item Pester test
...
Failed because we renamed the test directory.
2016-01-15 14:31:52 -08:00
Andrew Schwartzmeyer
bbebf2f76a
Reorganize tests
...
- Pester source code moved to `test/Pester`, deleted `ext-src`.
- Pester tests (.ps1 files) moved to `test/powershell`
- xUnit tests (.cs files) moved to `test/csharp`
- Third-party script test moved to `test/shebang`
2016-01-14 17:00:06 -08:00
Andrew Schwartzmeyer
ec08d9f46c
Move Pester test/Pester and push to GitHub
2016-01-14 16:17:50 -08:00