James Truher
763fe2bdbf
fix missing ";" in Streams.Clear
2016-08-30 16:15:10 -07:00
James Truher
f6ae238641
quiet the start-process tests by redirecting all output
2016-08-30 16:15:10 -07:00
James Truher
01c495b5e6
Change Import-PowerShellDataFile tag to CI and simplify tests
2016-08-30 16:15:10 -07:00
James Truher
c610ea7941
Add Set-Date test
2016-08-30 16:15:10 -07:00
James Truher
e639240ecb
Add set-Date test
...
this one is a bit tricky, unless you're elevated you can't set the date
however, if you are not elevated you should get an error. This file
does one or the other based on whether you're elevated
2016-08-30 16:15:10 -07:00
James Truher
feae8e4b2d
add read-host tests
2016-08-30 16:15:10 -07:00
James Truher
9d1c998287
Filling test gaps (issue 2022) - this replaces PR 1834
...
This replaces PR 1834 from the private fork I had
2016-08-22 14:56:04 -07:00
James Truher
5644c4c54b
Create new test for Get-Credential which requires module to create a test host
2016-08-19 13:01:04 -07:00
James Truher [MSFT]
bbffcc83b8
commit test status doc to new repo ( #1873 )
2016-08-18 09:45:01 -07:00
James Truher
1bbdaa7ea8
Change free/used calculation to be consistent across platforms
...
add a couple of tests to validate return values
2016-08-03 10:38:26 -07:00
James Truher
9597a47689
change linux diskfree calculations from using /bin/df as a source of data to [io.driveinfo]
2016-08-03 10:38:26 -07:00
James Truher
fb953c16b8
fix for Get-PSDrive to get free and used space on Non-Windows systems
2016-08-03 10:38:26 -07:00
James Truher [MSFT]
cf3519b8eb
Merge pull request #1547 from PowerShell/jameswtruher/TestGuidelineUpdate
...
updates from test-guideline PR to incorporate feedback
2016-08-02 14:49:48 -07:00
James Truher
6a07b71ba6
update tests to include $IsCoreCLR rather than $IsCore
...
also fix archive test to be sure it gets the proper archive module (not the one that's somewhere in the filesystem)
2016-08-02 12:50:24 -07:00
James Truher
0a18a46281
Update json tests to be more cross-plat and handle multiple invocations
...
only create the enumtest type if it doesn't exist
don't try to compare line endings on json tests which contain arrays,
formatting of the output need not be validated
2016-08-02 12:05:24 -07:00
James Truher
dd0291be09
update encoding on the test files - these are ascii
2016-08-02 12:05:24 -07:00
James Truher
7b836f99f5
create work-around for MacOS in handling wildcards
2016-08-02 12:05:24 -07:00
James Truher
0f60b69af4
Fix Get-Command tests to better handle non-Windows platforms.
...
set executable bit on Linux/MacOS as that's what determines whether something
is executable. Also simplify partial path creation, only remove up to the first
colon, so those filesystems which have a single root are treated properly
2016-08-02 12:05:24 -07:00
James Truher
96a81c626c
rename test files so they match map.json and can be found by invoke-pester
2016-08-02 12:05:24 -07:00
James Truher
d23a5fddc7
fix Archive module to work correctly when the DirectorySeparatorChar is "/"
...
rather than use either "/" or "\", just use [io.path]::DirectorySeparatorChar
2016-08-02 12:05:24 -07:00
James Truher
176f9fb6bd
rename archive test file so it may be found by invoke-pester
2016-08-02 12:05:24 -07:00
James Truher [MSFT]
935185cf6b
fix don't section so it's visible
2016-08-02 11:55:50 -07:00
James Truher
8d758b63f2
updates based on PR feedback
2016-08-02 11:51:43 -07:00
James Truher
2920a3db66
Add images to this branch
2016-08-02 11:51:43 -07:00
James Truher
21494be11b
updates from previous PR to incorporate feedback
2016-08-02 11:51:43 -07:00
James Truher [MSFT]
3ecac72baf
Merge pull request #1526 from PowerShell/jameswtruher/TagPesterTests
...
Jameswtruher/tag pester tests
2016-07-27 14:39:32 -07:00
James Truher
fa1b386a08
make sure that all tests are using the proper $IsCoreCLR variable instead of $IsCore
2016-07-27 12:32:17 -07:00
James Truher
ac8238075d
mark the add-type tests as pending for $IsCore
2016-07-27 12:14:08 -07:00
James Truher
f0233a8d20
fix bad tag to check tag checking
2016-07-27 12:06:51 -07:00
James Truher
0b61bb6464
purposefully create a bad tag to test tag checks for build
2016-07-27 12:06:51 -07:00
James Truher
5e61213be9
update appveyor.yml to check for bad test tags
...
add the function to check tags to build.psm1
rename the parser tests so they actually execute
2016-07-27 12:06:51 -07:00
James Truher
05d9fa07a9
Be sure to invoke only CI tests in AppVeyor
2016-07-27 12:06:51 -07:00
James Truher
456bc4da6b
marked some package tests as feature rather than CI
2016-07-27 12:06:51 -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
19e1cc450b
final changes for start-pspester
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
362a807438
Add changes to build.psm1 to run only CI tests
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
James Truher [MSFT]
a6072c4576
Merge pull request #1447 from PowerShell/jameswtruher/LanguageTestMigration
...
language pester test migration - woo - adding 800 more tests
2016-07-20 18:29:56 -07:00
James Truher [MSFT]
c2364b6e26
Merge pull request #1404 from PowerShell/ParsePesterUnitTest
...
Add remain part of Parser Pester Unit Test
2016-07-20 18:19:10 -07:00
James Truher
84041fb37d
fix Get-PSBreakpoint test to not require 0 as the breakpoint id
...
Essentially, other tests may set breakpoints and the Id is ever
increasing, so a test for Id 0 will only be true if this is the
first time a breakpoint has been set in this session
2016-07-20 12:54:59 -07:00
James Truher
b680b48160
tests now run clean on Windows and Linux
2016-07-20 12:10:12 -07:00
James Truher [MSFT]
ca96173307
Merge pull request #1320 from PowerShell/ParserPesterTest
...
Add Parser Pester Test Part 1
2016-07-15 10:07:26 -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
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
James Truher [MSFT]
209a30da00
Merge pull request #1098 from PowerShell/GetMemberCommandTest
...
Add Get-Member Pester Test and fix merged to master broken
2016-06-15 10:20:55 -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
James Truher [MSFT]
d8245cee02
Merge pull request #988 from PowerShell/DisplayXMLPesterTest
...
Add DisplayXMLTest to Pester Unit Test
2016-06-13 12:29:32 -07: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
James Truher [MSFT]
eeb715bf4e
Merge pull request #1060 from PowerShell/xdg
...
XDG Changes
I like these tests much better now - far easier to follow
2016-06-09 16:17:48 -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
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
James Truher
860284b00f
be sure to have git ignore a bunch of different package types
2016-05-25 13:07:13 -07:00
James Truher [MSFT]
d81c8208e9
Merge pull request #1027 from PowerShell/jimtru-updateformattestfix
...
Jimtru updateformattestfix
2016-05-23 17:07:39 -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
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
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
James Truher [MSFT]
538f8643a2
Merge pull request #999 from PowerShell/jimtru-AddGitCommitToPSVersionTable
...
add functionality to PSVersionTable to include GitCommitID and update…
2016-05-19 09:56:17 -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
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
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
James Truher
6df3e9619f
Remove mention of format file since this is done in code now
2016-04-19 16:02:12 -07:00
James Truher [MSFT]
62ebca1281
Merge pull request #774 from PowerShell/AliasPesterUnitTest
...
Add New-Alias Pester and update Set-Alias Pester test
2016-04-07 13:10:53 -07:00
James Truher [MSFT]
17d545b1e0
Bump submodule version to include the new behavior for Drive:
2016-03-16 10:27:22 -07:00
James Truher [MSFT]
85b5d6e3e0
Create OperationalNotes.md
2016-03-10 17:49:37 -08:00
James Truher [MSFT]
3af4ea2cc2
Update README.md
...
updated troubleshoot section and create troubleshooter for push
Also added Generally Useful Info section for operational notes
[skip ci]
2016-03-10 17:01:33 -08:00