-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.ps1
46 lines (36 loc) · 1.48 KB
/
example.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$output_file="README.log"
# INSTRUCTIONS:
# -Fetching EkstaziSharp dependencies
echo "Fetching EkstaziSharp dependencies"
./tool/tests/nuget.exe restore tool/ekstaziSharp.sln > $output_file
# -Building EkstaziSharp project
echo "Building EkstaziSharp project"
msbuild ./tool/Tester/EkstaziSharp.Tester.csproj /verbosity:quiet > $output_file
$oldDir = pwd
cd ~
# -Setting up project under test
$projectCloned = Test-Path "FluentValidation"
if (-Not $projectCloned) {
echo "Cloning a test project"
git clone https://github.com/JeremySkinner/FluentValidation.git
}
cd FluentValidation
# -Building a test project
echo "Building a test project"
msbuild src/FluentValidation.Tests/FluentValidation.Tests.csproj /verbosity:quiet > $output_file
cd $oldDir
# -Running tests using EkstaziSharp
echo "Running tests using EkstaziSharp"
./build/EkstaziSharp.Tester/ekstaziSharpTester.exe `
--testSource LocalProject `
--projectPath ${HOME}\FluentValidation `
--solutionPath FluentValidation.sln `
--programModules src\FluentValidation.Tests\bin\Debug\FluentValidation.dll `
--testModules src\FluentValidation.Tests\bin\Debug\FluentValidation.Tests.dll `
--testingFramework XUnit2 `
--outputDirectory ${HOME}\FluentValidation `
--inputDirectory ${HOME}\FluentValidation `
--debug `
--noappdomain
# -Check execution logs
echo "Execution log files are located on: ${HOME}\FluentValidation\.ekstaziSharp\ekstaziInformation\executionLogs"