Commit graph

37 commits

Author SHA1 Message Date
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
Christoph Bergmeister 96bd86e5e3 fix various places that still refer to old versions of pwsh (#6179) 2018-02-23 09:54:58 -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
Aditya Patwardhan 5b5168d72e Revert "Pull PSReadLine from PSGallery" (#5986)
This reverts commit beffdcf94d.
2018-01-22 16:09:35 -08:00
Jason Shirk beffdcf94d Pull PSReadLine from PSGallery (#5759)
Instead of building PSReadLine from this repo, pull it from the gallery using nuget cache.

This pulls v2.0 of PSReadLine which does have documented breaking changes from v1.2, but the risk is small - the features that have changed are typically only used in a profile and aren't used all that often anyway.

Fix #996

Hardcodes version of modules pulled from PSGallery
2018-01-19 18:15:09 -08:00
Christoph Bergmeister d2863fc50d Reduce image file sizes using lossless compression with imgbot (#5808) 2018-01-09 14:51:57 -08:00
Travis Plunk 6ef94c1dfe
Make the experience better when start-pspester doesn't find pester (#5673)
refactor code to restore pester into a separate function called Restore-PSPester
update message on what to do when pester is missing
Add ability for get-psoptions to default to new-psoptions
fix an issue with publish-pstesttools when a build has not been run since build.psm1 has been imported (try to use the default options)
make start-pspester use the last build, not just use the default options
fix an issue in restore caused some files not to be removed
2017-12-12 16:07:12 -08:00
Steve Lee 54f34a0bac Support '[package]' tag in PR CI and fix nightly build on macOS (#5410)
- Support '[package]' tag in PR CI to validate packaging changes in PR CI runs.
  When using '[package]' tag, regular CI tests will run and packaging steps will also run.
- Fix nightly build on macOS.
2017-11-10 17:28:55 -08:00
David Weber a1b7f8be3e Add submodule reminder to testing-guidelines.md (#5061) 2017-10-10 09:41:46 -07:00
Steve Lee 7c9b188c13 Rename $IsOSX to $IsMacOS (#4757) 2017-09-07 10:34:40 -07: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 9571f8f2f4 Add ability to run feature tests for pr (#4277) 2017-07-19 10:33:58 -07:00
Aditya Patwardhan 23c639149d Added code coverage analysis to identify missing coverage (#4097) 2017-07-07 09:48:14 -07: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
Kevin Marquette 302b5200e0 Corect xUnit heading and other MD linting warnings (#3272) 2017-03-08 13:28:42 -08:00
iSazonov 40437ba809 Correct samples in testing-guidelines (#2691)
Replace 'Start-PSPester -Directory' with 'Start-PSPester -Path'
2016-11-16 10:37:26 -08:00
Sebastian N 611f7f9b77 Fix small typo (#2647)
it's -> its
2016-11-09 10:19:53 -08:00
Andy Li 44f7951313 automatic spellchecking .md files in TravisCI (#838) 2016-10-31 18:02:26 -07:00
James Truher [MSFT] b211f5f59b Add query to track action plan in issues (#2439)
fix ActionPlan list to be formatted correctly
2016-10-10 18:55:31 +00:00
James Truher [MSFT] b89533f123 First draft of test roadmap plan (#2332)
Add test roadmap plan document
Update document with clarifying language for code coverage
Also add an acceptance criteria for remoting tests
include Jenkins with mention of MS Build Lab for possible test infrastructure
2016-10-05 16:50:35 -07: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
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
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 [MSFT] bbffcc83b8 commit test status doc to new repo (#1873) 2016-08-18 09:45:01 -07:00
Jason Shirk 110c627be8 Doc updates, remove PR template, update issue labels (#1776)
* Remove PR template, update guidelines for PR

* Update testing-guidelines.md

* Add clarification on when to use runtime/compiletime checks

* Update issue label descriptions
2016-08-12 18:19:12 -07:00
Sergei Vorobev b1bba40a70 Fix broken link in docs/building/linux.md 2016-08-06 15:53:51 -07:00
Sergei Vorobev 58b2c84559 Add missed Travis-CI badge image 2016-08-06 15:53:25 -07:00
Aleksandar Nikolić 8fc68cab0d Update testing-guidelines.md 2016-08-05 17:14:51 +02:00
Aleksandar Nikolić 0325665033 removing OPS and a duplicate line in testing-guidelines.md
Changing OPS to PowerShell.
Changing "PowerShell in Windows" to "Windows PowerShell".
Removing a duplicate line "test/powershell/Modules/Microsoft.PowerShell.Security".
Fixing a bunch of typos.
2016-08-05 02:39:13 +02:00
Angel Calvo c20417239f Update testing-guidelines.md
Replaced Open PowerShell with PowerShell
2016-08-04 12:41:18 -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
Jianyun Tao 39b3bfcd43 Created the docs layout 2016-06-24 19:11:56 -07:00