Skip to content

Commit 9df5570

Browse files
Rework to move to wiki format
1 parent 8db496a commit 9df5570

22 files changed

Lines changed: 329 additions & 255 deletions

.MetaTestOptIn.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
"Common Tests - Validate Markdown Files",
3+
"Common Tests - Validate Example Files"
4+
]

.codecov.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: no
4+
# dev should be the baseline for reporting
5+
branch: dev
6+
7+
comment:
8+
layout: "reach, diff"
9+
behavior: default
10+
11+
coverage:
12+
range: 50..80
13+
round: down
14+
precision: 0
15+
16+
status:
17+
project:
18+
default:
19+
# Set the overall project code coverage requirement to 70%
20+
target: 70
21+
patch:
22+
default:
23+
# Set the pull request requirement to not regress overall coverage by more than 5%
24+
# and let codecov.io set the goal for the code changed in the patch.
25+
target: auto
26+
threshold: 5

.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
DSCResource.Tests
1+
*.suo
2+
*.user
3+
*.coverage
4+
.vs
5+
.psproj
6+
.sln
7+
DscResource.Tests
8+
DscResource.Tests/*
9+
Modules/xNetworking/DscResource.Tests
10+
Modules/xNetworking/DscResource.Tests/*
11+
node_modules
12+
node_modules/*
13+
markdownissues.txt
14+
TestResults.xml

.vscode/RunAllTests.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[string] $repoRoot = Split-Path -Path (Split-Path -Path $Script:MyInvocation.MyCommand.Path)
2+
if ( (-not (Test-Path -Path (Join-Path -Path $repoRoot -ChildPath 'DSCResource.Tests'))) -or `
3+
(-not (Test-Path -Path (Join-Path -Path $repoRoot -ChildPath 'DSCResource.Tests\TestHelper.psm1'))) )
4+
{
5+
& git @('clone','https://github.com/PowerShell/DscResource.Tests.git',(Join-Path -Path $repoRoot -ChildPath '\DSCResource.Tests\'))
6+
}
7+
8+
Import-Module (Join-Path $PSScriptRoot "..\Tests\TestHarness.psm1" -Resolve)
9+
$dscTestsPath = Join-Path -Path $PSScriptRoot `
10+
-ChildPath "..\Modules\FileContentDsc\DscResource.Tests\Meta.Tests.ps1"
11+
Invoke-TestHarness -DscTestsPath $dscTestsPath

.vscode/launch.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "PowerShell",
6+
"type": "PowerShell",
7+
"request": "launch",
8+
"program": "${file}",
9+
"args": [],
10+
"cwd": "${file}"
11+
},
12+
{
13+
"name": "Run all tests",
14+
"type": "PowerShell",
15+
"request": "launch",
16+
"program": "${workspaceRoot}/.vscode/RunAllTests.ps1"
17+
}
18+
]
19+
}

LICENSE

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The MIT License (MIT)
22

3-
Copyright (c) 2016 PowerShell Team
3+
Copyright (c) 2017 Microsoft Corporation.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
copies of the Software, and to permit persons to whom the Software is
1010
furnished to do so, subject to the following conditions:
1111

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

DscResources/MSFT_ReplaceText/MSFT_ReplaceText.mof renamed to Modules/FIleContentDsc/DSCResources/MSFT_ReplaceText/MSFT_ReplaceText.mof

File renamed without changes.

DscResources/MSFT_ReplaceText/MSFT_ReplaceText.psm1 renamed to Modules/FIleContentDsc/DSCResources/MSFT_ReplaceText/MSFT_ReplaceText.psm1

File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Description
2+
3+
The resource is used to replaces strings matching a regular expression in a file.

DscResources/MSFT_ReplaceText/en-US/MSFT_ReplaceText.schema.mfl renamed to Modules/FIleContentDsc/DSCResources/MSFT_ReplaceText/en-US/MSFT_ReplaceText.schema.mfl

File renamed without changes.

0 commit comments

Comments
 (0)