Test your PowerShell code with Pester

Published Oct 11 2021 02:21 PM 1,529 Views
Microsoft

Screenshot 2021-10-11 at 22.28.42.png

TLDR; this article covers the testing framework Pester that you use to test your PowerShell scripts.

 

Why test

The reason you want to have tests are many:

  • Correctness. Ensure your code works as as intended for certain scenarios.
  • Confidence. When you have a lot of tests covering your code it creates a level of confidence. With this confidence you start daring to change this, if you for example would need to refactor code and ensure it still works after those changes.
  • Architecture. Another reason for having tests is that it drives architecture. If you create tests around what you do, you ensure you build your code in a way that makes it testable. That, drives the architecture.

There are many other reasons for wanting to have tests but the three above are quite compelling.

 

What is Pester

Pester is a test framework meant for PowerShell and is a module you can install. It has several features:

  • Assertions. Pester comes with diverse ways of asserting conditions that will determine if your tests should fail or not.
  • Able to run tests. You can run tests with Pester, both a single test with a single piece of input as well as testing many different inputs at once.
  • Can group your tests in test suites. When you start having quite a few tests, you want a way to group those tests into larger logical groups, that's what test suites are.
  • Ability to mock calls. In you tests you might have calls to commands that carry out side-effects, like accessing a data store or creating a file for example. When you want your tests to focus on the behavior on the tests, mocking is a good idea.

 

Install

To install Pester, you run the below command.

 

Install-Module -Name Pester -Force

 

Once it's installed, you can start authoring your tests.

From install page:

Pester runs on Windows, Linux, MacOS and anywhere else thanks to PowerShell. It is compatible with Windows PowerShell 3, 4, 5, 6 and 7.
Pester 3 comes pre-installed with Windows 10

 

Our first test

For our first test, we will learn how to write a test as well as running it.

  1. To create our first test, create a file A-Test.ps1
  2. Add the following code:

 

 Describe "A suite" {
      It "my first test" {
        $Value = "Value"
        $Value | Should -Be "Value"
      }
    }

 

 

The test above, have a Describe construct which is the declaration of a suite, and a string argument, giving the suite a name. Within the suite there's a test definition It, which also has a string argument that represents the name of the test. Within the test, there's test itself where the code is set up:

 

$Value = "Value"

 

and then it's asserted upon

 

   $Value | Should -Be "Value"

 

Note the use of the Should -Be, which determines equality between $Value and "Value".

  1. To run the test, call Invoke-Pester (./ for the path in Linux ans macOS and .\ for Windows):
  Invoke-Pester ./A-Test.ps1 

The outcome of running the test is:

   Starting discovery in 1 files.
   Discovery found 1 tests in 6ms.
   Running tests.
   [+] /<path>/A-Test.ps1 42ms (11ms|26ms)
   Tests completed in 44ms
   Tests Passed: 1, Failed: 0, Skipped: 0 NotRun: 0
 

A more real looking test

The first test was great in that it let us understand the mechanics of testing and concepts like a suite, a test, and an assertion like Should -Be. A more real looking test would test code in a script file that's not in our test file. Here's the steps we will take next:

  • Create a script file with our production code.
  • Dot source said script file.
  • Create a test and run it.

 

Create production code

You will have code that you want to test but let's create this script file for the sake of demonstration.

  1. Create a file Get-Tomato.ps1
  2. Add the following code:
   Function Get-Tomato() {
     new-object psobject -property @{ Name = "Tomato" }
   }

This code will create a custom object for each time the Get-Tomato() function is invoked.

  1. Let's dot source it next so are session knows about it:

 

 . ./Get-Tomato.ps1

 

  1. Verify that your function has been picked up by running:

 

  Get-Tomato

 

you should see the following in the console:

 

Name                                                                                                                 ----                                                                                                                  
Tomato

 

 

Create the test

Now that we have our production code, let's author the test next.

  1. Create a file Get-Tomato.Tests.ps1 and give it the following code

 

 Describe "Tomatoes" {
   It "Get Tomato" {
     $tomato = Get-Tomato
     $tomato.Name | Should -Be "Tomato"
   }
}

 

  1. Run the test with Invoke-Pester:

 

