[+] Title Should Be 'Introduction to Pester‘ 89ms

Slides:



Advertisements
Similar presentations
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
Advertisements

Becky Bertram SharePoint MVP
© BJSS Limited Going Agile UK TMF - April 2011 Mark Crowther, Test Consultant.
ADAPTING YOUR ETL SOLUTION TO USE SSIS 2012 Presentation by Devin Knight
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
Using Power BI with my DBA Database
UNIT TESTING IN ANGULARJS Dhananjay
Unit Testing - solid fundamentals
Building Regression Tests With PeopleSoft Test Framework
Developer Testing Tricks
Achieve more in less time using the new SQL PowerShell
Introduction to PowerShell
Going Agile UK TMF April 2011 (without tears or lactic acid)
DBA and IT Professional for ~9 years. Currently I am a Data Architect
Turning Your Checklists
AngularJS A Gentle Introduction John
Unit Testing & Test-Driven Development for Mere Mortals
Simplifying XEvents Management with dbatools
Administrating SQL Server with PowerShell dbatools
DevOps Database Administration
Unit Testing & Test-Driven Development for Mere Mortals
Reliable, Repeatable, Configurable & Automated Validation with
Administrating SQL Server with PowerShell dbatools
Resources BTEC National.
dbatools! The reason to finally start learning and using Powershell
Making PowerShell Useful
dbachecks! DBA Checklists: Reliable, Repeatable, & Automated
Administrating SSRS without boring web based clicks!
Testing in PowerShell Powered by Pester NATHAN ZIEHNERT 5/25/2018.
Test Driven Development
DevOps Database Administration
Making PowerShell Useful
Chrissy LeMaire, MVP & Rob Sewell, MVP
Unit testing for your database infrastructure
Migrating your local database to Azure SQL DB
dbatools! The reason to finally start learning and using Powershell
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Reliable, Repeatable, Configurable & Automated Validation with
DBA for ~4+years, IT Professional for 7.5 years.
PowerShell & PowerBi Reducing DBAs Context Switching
Making PowerShell Useful
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell & PowerBi Reducing DBAs Context Switching
Making PowerShell Useful
SQLSERVER:\ Using the SQL Server Provider with PowerShell
Automating the install and upgrade of SQL scripts
PowerShell & PowerBi Reducing DBAs Context Switching
Commands for SQL Server
PowerShell SQL Server I will be tweeting links as we go
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
Outsourcing Database Administration
Unit Testing & Test-Driven Development for Mere Mortals
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
Administrating SQL Server with PowerShell dbatools
Test and Verify Instances with DBAchecks
Summit Nashville /3/2019 1:48 AM
Reliable, Repeatable, Configurable & Automated Validation with
Administrating SQL Server with PowerShell dbatools
Gold Sponsors.
Tech Ed North America /27/ :04 AM Required Slide
dbatools! The reason to finally start learning and using Powershell
Managing and monitoring SQL Server on Linux from the command line
Using Dbatools to Automate Database Migrations
What it is and why you should use it
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
Windows without windows...
This is the slide shown before the presentation starts
Database Testing Adam Anderson
Life Hacks: dbatools Edition
Presentation transcript:

[+] Title Should Be 'Introduction to Pester‘ 89ms Describing SQLSatHolland Presentation Context Presentation [+] Title Should Be 'Introduction to Pester‘ 89ms [+] Should have many Demos 8ms Context Speaker [+] Name should be Rob Sewell 51ms [+] Twitter Should be @sqldbawithbeard 19ms [+] Website Should be sqldbawithAbeard.com 12ms Context Audience [+] Audience should be awesome 60ms [!] They should not fall asleep 7ms

speaker questionnaire Name : Rob Occupation : DBA, Automator, Do-er, Trainer, DevOpser! Available for hire  - RobSewell.info Interests : PowerShell, Automation And SQL (PaaS geddit?) Interesting Fact : Beard. (Still) Plays Cricket, Flies Drone Speaker : PsConfEU, PsConfAsia, PSSaturdays, PSMondays, User Groups PowerShell and SQL Community : PowerShell VG, PowerShell Conference EU Organiser, PSDayUK Organiser, SQL South West , SQL Sat Exeter , dbareports, dbatools, SQLDiagAPI, MVP Crashes

Invoke-SponsorVisit

What is Pester? Pester provides a framework for running unit tests to execute and validate PowerShell commands from within PowerShell https://github.com/pester/Pester

Why Test? Good tests can… Verify the code is working correctly Prevent future regressions Document the code’s behaviour Provide design guidance Support refactoring https://www.devmynd.com/blog/five-factor-testing/ Does it do what I want If I change it does it do what I want What is it supposed to do This is how it is designed Does it still do what we want when we make big changes

How Do I Get Pester? If you have PowerShell V5 or above you already have it. You should update it using Install-Module Pester -Force If Not Install-Module Pester (use –Scope CurrentUser if not admin)

Invoke-SponsorVisit –Repeat Please add this slide in your presentation

What does Pester Look Like?

Environmental Validation As Pester is just PowerShell you can use it to validate the results of any PowerShell command This is BRILLIANT for validating your environment

How Do I Start? Hey Beardy ! MUST BE TIME FOR A DEMO

Two things we didnt show Test Drive A drive created in $ENV:Temp that is accessible via $TestDrive and exists within the scope of a Describe block In ModuleScope This tells Pester to inject the mock into the module's scope, which causes any calls to those commands from inside the module to execute the mock instead.

Questions? Rob Sewell - @SQLDBAWithBeard SQLDBAWithABeard.com You should get the Pester Book by Adam Bertram https://leanpub.com/pesterbook Rob Sewell - @SQLDBAWithBeard SQLDBAWithABeard.com

Start-SpeakerEvaluation