Sergei Vorobev
a6fc5387c2
Add a code to handle finished process correctly on Unix
2016-11-15 14:49:39 -08:00
Sergei Vorobev
9658e62682
Add a test for broken linux pipe in native pipeline
2016-11-15 14:49:39 -08:00
Sergei Vorobev
584aec7c92
Add motivation example for the native pipeline changes
2016-11-15 14:49:39 -08:00
Sergei Vorobev
6acc1e0629
Add error stream and information stream tests
...
for native pipes
2016-11-15 14:49:39 -08:00
Sergei Vorobev
a05fffd9dc
Add a minishell clixml tests
2016-11-15 14:49:39 -08:00
Jason Shirk
bd9e49d8d9
Make Out-Null fast ( #2629 )
...
People use Out-Null despite much faster alternatives:
$null = Do-Stuff
[void] = Do-Stuff
Do-Stuff > $null
This change makes Out-Null work in roughly the same say as the above.
The optimization is to detect that we're calling the built-in Out-Null
cmdlet when invoking a pipeline from script (the change won't have any
effect in the PowerShell api). If we detect Out-Null, we rewrite the
pipe to look similar to `Do-Stuff > $null`.
2016-11-11 11:29:53 -08:00
Jason Shirk
c8c55b7ce7
Fix NullReferenceException in binder ( #2591 )
...
There was a NullReferenceException after turning on constrained language mode
if creating a binding on a thread with no runspace.
The fix is to assume if there is no runspace that we are not in constrained language
mode, and also generate a binding restriction that assumes the same.
2016-11-03 14:15:58 -07:00
Jason Shirk
b7c04df47b
Update NativeCommandProcessor.Tests.ps1
...
Fix logic error in skipping
2016-11-01 14:15:31 -07:00
Jason Shirk (POWERSHELL)
9b20875d6f
Test that pipeline isn't blocked when running windows exes
2016-11-01 14:15:31 -07:00
Steve Lee
1851e1a5dc
fixed test on Windows, also should have been pending due to another bug ( #2580 )
2016-11-01 10:53:19 -07:00
Steve Lee
44eb20dc8f
Fixes #2534 by replacing expensive WMI query with Win32 API calls ( #2535 )
...
* Fixes #2534 by replacing expensive WMI query with Win32 API calls
* fix break on unix build
* added tests for #2535
* although test passed, fixing exception that shows up
* fixed Describe text
* addressing code review feedback
* addressing review feedback to comment on why sleep is needed
added check that test processes are created before we try to kill them
* fixed test to timeout and pending fix for #2561
2016-10-31 09:41:13 -07:00
Dongbo Wang
e240c0cb32
Make Pester skip the redirection test for '[Encoding]::Default' instead of ignoring it, so that we can keep track of this encoding issue
2016-10-14 10:02:44 -07:00
Dongbo Wang
139b399223
Fix test failures due to changes in .NET Core and the exclusion of 'Certificate' provider in UNIX PS
2016-10-14 10:02:44 -07:00
Dongbo Wang
13455204a4
Fix variable assignment to not overwrite readonly/constant variables ( #2400 )
2016-10-03 15:25:52 -07:00
Dongbo Wang
5fbde6eb40
Fix bytewise operators to work on enum types with 'System.Byte' as the underlying type ( #2411 )
2016-10-03 15:24:39 -07:00
James Truher
a8aeb55edb
Move tests to more appropriate places now that we have the directory structure defined
2016-09-28 14:57:50 -07:00
Aditya Patwardhan
a27b2303bb
Add test coverage for Command discovery and requires ( #2285 )
2016-09-26 13:36:04 -07:00
Dongbo Wang
5d2f52e4e9
Fix indentation in the test
2016-09-26 11:56:12 -07:00
Dongbo Wang
89b5ae5de1
Fix $? assignment to not crash powershell
2016-09-26 11:56:12 -07:00
James Truher [MSFT]
e143b41533
move native execution tests to Language/Scripting/NativeExecution ( #2333 )
...
update testing-guidelines.md with new locations
2016-09-22 11:57:42 -07:00
Yanbing
87f6e8d040
Add tests to language part 5 ( #2218 )
...
1. Added parameterbinding test
2. Added ShouldBeErrorID function in helper file
3. Removed ShouldBeErrorID function from other test modules
4. Update New-TestHost to be able to run on full CLR
5. updated file map.json
2016-09-16 16:54:48 -07:00
Yanbing
edb292face
Add tests for the Language ( #2118 )
...
DeserializedMethods, DeserializedTypeConversion,
DynamicParameters, Generics, Indexer, LindEndings, MyInvocation,
OrderedAttributeForHashTable.
2016-09-15 11:27:44 -07:00
Yanbing
fd4552bfb8
Added tests for hashtabletoPSCustomObjectConversion, OutErrorVairable tests ( #2160 )
2016-09-12 18:29:55 -07:00
Yanbing
e1bfe97d87
Add tests to language part 1 ( #2086 )
2016-09-12 10:43:53 -07:00
Sergei Vorobev
ea5b6720cd
Merge pull request #2092 from bingbing8/Add-Tests-to-language-part-2
...
Add tests to language part 2
2016-09-10 10:07:35 -07:00
Yanbing Wang
2530207d2a
move help tests to feature. It generate two much log
2016-09-07 17:34:38 -07:00
Yanbing Wang
c5b90ca656
fixed indentation
2016-09-02 13:28:20 -07:00
Yanbing Wang
11e279d688
Update based on PR feedback
2016-09-02 11:07:18 -07:00
Jason Shirk
bc8d537884
Merge pull request #2067 from JamesWTruher/jameswtruher/testgapfile-002
...
Fill more gaps in cmdlet test coverage
2016-09-01 11:16:32 -07:00
Yanbing Wang
b488d7eb35
Update the path to LanguageTestSupport.psm1 -force
2016-09-01 10:31:10 -07:00
Yanbing Wang
c06becaadd
update map.json
2016-08-31 16:00:06 -07:00
James Truher
3ceca01b64
address some review feedback
2016-08-30 16:15:10 -07:00
James Truher
6aac4976fb
Add simple runspace debugging tests
2016-08-30 16:15:10 -07:00
James Truher
9c99bdbef9
Add new debugging tests which are based on existing earlier non-Pester tests
2016-08-30 16:15:10 -07:00
Yanbing Wang
08d65596cd
removed the first 3 lines in i18n.Tests.ps1
2016-08-30 12:17:27 -07:00
Yanbing Wang
04f225a4a1
Update i18n.Testsps1 to use PSDefaultParameterValues
2016-08-29 17:54:20 -07:00
Yanbing Wang
bbbd6a9dfc
Change some context to it
2016-08-26 19:37:51 -07:00
Yanbing Wang
312ec5ffd0
Add Tests for parsing, international, and script help.
2016-08-26 14:49:44 -07:00
Josh Soref
2badb244de
spelling fixes: test
2016-08-25 17:49:32 +00:00
Dongbo Wang
9ab60d6621
Fix the test that fails in Travis CI build ( #1792 )
2016-08-12 18:36:16 -07:00
Dongbo Wang
753b202a75
Fix tests that were broken by the sxs module path change. Also fix some unreliable tests.
2016-08-11 21:45:20 -07:00
Sergei Vorobev
dac906db3d
Skip $input type test per #1563
2016-07-28 18:02:24 -07:00
James Truher
1b9565ae89
add tags to describe blocks that didn't have any tags
2016-07-27 12:06:51 -07:00
James Truher
a784149b36
all tests are now marked with proper tag
...
also, update build.psm1 to be more flexible
2016-07-27 12:06:51 -07:00
James Truher
9e225ccae2
changes tags for tests
...
Start using tags CI, Feature, Scenario
2016-07-27 12:06:51 -07:00
Andrew Schwartzmeyer
41173a3b65
Rename IsCore to IsCoreCLR
2016-07-26 11:54:08 -07:00
PowerShell Team
165f2a86c3
Convert UTF-16 files to UTF-8
2016-07-22 13:54:34 -07:00
James Truher
b680b48160
tests now run clean on Windows and Linux
2016-07-20 12:10:12 -07:00
PowerShell Team
2674564542
Language tests now run clean on Linux
2016-07-20 12:10:12 -07:00
PowerShell Team
cb08681a55
Add new test files to Language directory
2016-07-20 12:10:12 -07:00