Commit graph

15 commits

Author SHA1 Message Date
ThreeFive-O
665cd26ab0 Fix several problems in WritingPesterTests guideline (#9078) 2019-03-29 15:29:41 -07:00
Aditya Patwardhan
a62eb62701 Remove all reference to AppVeyor and Travis CI from docs (#8376) 2018-12-03 10:14:11 -08:00
Mark Wragg
8215914b46 Updated Pester Syntax in Writing Tests Guide (#8039)
- Modified the Pester syntax for the `-Be` assertion (instead of just `Be`) to reflect the preferred use per latest version of Pester.
- Added an example showing use of `-BeOfType` to test the type of a variable.
- Other minor changes for grammar.
2018-10-29 17:49:12 -07:00
Klaudia Algiz
045e036205 Update documentation on how to write tests verifying errors conditions (#6687) 2018-04-25 17:26:24 -07:00
Klaudia Algiz
56b394d33b Update docs with test guidelines with RequireSudoOnUnix tag. (#6274)
* Updating testing docs with RequireSudoOnUnix tag.
2018-03-02 10:07:20 -08:00
James Truher [MSFT]
99a7d38cae Update test framework and tests to support 4x version of Pester (#6064)
* Test fixes and changes needed to support Pester 4.0.8

* Replace 'Should Contain' with new 'Should FileContentMatch' assertion

Explicitly check for string creation with write-output

* Use the current version of pester and install it in modulesDir

* Simplify logic for relative path test.

Multiple '..' is not needed for a relative path, a single one will do. Also, on multi-drive systems using split-path -noqualifier will probably do the wrong thing with regard to constructing a correct path.
Remove extraneous Should Not Throw test, if this throws, the test will fail, we don't need to explicitly assert the not throw

* In some environments it is possible that computer name is 'localhost', so that should be allowed

* [feature] Add link for migrating tests from Pester v3 to v4

Fix up capitalization and white space issues
Change one test to check FullyQualifiedErrorId rather than just `Should Throw`

* [feature] update invoke-item test to handle the case where multiple notepad processes are running

* Fix spelling issue with Pester 4x, calling it Pester 4 should be sufficient
2018-02-05 11:58:25 -08:00
Steve Lee
23f91c0236 Update WritingPesterTests.md to reflect recommended use of ShouldBeErrorId
* added spelling word

* added sample to inspect details of the errorrecord
2017-08-25 07:24:49 +04:00
Travis Plunk
68bcd4b528 Removed trailing whitespace (#3485) 2017-04-11 09:44:43 -07:00
Travis Plunk
737058f62e Add markdown lint test (#3420)
* Fix markdown syntax and spelling issues
* update spelling dictionary
2017-03-27 16:44:28 -07:00
Sebastian N
611f7f9b77 Fix small typo (#2647)
it's -> its
2016-11-09 10:19:53 -08:00
Sergei Vorobev
d1d82d03b4 Make Invoke-AppVeyorTest run elevated and non-elevated tests separately
- Add RequireAdminOnWindows to the list of blessed tags
- Fix a bug in Get-PesterTag where we accepted 'Slow' as a proper priority
- Fix missed comma in Start-PSPester parameters
- Add documentation about new Pester tag
- Fix finishing logic for Start-PSPester -Unelevate
2016-09-29 12:29:27 -07:00
James Truher [MSFT]
379cc52b95 update testing guidelines
* correct links in test-guidelines.md (issue #1665)

added specific links for PesterDoAndDont and WritingPesterTests
added new section in WritingPesterTests.md on bulk skipping tests

* update test directories to include a directory for remoting tests

* fix lines in document to use semantic line breaks

also remove trailing spaces after "."
2016-09-27 12:55:47 -07:00
Sergei Vorobev
1c3c719521 Update testing guidelines (#2244)
* Move PesterDoAndDont.md into WritingPesterTests.md

* Add powershell language moniker to codesnippets

in WritingPesterTests.md
Add extra new-lines for formatting

* Adding here-string info to testings docs
2016-09-15 15:21:26 -07:00
James Truher
21494be11b updates from previous PR to incorporate feedback 2016-08-02 11:51:43 -07:00
Jianyun Tao
39b3bfcd43 Created the docs layout 2016-06-24 19:11:56 -07:00
Renamed from docs/testing/WritingPesterTests.md (Browse further)