Commit graph

2253 commits

Author SHA1 Message Date
George Fleming
4f9e2acc93 Fixes seg fault when Get-Help cannot find topic 2016-04-21 10:03:39 -07:00
Andy Schwartzmeyer
1a6ca3157b Merge pull request #882 from PowerShell/andschwa/faq
Add Frequently Asked Questions
2016-04-21 09:56:59 -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
ca1055c83c Add Frequently Asked Questions to documentation
Addresses some PowerShell, build, and Git questions.
2016-04-20 16:25:58 -07:00
Andrew Schwartzmeyer
ea73db0d68 Make Start-PSBootstrap re-install dotnet on Windows
It now helpfully deletes the previous `dotnet` directory so that older
versions of the CLI don't muck things up.
2016-04-20 15:21:55 -07:00
Andrew Schwartzmeyer
fa0d7a34e4 Move known issues to docs folder
So only readme and contributing are top level.
2016-04-20 14:30:54 -07:00
Andy Schwartzmeyer
efc24f1976 Merge pull request #881 from PowerShell/andschwa/fix-clear-variable-test
Fix clear variable test
2016-04-20 14:27:02 -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
Andy Schwartzmeyer
2e35484e31 Merge pull request #879 from PowerShell/noninteractive
Modify Set-PSBreakpoint.Tests.ps1 and fix 3 pending tests
2016-04-20 11:41:43 -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
Sergei Vorobev
2f60586602 Merge pull request #871 from PowerShell/vors/master
Fix build scripts for windows build
2016-04-19 17:49:53 -07:00
Sergei Vorobev
33c458459c Wrap all native commands in helper function in PowerShellGitHubDev.psm1 2016-04-19 16:59:03 -07:00
Sergei Vorobev
f28bd0814b Fix log message in Start-PSBuild 2016-04-19 16:40:28 -07:00
Andy Schwartzmeyer
10ab85dcaf Merge pull request #869 from PowerShell/jimtru.WSManModuleFix
Jimtru.ws man module fix
2016-04-19 16:38: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
Andy Schwartzmeyer
37bbf3197b Merge pull request #857 from PowerShell/ClearVariablePesterUnitTest
Add Clear-Variable Pester Unit Test
2016-04-19 16:36:57 -07:00
Sergei Vorobev
8635c84cd9 Fix typo in PowerShellGitHubDev.psm1 2016-04-19 16:10:09 -07:00
James Truher
6df3e9619f Remove mention of format file since this is done in code now 2016-04-19 16:02:12 -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
Sergei Vorobev
db674c7977 Add try-catch to on_finish section to prevent hang 2016-04-19 16:00:09 -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
Sergei Vorobev
d25cdffcfc Add $ErrorActionPreference = 'Stop' to fail the build 2016-04-19 15:51:54 -07:00
Andy Schwartzmeyer
80b6b7e809 Merge pull request #870 from PowerShell/xunit
Use new Listener signature
2016-04-19 15:28:55 -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
Sergei Vorobev
73a957fb51 Merge pull request #855 from PowerShell/andschwa/psoptions
Add New-PSOptions
2016-04-18 13:16:04 -07:00
Andy Schwartzmeyer
c7c0d54baf Merge pull request #858 from PowerShell/options
Re-write host code command parser engine to support both Linux and Windows style options.  Also, add support for -noninteractive and -encodedcommand.
2016-04-18 13:00:33 -07:00
George Fleming
71ab234674 fix typo 2016-04-15 12:35:11 -07:00
George Fleming
969dc932ec Change InvalidOperationException to PSInvalidOperationException because monad code looks only for PS version to rethrow MissingMandatoryParameter exception. 2016-04-15 10:56:22 -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
Andy Schwartzmeyer
e879e92c48 Merge pull request #853 from PowerShell/andschwa/undo-foreach
Revert use of foreach in ALC
2016-04-15 09:10:28 -07:00
JumpingYang001
ca049ba56f Updaet fixed comments for Set-Variable Peste unit test 2016-04-14 19:27:18 -07:00
Andrew Schwartzmeyer
5c7fcbb462 Enable xUnit tests on Linux
We have to pretend they pass on OS X for now.
2016-04-14 18:07:33 -07:00
Andrew Schwartzmeyer
3b24ba5dd3 Allow default ALC to not be PowerShell's. 2016-04-14 18:07:33 -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
Andrew Schwartzmeyer
94e5469458 Refactor options into New-PSOptions
Deduction of PowerShell output path is now done in `New-PSOptions`,
which returns a hash table representing the build options, so that it
can be done outside of `Start-PSBuild`.

`Start-PSBuild` saves the options it creates as a script-local variable,
`$script:Options`.

`Get-PSOutput` will either unwrap the an options hash table parameter,
the script local options hash table, or use the default options.

Thus, if `Start-PSBuild` hasn't been run, it can be used to get the
output path given non-default options like this:

```powershell
Get-PSOutput -Options (New-PSOptions -Publish)
```

Or simply call `Get-PSOutput` to get the best-guess default path.

Note that because ValidateSet does not support the use of constant
variables, the set of runtimes has to be duplicated, and an empty
runtime is supported.
2016-04-14 18:06:04 -07:00