Commit graph

2105 commits

Author SHA1 Message Date
Andy Schwartzmeyer
a0f9999119 Merge pull request #915 from PowerShell/andschwa/shared-host-working
Update .NET Core packages
2016-04-25 15:40:09 -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
James Truher [MSFT]
6da4b5a054 Merge pull request #916 from PowerShell/JamesWTruher-AddTestFiles
James w truher add documentation to Testing directory
2016-04-25 15:02:01 -07:00
Andrew Schwartzmeyer
86d7d749bb Update type catalog 2016-04-25 14:21:39 -07:00
Andrew Schwartzmeyer
a48abd0b6c Fix xUnit tests for new framework
This also enables us to run them on OS X (though they will fail).
2016-04-25 14:11:13 -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
James Truher [MSFT]
7e156b4abd remove extraneous line 2016-04-25 12:41:54 -07:00
Jim Truher (MSFT)
6b9283f3bf add testing files to repo 2016-04-25 12:27:35 -07:00
Andy Schwartzmeyer
b874c1801d Merge pull request #910 from PowerShell/noninteractive2
It's always non-interactive
2016-04-25 11:44:30 -07:00
Andy Schwartzmeyer
217cefed9d Ask for current commit hash in issue template 2016-04-25 11:03:58 -07:00
George Fleming
9ce4075c43 Did I accidentally delete this line? 2016-04-25 10:50:16 -07:00
Andy Schwartzmeyer
8ea1bdee94 Merge pull request #907 from PowerShell/andschwa/releasing
Add releasing documentation
2016-04-25 09:42:03 -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
Andrew Schwartzmeyer
2f23390f87 Add releasing documentation
Resolves #665.
2016-04-22 16:27:25 -07:00
Andy Schwartzmeyer
9afcada6ef Merge pull request #906 from PowerShell/andschwa/github-templates
Add GitHub templates
2016-04-22 15:58:09 -07:00
Andrew Schwartzmeyer
0130c9bfa7 Add GitHub pull request template 2016-04-22 15:28:23 -07:00
Andrew Schwartzmeyer
e111f0301b Add GitHub issue template 2016-04-22 15:12:03 -07:00
Andrew Schwartzmeyer
b8699a046d Fix up contributing guidelines
- Remove CI skip section because we always want CI
- Fix links due to file move
- Add note that CI will fail for PRs from forks
2016-04-22 15:12:02 -07:00
Andrew Schwartzmeyer
b4faf6463c Move CONTRIBUTING.md into .github folder 2016-04-22 15:12:02 -07:00
Andy Schwartzmeyer
e0ddcb1397 Merge pull request #905 from PowerShell/andschwa/fix-invalid-profile
Fix bug when loading bad profiles
2016-04-22 15:07:57 -07:00
Andrew Schwartzmeyer
5ab6f278f3 Fix bug when loading bad profiles
This resolves #817.

A PowerShell instance is created to load and execute profile code.
However, if the profile has a parse error, the instance never gets
created, thus we have to check that it's not null before disposing it.
2016-04-22 14:24:21 -07:00
Andy Schwartzmeyer
dfec0939e1 Merge pull request #904 from PowerShell/andschwa/fix-restore
Remove aspnetvnext and dotnet-cli feeds
2016-04-22 14:13:50 -07:00
Andrew Schwartzmeyer
234752cd90 Remove aspnetvnext and dotnet-cli feeds
The dotnet-core and aspnetcidev feeds provide all our required packages.
The aspnetvnext causes `dotnet restore` to take an inordinate amount of
time, which terminates our CI builds.

Reducing the number of feeds brings restore time from scratch down to 3
seconds on my machine.

The aspnetvnext feed was originally added for the CoreCLR xUnit runner
packages; but is no longer necessary.

Resolves #896.
2016-04-22 13:50:17 -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
Andy Schwartzmeyer
bb5e7d2472 Merge pull request #902 from PowerShell/UpdateGetVariablePesterTest
Update Get-Variable Pester Test for issue 818 closed
2016-04-22 10:12:38 -07:00
Andy Schwartzmeyer
ed47027fef Merge pull request #894 from PowerShell/shifttab
Add Shift-Tab for reverse traversal
2016-04-22 10:10:54 -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
Andy Schwartzmeyer
0a5022cade Merge pull request #893 from PowerShell/andschwa/add-help-tests-#710
Add CoreConsoleHost tests for --help flags
2016-04-21 16:34:28 -07:00
George Fleming
c623e3be0e Add Shift-Tab for reverse traversal 2016-04-21 16:15:27 -07:00
Andrew Schwartzmeyer
5fee08a097 Fix -EncodedCommand implementation
PowerShell uses Encoding.Unicode, which is different from Encoding.UTF8.
2016-04-21 16:05:53 -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
Andy Schwartzmeyer
71ac45467e Merge pull request #889 from PowerShell/help
Fixes seg fault when Get-Help cannot find topic
2016-04-21 14:54:16 -07:00
Andy Schwartzmeyer
97ca8f5b76 Add Core PS links 2016-04-21 14:22:06 -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
Andy Schwartzmeyer
a5e66b7d29 Merge pull request #890 from PowerShell/andschwa/fix-nuget-warnings-#856
Fix NuGet warnings due to TypeCatalogParser
2016-04-21 12:19:04 -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