Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
.vscode/
bin/
obj/
website-copy/
21 changes: 5 additions & 16 deletions test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,40 @@
Run all tests, verifying the behavior of the analyzer.
.PARAMETER UpdateAnalysis
Update the expected analysis files to the current output (optional).
.PARAMETER UpdateComments
Update the comment files to the current output (optional).
.PARAMETER UseDocker
Run the tests using Docker (optional).
.EXAMPLE
The example below will run all tests
PS C:\> ./test.ps1

The example below will run all tests and update the comments
PS C:\> ./test.ps1 -UpdateComments

The example below will run all tests using Docker
PS C:\> ./test.ps1 -UseDocker

The example below will run all tests and update both the comments and analysis files
PS C:\> ./test.ps1 -UpdateComments -UpdateAnalysis
The example below will run all tests and update both the analysis files
PS C:\> ./test.ps1 -UpdateAnalysis
.NOTES
The UpdateAnalysis and UpdateComments switches should only be used if
a bulk update of the expected analysis and/or expected comments files is needed.
The UpdateAnalysis switch should only be used if a bulk update of the
expected analysis files is needed.
#>

param (
[Parameter(Mandatory = $false)]
[Switch]$UpdateAnalysis,

[Parameter(Mandatory = $false)]
[Switch]$UpdateComments,

[Parameter(Mandatory = $false)]
[Switch]$UseDocker
)

$Env:UPDATE_ANALYSIS = $UpdateAnalysis.IsPresent
$Env:UPDATE_COMMENTS = $UpdateComments.IsPresent
$Env:USE_DOCKER = $UseDocker.IsPresent

git submodule update --remote --init --merge website-copy

if ($UseDocker.IsPresent) {
docker build -t exercism/csharp-analyzer .
}

dotnet test

if ($UpdateAnalysis.IsPresent -or $UpdateComments.IsPresent) {
if ($UpdateAnalysis.IsPresent) {
./format.ps1
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public void SolutionIsAnalyzedCorrectly(TestSolution testSolution)
{
var analysisRun = TestSolutionAnalyzer.Run(testSolution);
Assert.Equal(analysisRun.Expected.Analysis.NormalizeJson(), analysisRun.Actual.Analysis.NormalizeJson());
Assert.Equal(analysisRun.Expected.Comments.NormalizeMarkdown(), analysisRun.Actual.Comments.NormalizeMarkdown());
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading