Skip to content

Commit 742dfef

Browse files
committed
Removed duplicated test folder in scaffold.
Removed meta subfolder since its not used. Also refrences a repo that doenst exists anymore. `claudiospizzi/PowerShellModuleBase` Move tests folder out of src. Make test folder match src folder. Differentiate between Unit and Intergration tests. readme.md in plaster scaffold does not reflect what module does and can do. .\Build.ps1 -test does not work. There is no such task. .\Build.ps1 -test C:\_git\github\ModuleBuild\Build.ps1 : A parameter cannot be found that matches parameter name 'test'. At line:1 char:13 + .\Build.ps1 -test + ~~~~~ + CategoryInfo : InvalidArgument: (:) [Build.ps1], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Build.ps1 It does not download something from `claudiospizzi/PowerShellModuleBase`. It wouldn't be able to anyhow since doesn't exists anymore.
1 parent f288303 commit 742dfef

39 files changed

Lines changed: 93 additions & 2411 deletions

PSScriptAnalyzerSettings.psd1

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
@{
2-
IncludeRules=@('PSProvideCommentHelp',
3-
'PSAvoidUsingWriteHost')
2+
IncludeRules=@('PSUseApprovedVerbs',
3+
'PSReservedCmdletChar',
4+
'PSReservedParams',
5+
'PSShouldProcess',
6+
'PSUseShouldProcessForStateChangingFunctions',
7+
'PSUseSingularNouns',
8+
'PSMissingModuleManifestField',
9+
'PSAvoidDefaultValueSwitchParameter',
10+
'PSAvoidUsingCmdletAliases',
11+
'PSAvoidUsingWMICmdlet',
12+
'PSAvoidUsingEmptyCatchBlock',
13+
'PSUseCmdletCorrectly',
14+
'PSUseShouldProcessForStateChangingFunctions',
15+
'PSAvoidUsingPositionalParameters',
16+
'PSAvoidGlobalVars',
17+
'PSUseDeclaredVarsMoreThanAssignments',
18+
'PSAvoidUsingInvokeExpression',
19+
'PSAvoidUsingPlainTextForPassword',
20+
'PSAvoidUsingComputerNameHardcoded',
21+
'PSUsePSCredentialType',
22+
'PSDSC*'
23+
)
424
}

plaster/ModuleBuild/plasterManifest.xml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
templateType="Project" xmlns="http://www.microsoft.com/schemas/PowerShell/Plaster/v1">
55
<metadata>
66
<name>ModuleBuild</name>
7-
<id>3fd34e00-75da-4e7d-96c4-64009f3790e2</id>
7+
<id>4794ac4a-1fbc-49f4-973f-9ece24eaa1d9</id>
88
<version>0.0.1</version>
99
<title>New ModuleBuild Project</title>
1010
<description>Create a new PowerShell Module with a ModuleBuild wrapper</description>
@@ -190,8 +190,26 @@
190190
source="scaffold\src\templates\*"
191191
destination="src\templates" />
192192
<file
193-
source="scaffold\tests\*"
194-
destination="src\tests" />
193+
source="scaffold\tests\"
194+
destination="tests" />
195+
<file
196+
source="scaffold\tests\intergration"
197+
destination="tests\intergration" />
198+
<file
199+
source="scaffold\tests\unit"
200+
destination="tests\unit" />
201+
<file
202+
source="scaffold\tests\intergration\private\*"
203+
destination="tests\intergration\private" />
204+
<file
205+
source="scaffold\tests\intergration\public\*"
206+
destination="tests\intergration\public" />
207+
<file
208+
source="scaffold\tests\unit\private\*"
209+
destination="tests\unit\private" />
210+
<file
211+
source="scaffold\tests\unit\public\*"
212+
destination="tests\unit\public" />
195213
<templateFile
196214
source="scaffold\plugins\NLog\*"
197215
destination="plugins\nlog"

plaster/ModuleBuild/scaffold/build/docs/Additional/Acknowledgements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
Project Site: [<%=$PLASTER_PARAM_ModuleWebsite%>](<%=$PLASTER_PARAM_ModuleWebsite%>)
44

5-
This project owes some acknowlegement to other projects. Here are some other authors or projects which have made this project possible. If you believe you or a project should be included in this list please let us know.
5+
This project owes some acknowledgements to other projects. Here are some other authors or projects which have made this project possible. If you believe you or a project should be included in this list please let us know.
66

7-
[ModuleBuild](https://github.com/zloeber/ModuleBuild) - A PowerShell module build framwork.
7+
[ModuleBuild](https://github.com/zloeber/ModuleBuild) - A PowerShell module build framework.

plaster/ModuleBuild/scaffold/readme.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ Studio Code and ensure that the PowerShell extension is installed.
3636
* [Visual Studio Code]
3737
* [PowerShell Extension]
3838

39-
This module is tested with the PowerShell testing framework Pester. To run all
40-
tests, just start the included test script `.\Build.ps1 -test` or invoke Pester
41-
directly with the `Invoke-Pester` cmdlet in the tests directory. The tests will automatically download
42-
the latest meta test from the claudiospizzi/PowerShellModuleBase repository.
39+
// This module is tested with the PowerShell testing framework Pester. To run all
40+
// tests, just start the included test script `.\Build.ps1 -test` or invoke Pester
41+
// directly with the `Invoke-Pester` cmdlet in the tests directory.
42+
43+
// Not true at the moment.
4344

4445
## Other Information
4546

plaster/ModuleBuild/scaffold/src/tests/FunctionCBH.Tests.ps1

Lines changed: 0 additions & 60 deletions
This file was deleted.

plaster/ModuleBuild/scaffold/src/tests/ModuleManifest.Tests.ps1

Lines changed: 0 additions & 205 deletions
This file was deleted.

plaster/ModuleBuild/scaffold/src/tests/ScriptAnalyzer.Tests.ps1

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)