Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split testing into files for each function #41

Merged
merged 32 commits into from May 7, 2019
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d2d0497
Created necessary files, removed unnecessary false credential creation
mcbobke Dec 5, 2018
70ef7ee
InModuleScope for testing private functions
mcbobke Dec 6, 2018
f4dae3a
Importing module before tests
mcbobke May 6, 2019
23b5f12
Missed staged change
mcbobke May 6, 2019
4e94264
Removed unnecessary global variable
mcbobke May 6, 2019
2b24f2f
Moved confimpreference save into BeforeAll block
mcbobke May 6, 2019
44f0ffb
Split "Feature tests" into each individual function
mcbobke May 6, 2019
2347a6f
Removing "should not throw" to allow exceptions through
mcbobke May 6, 2019
f1e8809
Fixing ShouldProcess
mcbobke May 6, 2019
ec77f5c
Setting ConfirmPreference before any tests are run, typo fix
mcbobke May 6, 2019
67612a5
Split "Get-SpeedTestConfig" tests, renamed files to force tests first
mcbobke May 6, 2019
b3a3545
Missed script variable declarations
mcbobke May 6, 2019
f451dee
Split "Install-iPerf3" tests
mcbobke May 6, 2019
b41f139
Better test for Install-SpeedTestServer
mcbobke May 6, 2019
1e8e0b0
Bad pester formatting
mcbobke May 6, 2019
e2c9465
More specific "Install-iPerf3" test
mcbobke May 6, 2019
ce11695
Split "Install-SpeedTestServer", "Set-iPerf3Port", "Set-iPerf3Task" t…
mcbobke May 6, 2019
7e79520
Update test for boolean instead of string
mcbobke May 6, 2019
2b14aef
Split "Set-SpeedTestConfig" tests
mcbobke May 6, 2019
baa5545
Split mocked "Invoke-SpeedTest" tests for parameter validation
mcbobke May 6, 2019
24a9b0c
Better tests for "Install-ChocolateyGetProvider" and "Set-iPerf3Task"
mcbobke May 6, 2019
1564e69
Missed mandatory port parameter
mcbobke May 6, 2019
59ed4bf
Remove-iPerf3 test written
mcbobke May 6, 2019
0c2b610
Forcing removal of package when called
mcbobke May 6, 2019
4e3e0d1
Removed test for "Install-iPerf3" from test block for "Remove-iPerf3"…
mcbobke May 6, 2019
3dd64d1
"Remove-iPerf3Task" test written
mcbobke May 6, 2019
38914d2
Wrote test for "Remove-SpeedTestServer"
mcbobke May 6, 2019
7009a0a
Removed unnecessary "-Force" parameter, added checks for ChocolateyGe…
mcbobke May 6, 2019
71b6d3b
Adding Verbose/Debug switches for troubleshooting
mcbobke May 6, 2019
7574e03
More Verbose/Debug troubleshooting
mcbobke May 6, 2019
745fb8d
Stopping process to remove file lock
mcbobke May 7, 2019
22b4a12
Test failures prevented by ensuring iperf3 is installed
mcbobke May 7, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Stopping process to remove file lock

  • Loading branch information...
mcbobke committed May 7, 2019
commit 745fb8d01bc63b352e20c620cbdc3482ba9f7730
@@ -3,6 +3,7 @@ InModuleScope PSSpeedTest {
Context "Remove-iPerf3" {
It "Should remove iPerf3 package" {
Install-iPerf3
Get-Process -Name 'iperf3' | Stop-Process -Force # Stopping process to prevent file lock
Remove-iPerf3

$result = Get-Package -Name 'iperf3' `
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.