Invoke-Pester ./Get-Tomato.Tests.ps1

 

you should see the following output:

   Invoke-Pester ./Get-Tomato.Tests.ps1
   Starting discovery in 1 files.                                                                                                    Discovery found 1 tests in 6ms.                                                                                                 
   Running tests.
   [+] /<path>/Get-Tomato.Tests.ps1 66ms (9ms|52ms)
   Tests completed in 68ms
   Tests Passed: 1, Failed: 0, Skipped: 0 NotRun: 0

Great, you ran a test on a more real looking code.

 

Working with side effects

You will have code that you write that eventually performs side effects, like accessing a network resource or create a file. Let's look at such a case and how Pester handles it. The short answer is that you can use mocks, a construct that's executed instead of the actual command. All you need to do is to focus that the right behavior happens.

 

Update production code

So, in this case, imagine that our production code now will have more function Save-Tomato that saves an object to a file.

  1. Update the Get-Tomato.ps1 file with this code:

 

 Function Save-Tomato() {
   Param(
     [string] $Name
   )
   New-Item -ItemType File -Path ./Tomato.txt -Value $Name -Force
}

 

  1. Dot source the code to ensure it's being picked up:

 

. /Get-Tomato.ps1

 

 

Create a test

Ok, so you have added Save-Tomato() to your script file. Now for a test. Your code is calling New-Item, which creates a new file. As part of testing, you don't want it to create a file each time the test is being run. More likely, you just want to see the test does what it's supposed to, i.e. calling the correct command/s. So, to solve this issue, we can mock, replace the current implementation of New-Item with our own.

  • To mock, we first need to replace the actual implementation like so:

 

Mock -CommandName New-Item -MockWith {}

 

  • Call the command. At this point, you need to call the command like you would usually do. In your case, it means that you call Save-Tomato():

 

Save-Tomato # this should call New-Item

 

  • Verify. The last part of the mocking process is to verify that you mock has been called

The command Should -Invoke, allows you to specify what command it should have called, like so:

 

Should -Invoke -CommandName New-Item -Times 1 -Exactly

 

The above code verifies New-Item is called exactly one time.

  • Let's put it all together as a test:

 

It "Save tomato" {
   Mock -CommandName New-Item -MockWith {}
   Save-Tomato "my tomato"
   Should -Invoke -CommandName New-Item -Times 1 -Exactly
}

 

  1. Remove Tomato.txt and then run the test with Invoke-Pester like so:

 

 Invoke-Pester ./Get-Tomato.Tests.ps1

 

At this point your tests should run successfully like so:

   Starting discovery in 1 files.
   Discovery found 2 tests in 8ms.
   Running tests.
   [+] /Users/chnoring/Documents/dev/projects/powershell-projects/articles/Get-Tomato.Tests.ps1 78ms (34ms|37ms)
   Tests completed in 80ms
   Tests Passed: 2, Failed: 0, Skipped: 0 NotRun: 0
 

Also, note how Tomato.txt isn't created, because you are mocking the call to New-Item, success.

Congrats, you've learned how to install test framework Pester, on top of that, you've learned to author your first tests and even learned how to mock the call to actual commands. To learn more, have a look at Pesters GitHub page:

1 Comment
Senior Member

Great Article! I also recommend the Pester Tests extension on the vscode marketplace.
Pester Tests - Visual Studio Marketplace

