文件名称:PSate:PowerShell的测试运行器模块
文件大小:21KB
文件格式:ZIP
更新时间:2024-06-03 01:58:21
PowerShell
PSate PSate (发音为“ sate”或“ puh-sate”),意思是“满足”,是PowerShell的测试运行程序模块。 PSate是PSST PowerShell测试套件的一部分: 例子 (注意:以下应来自PShould) TDD风格入门: TestFixture "Calculator" { TestSetup { $x = 1 $y = 2 } TestCase "Adds" { $x + $y | Should Be 3 } TestCase "Subtracts" { $x - $y | Should Be -1 } } BDD风格入门: Describing "Calculator" { Given "1 and 2" { TestSetup { $x = 1
【文件预览】:
PSate-master
----PSate.nuspec(822B)
----init.ps1(93B)
----Build.ps1(278B)
----Build.psake.ps1(1KB)
----tests()
--------Filter.Tests.ps1(673B)
--------Calculator.ps1(77B)
--------TestScriptPath.Tests.ps1(262B)
--------SetupTearDown.Tests.ps1(3KB)
--------New-TestScript.Tests.ps1(700B)
--------Filter.Example.ps1(145B)
--------TDD.Tests.ps1(4KB)
--------Scope.Tests.ps1(1KB)
--------Register-TestCleanup.Tests.ps1(839B)
--------New-TestFolder.Tests.ps1(698B)
--------NUnit.Tests.ps1(1KB)
--------Exception.Tests.ps1(508B)
--------New-TestFile.Tests.ps1(1KB)
--------BDD.Tests.ps1(4KB)
--------Calculator.Tests.ps1(708B)
----LICENSE(3KB)
----examples()
--------Add-Numbers.ps1(55B)
--------Add-Numbers.Tests.ps1(620B)
--------Mock-Numbers.ps1(198B)
--------Mock-Numbers.Tests.ps1(405B)
----.gitignore(17B)
----PSate.psm1(33KB)
----README.md(2KB)