%3CLINGO-SUB%20id%3D%22lingo-sub-2836556%22%20slang%3D%22en-US%22%3ERe%3A%20Test%20your%20PowerShell%20code%20with%20Pester%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2836556%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20Article!%20I%20also%20recommend%20the%20Pester%20Tests%20extension%20on%20the%20vscode%20marketplace.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dpspester.pester-test%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPester%20Tests%20-%20Visual%20Studio%20Marketplace%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2835759%22%20slang%3D%22en-US%22%3ETest%20your%20PowerShell%20code%20with%20Pester%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2835759%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-10-11%20at%2022.28.42.png%22%20style%3D%22width%3A%20619px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316615i9632507F0A19192E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-10-11%20at%2022.28.42.png%22%20alt%3D%22Screenshot%202021-10-11%20at%2022.28.42.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETLDR%3B%20this%20article%20covers%20the%20testing%20framework%20Pester%20that%20you%20use%20to%20test%20your%20PowerShell%20scripts.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CH2%20id%3D%22toc-hId--325632237%22%20id%3D%22toc-hId--325632213%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--2133086700%22%20id%3D%22toc-hId--2133086676%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23why-test%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22why-test%22%3E%3C%2FA%3EWhy%20test%3C%2FH2%3E%0A%3CP%3EThe%20reason%20you%20want%20to%20have%20tests%20are%20many%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ECorrectness%3C%2FSTRONG%3E.%20Ensure%20your%20code%20works%20as%20as%20intended%20for%20certain%20scenarios.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EConfidence%3C%2FSTRONG%3E.%20When%20you%20have%20a%20lot%20of%20tests%20covering%20your%20code%20it%20creates%20a%20level%20of%20confidence.%20With%20this%20confidence%20you%20start%20daring%20to%20change%20this%2C%20if%20you%20for%20example%20would%20need%20to%20refactor%20code%20and%20ensure%20it%20still%20works%20after%20those%20changes.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EArchitecture%3C%2FSTRONG%3E.%20Another%20reason%20for%20having%20tests%20is%20that%20it%20drives%20architecture.%20If%20you%20create%20tests%20around%20what%20you%20do%2C%20you%20ensure%20you%20build%20your%20code%20in%20a%20way%20that%20makes%20it%20testable.%20That%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Edrives%20the%20architecture%3C%2FEM%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThere%20are%20many%20other%20reasons%20for%20wanting%20to%20have%20tests%20but%20the%20three%20above%20are%20quite%20compelling.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-354426133%22%20id%3D%22toc-hId-354426157%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1453028330%22%20id%3D%22toc-hId--1453028306%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23what-is-pester%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22what-is-pester%22%3E%3C%2FA%3EWhat%20is%20Pester%3C%2FH2%3E%0A%3CP%3EPester%20is%20a%20test%20framework%20meant%20for%20PowerShell%20and%20is%20a%20module%20you%20can%20install.%20It%20has%20several%20features%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EAssertions%3C%2FSTRONG%3E.%20Pester%20comes%20with%20diverse%20ways%20of%20asserting%20conditions%20that%20will%20determine%20if%20your%20tests%20should%20fail%20or%20not.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAble%20to%20run%20tests%3C%2FSTRONG%3E.%20You%20can%20run%20tests%20with%20Pester%2C%20both%20a%20single%20test%20with%20a%20single%20piece%20of%20input%20as%20well%20as%20testing%20many%20different%20inputs%20at%20once.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ECan%20group%20your%20tests%20in%20test%20suites%3C%2FSTRONG%3E.%20When%20you%20start%20having%20quite%20a%20few%20tests%2C%20you%20want%20a%20way%20to%20group%20those%20tests%20into%20larger%20logical%20groups%2C%20that's%20what%20test%20suites%20are.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAbility%20to%20mock%20calls%3C%2FSTRONG%3E.%20In%20you%20tests%20you%20might%20have%20calls%20to%20commands%20that%20carry%20out%20side-effects%2C%20like%20accessing%20a%20data%20store%20or%20creating%20a%20file%20for%20example.%20When%20you%20want%20your%20tests%20to%20focus%20on%20the%20behavior%20on%20the%20tests%2C%20mocking%20is%20a%20good%20idea.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1034484503%22%20id%3D%22toc-hId-1034484527%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--772969960%22%20id%3D%22toc-hId--772969936%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23install%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22install%22%3E%3C%2FA%3EInstall%3C%2FH2%3E%0A%3CP%3ETo%20install%20Pester%2C%20you%20run%20the%20below%20command.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EInstall-Module%20-Name%20Pester%20-Force%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20it's%20installed%2C%20you%20can%20start%20authoring%20your%20tests.%3C%2FP%3E%0A%3CP%3EFrom%20install%20page%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EPester%20runs%20on%20Windows%2C%20Linux%2C%20MacOS%20and%20anywhere%20else%20thanks%20to%20PowerShell.%20It%20is%20compatible%20with%20Windows%20PowerShell%203%2C%204%2C%205%2C%206%20and%207.%3CBR%20%2F%3EPester%203%20comes%20pre-installed%20with%20Windows%2010%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CH2%20id%3D%22toc-hId-1714542873%22%20id%3D%22toc-hId-1714542897%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--92911590%22%20id%3D%22toc-hId--92911566%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23our-first-test%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22our-first-test%22%3E%3C%2FA%3EOur%20first%20test%3C%2FH2%3E%0A%3CP%3EFor%20our%20first%20test%2C%20we%20will%20learn%20how%20to%20write%20a%20test%20as%20well%20as%20running%20it.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ETo%20create%20our%20first%20test%2C%20create%20a%20file%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EA-Test.ps1%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3EAdd%20the%20following%20code%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%20Describe%20%22A%20suite%22%20%7B%0A%20%20%20%20%20%20It%20%22my%20first%20test%22%20%7B%0A%20%20%20%20%20%20%20%20%24Value%20%3D%20%22Value%22%0A%20%20%20%20%20%20%20%20%24Value%20%7C%20Should%20-Be%20%22Value%22%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20test%20above%2C%20have%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EDescribe%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Econstruct%20which%20is%20the%20declaration%20of%20a%20suite%2C%20and%20a%20string%20argument%2C%20giving%20the%20suite%20a%20name.%20Within%20the%20suite%20there's%20a%20test%20definition%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EIt%3C%2FCODE%3E%2C%20which%20also%20has%20a%20string%20argument%20that%20represents%20the%20name%20of%20the%20test.%20Within%20the%20test%2C%20there's%20test%20itself%20where%20the%20code%20is%20set%20up%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24Value%20%3D%20%22Value%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eand%20then%20it's%20asserted%20upon%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%20%20%20%24Value%20%7C%20Should%20-Be%20%22Value%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%20the%20use%20of%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EShould%20-Be%3C%2FCODE%3E%2C%20which%20determines%20equality%20between%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3E%24Value%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20%22Value%22.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ETo%20run%20the%20test%2C%20call%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EInvoke-Pester%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(.%2F%20for%20the%20path%20in%20Linux%20ans%20macOS%20and%20.%5C%20for%20Windows)%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CDIV%20class%3D%22highlight%20js-code-highlight%22%3E%0A%3CDIV%20class%3D%22highlight__panel%20js-actions-panel%22%3E%0A%3CDIV%20class%3D%22highlight__panel-action%20js-fullscreen-code-action%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%20%20Invoke-Pester%20.%2FA-Test.ps1%20%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3EThe%20outcome%20of%20running%20the%20test%20is%3A%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%20js-code-highlight%22%3E%0A%3CPRE%20class%3D%22highlight%20plaintext%22%3E%3CCODE%3E%20%20%20Starting%20discovery%20in%201%20files.%0A%20%20%20Discovery%20found%201%20tests%20in%206ms.%0A%20%20%20Running%20tests.%0A%20%20%20%5B%2B%5D%20%2F%3CPATH%3E%2FA-Test.ps1%2042ms%20(11ms%7C26ms)%0A%20%20%20Tests%20completed%20in%2044ms%0A%20%20%20Tests%20Passed%3A%201%2C%20Failed%3A%200%2C%20Skipped%3A%200%20NotRun%3A%200%0A%3C%2FPATH%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CDIV%20class%3D%22highlight__panel%20js-actions-panel%22%3E%0A%3CDIV%20class%3D%22highlight__panel-action%20js-fullscreen-code-action%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CH2%20id%3D%22toc-hId--1900366053%22%20id%3D%22toc-hId--1900366029%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23a-more-real-looking-test%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22a-more-real-looking-test%22%3E%3C%2FA%3EA%20more%20real%20looking%20test%3C%2FH2%3E%0A%3CP%3EThe%20first%20test%20was%20great%20in%20that%20it%20let%20us%20understand%20the%20mechanics%20of%20testing%20and%20concepts%20like%20a%20suite%2C%20a%20test%2C%20and%20an%20assertion%20like%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EShould%20-Be%3C%2FCODE%3E.%20A%20more%20real%20looking%20test%20would%20test%20code%20in%20a%20script%20file%20that's%20not%20in%20our%20test%20file.%20Here's%20the%20steps%20we%20will%20take%20next%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECreate%20a%20script%20file%20with%20our%20production%20code.%3C%2FLI%3E%0A%3CLI%3E%3CEM%3EDot%20source%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Esaid%20script%20file.%3C%2FLI%3E%0A%3CLI%3ECreate%20a%20test%20and%20run%20it.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId--1209804579%22%20id%3D%22toc-hId--1209804555%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-582544775%22%20id%3D%22toc-hId-582544799%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23create-production-code%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22create-production-code%22%3E%3C%2FA%3ECreate%20production%20code%3C%2FH3%3E%0A%3CP%3EYou%20will%20have%20code%20that%20you%20want%20to%20test%20but%20let's%20create%20this%20script%20file%20for%20the%20sake%20of%20demonstration.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreate%20a%20file%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EGet-Tomato.ps1%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3EAdd%20the%20following%20code%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CDIV%20class%3D%22highlight%20js-code-highlight%22%3E%0A%3CDIV%20class%3D%22highlight__panel%20js-actions-panel%22%3E%0A%3CDIV%20class%3D%22highlight__panel-action%20js-fullscreen-code-action%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%20%20%20Function%20Get-Tomato()%20%7B%0A%20%20%20%20%20new-object%20psobject%20-property%20%40%7B%20Name%20%3D%20%22Tomato%22%20%7D%0A%20%20%20%7D%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3EThis%20code%20will%20create%20a%20custom%20object%20for%20each%20time%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EGet-Tomato()%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efunction%20is%20invoked.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ELet's%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Edot%20source%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eit%20next%20so%20are%20session%20knows%20about%20it%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%20.%20.%2FGet-Tomato.ps1%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EVerify%20that%20your%20function%20has%20been%20picked%20up%20by%20running%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%20%20Get-Tomato%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eyou%20should%20see%20the%20following%20in%20the%20console%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3EName%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20----%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0ATomato%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%20js-code-highlight%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId--1224909688%22%20id%3D%22toc-hId--1224909664%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23create-the-test%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22create-the-test%22%3E%3C%2FA%3ECreate%20the%20test%3C%2FH3%3E%0A%3CP%3ENow%20that%20we%20have%20our%20production%20code%2C%20let's%20author%20the%20test%20next.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreate%20a%20file%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EGet-Tomato.Tests.ps1%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20give%20it%20the%20following%20code%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%20Describe%20%22Tomatoes%22%20%7B%0A%20%20%20It%20%22Get%20Tomato%22%20%7B%0A%20%20%20%20%20%24tomato%20%3D%20Get-Tomato%0A%20%20%20%20%20%24tomato.Name%20%7C%20Should%20-Be%20%22Tomato%22%0A%20%20%20%7D%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ERun%20the%20test%20with%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EInvoke-Pester%3C%2FCODE%3E%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EInvoke-Pester%20.%2FGet-Tomato.Tests.ps1%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eyou%20should%20see%20the%20following%20output%3A%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%20js-code-highlight%22%3E%0A%3CPRE%20class%3D%22highlight%20plaintext%22%3E%3CCODE%3E%20%20%20Invoke-Pester%20.%2FGet-Tomato.Tests.ps1%0A%20%20%20Starting%20discovery%20in%201%20files.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Discovery%20found%201%20tests%20in%206ms.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20Running%20tests.%0A%20%20%20%5B%2B%5D%20%2F%3CPATH%3E%2FGet-Tomato.Tests.ps1%2066ms%20(9ms%7C52ms)%0A%20%20%20Tests%20completed%20in%2068ms%0A%20%20%20Tests%20Passed%3A%201%2C%20Failed%3A%200%2C%20Skipped%3A%200%20NotRun%3A%200%3C%2FPATH%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3CP%3EGreat%2C%20you%20ran%20a%20test%20on%20a%20more%20real%20looking%20code.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1133520426%22%20id%3D%22toc-hId-1133520450%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--673934037%22%20id%3D%22toc-hId--673934013%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23working-with-side-effects%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22working-with-side-effects%22%3E%3C%2FA%3EWorking%20with%20side%20effects%3C%2FH2%3E%0A%3CP%3EYou%20will%20have%20code%20that%20you%20write%20that%20eventually%20performs%20side%20effects%2C%20like%20accessing%20a%20network%20resource%20or%20create%20a%20file.%20Let's%20look%20at%20such%20a%20case%20and%20how%20Pester%20handles%20it.%20The%20short%20answer%20is%20that%20you%20can%20use%20mocks%2C%20a%20construct%20that's%20executed%20instead%20of%20the%20actual%20command.%20All%20you%20need%20to%20do%20is%20to%20focus%20that%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Eright%20behavior%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ehappens.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1942661515%22%20id%3D%22toc-hId-1942661539%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-135207052%22%20id%3D%22toc-hId-135207076%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23update-production-code%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22update-production-code%22%3E%3C%2FA%3EUpdate%20production%20code%3C%2FH3%3E%0A%3CP%3ESo%2C%20in%20this%20case%2C%20imagine%20that%20our%20production%20code%20now%20will%20have%20more%20function%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ESave-Tomato%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethat%20saves%20an%20object%20to%20a%20file.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EUpdate%20the%20%3CEM%3EGet-Tomato.ps1%26nbsp%3B%3C%2FEM%3Efile%20with%20this%20code%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%20Function%20Save-Tomato()%20%7B%0A%20%20%20Param(%0A%20%20%20%20%20%5Bstring%5D%20%24Name%0A%20%20%20)%0A%20%20%20New-Item%20-ItemType%20File%20-Path%20.%2FTomato.txt%20-Value%20%24Name%20-Force%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CEM%3EDot%20source%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethe%20code%20to%20ensure%20it's%20being%20picked%20up%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E.%20%2FGet-Tomato.ps1%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%20js-code-highlight%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId--1672247411%22%20id%3D%22toc-hId--1672247387%22%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Ftest-your-powershell-code-with-pester-4hlc%23create-a-test%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20name%3D%22create-a-test%22%3E%3C%2FA%3ECreate%20a%20test%3C%2FH3%3E%0A%3CP%3EOk%2C%20so%20you%20have%20added%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ESave-Tomato()%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20your%20script%20file.%20Now%20for%20a%20test.%20Your%20code%20is%20calling%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ENew-Item%3C%2FCODE%3E%2C%20which%20creates%20a%20new%20file.%20As%20part%20of%20testing%2C%20you%20don't%20want%20it%20to%20create%20a%20file%20each%20time%20the%20test%20is%20being%20run.%20More%20likely%2C%20you%20just%20want%20to%20see%20the%20test%20does%20what%20it's%20supposed%20to%2C%20i.e.%20calling%20the%20correct%20command%2Fs.%20So%2C%20to%20solve%20this%20issue%2C%20we%20can%20mock%2C%20replace%20the%20current%20implementation%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ENew-Item%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewith%20our%20own.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CP%3E%3CSTRONG%3ETo%20mock%3C%2FSTRONG%3E%2C%20we%20first%20need%20to%20replace%20the%20actual%20implementation%20like%20so%3A%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EMock%20-CommandName%20New-Item%20-MockWith%20%7B%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ECall%20the%20command%3C%2FSTRONG%3E.%20At%20this%20point%2C%20you%20need%20to%20call%20the%20command%20like%20you%20would%20usually%20do.%20In%20your%20case%2C%20it%20means%20that%20you%20call%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ESave-Tomato()%3C%2FCODE%3E%3A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ESave-Tomato%20%23%20this%20should%20call%20New-Item%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EVerify%3C%2FSTRONG%3E.%20The%20last%20part%20of%20the%20mocking%20process%20is%20to%20verify%20that%20you%20mock%20has%20been%20called%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThe%20command%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EShould%20-Invoke%3C%2FCODE%3E%2C%20allows%20you%20to%20specify%20what%20command%20it%20should%20have%20called%2C%20like%20so%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EShould%20-Invoke%20-CommandName%20New-Item%20-Times%201%20-Exactly%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThe%20above%20code%20verifies%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ENew-Item%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%20called%20exactly%20one%20time.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ELet's%20put%20it%20all%20together%20as%20a%20test%3A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EIt%20%22Save%20tomato%22%20%7B%0A%20%20%20Mock%20-CommandName%20New-Item%20-MockWith%20%7B%7D%0A%20%20%20Save-Tomato%20%22my%20tomato%22%0A%20%20%20Should%20-Invoke%20-CommandName%20New-Item%20-Times%201%20-Exactly%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ERemove%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3ETomato.txt%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20then%20run%20the%20test%20with%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EInvoke-Pester%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Elike%20so%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%20Invoke-Pester%20.%2FGet-Tomato.Tests.ps1%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAt%20this%20point%20your%20tests%20should%20run%20successfully%20like%20so%3A%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%20js-code-highlight%22%3E%0A%3CPRE%20class%3D%22highlight%20plaintext%22%3E%3CCODE%3E%20%20%20Starting%20discovery%20in%201%20files.%0A%20%20%20Discovery%20found%202%20tests%20in%208ms.%0A%20%20%20Running%20tests.%0A%20%20%20%5B%2B%5D%20%2FUsers%2Fchnoring%2FDocuments%2Fdev%2Fprojects%2Fpowershell-projects%2Farticles%2FGet-Tomato.Tests.ps1%2078ms%20(34ms%7C37ms)%0A%20%20%20Tests%20completed%20in%2080ms%0A%20%20%20Tests%20Passed%3A%202%2C%20Failed%3A%200%2C%20Skipped%3A%200%20NotRun%3A%200%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CDIV%20class%3D%22highlight__panel%20js-actions-panel%22%3E%0A%3CDIV%20class%3D%22highlight__panel-action%20js-fullscreen-code-action%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3EAlso%2C%20note%20how%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3ETomato.txt%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eisn't%20created%2C%20because%20you%20are%20mocking%20the%20call%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ENew-Item%3C%2FCODE%3E%2C%20success.%3C%2FP%3E%0A%3CP%3ECongrats%2C%20you've%20learned%20how%20to%20install%20test%20framework%20Pester%2C%20on%20top%20of%20that%2C%20you've%20learned%20to%20author%20your%20first%20tests%20and%20even%20learned%20how%20to%20mock%20the%20call%20to%20actual%20commands.%20To%20learn%20more%2C%20have%20a%20look%20at%20Pesters%20GitHub%20page%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpester%2FPester%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPester%20GH%20page%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20title%3D%22Pester%20VS%20Code%20extension%22%20href%3D%22https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dpspester.pester-test%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ECheck%20out%20the%20Pester%20extension%20for%20VS%20Code%3C%2FA%3E%26nbsp%3B%2C%20thanks%20JGrote%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2835759%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3Ethis%20article%20covers%20the%20testing%20framework%20Pester%20that%20you%20use%20to%20test%20your%20PowerShell%20scripts.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-10-11%20at%2022.28.42.png%22%20style%3D%22width%3A%20619px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316614i38B5B384035D3A71%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-10-11%20at%2022.28.42.png%22%20alt%3D%22Screenshot%202021-10-11%20at%2022.28.42.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2835759%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELearning%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Oct 12 2021 10:59 AM
Updated by: