forked from picklesdoc/pickles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.fsx
133 lines (116 loc) · 5.27 KB
/
test.fsx
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// include Fake lib
#r @"packages\FAKE\tools\FakeLib.dll"
open Fake
open Fake.Testing
// Properties
let testDir = "./test/"
Target "Test" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.Test.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.Test.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.TestFrameworks" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.TestFrameworks.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.TestFrameworks.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.DocumentationBuilders.Cucumber" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.DocumentationBuilders.Cucumber.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.DocumentationBuilders.Cucumber.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.DocumentationBuilders.Dhtml" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.DocumentationBuilders.Dhtml.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.DocumentationBuilders.Dhtml.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.DocumentationBuilders.Excel" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.DocumentationBuilders.Excel.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.DocumentationBuilders.Excel.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.DocumentationBuilders.Html" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.DocumentationBuilders.Html.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.DocumentationBuilders.Html.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.DocumentationBuilders.Json" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.DocumentationBuilders.Json.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.DocumentationBuilders.Json.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.DocumentationBuilders.Word" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.DocumentationBuilders.Word.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.DocumentationBuilders.Word.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.DocumentationBuilders.Markdown.UnitTests" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.DocumentationBuilders.Markdown.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.DocumentationBuilders.Markdown.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.DocumentationBuilders.Markdown.AcceptanceTests" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.DocumentationBuilders.Markdown.AcceptanceTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.DocumentationBuilders.Markdown.AcceptanceTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.Runners.CommandLine" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.CommandLine.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.CommandLine.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
Target "Test.Runners.UI" (fun _ ->
!! (testDir + "PicklesDoc.Pickles.UserInterface.UnitTests.dll")
|> NUnit3 (fun p ->
{p with
ShadowCopy = false;
OutputDir = testDir + "PicklesDoc.Pickles.UserInterface.UnitTests.TestResults.xml";
ToolPath = "packages/NUnit.ConsoleRunner/tools/nunit3-console.exe" })
)
"Test"
==> "Test.DocumentationBuilders.Cucumber"
==> "Test.DocumentationBuilders.Dhtml"
==> "Test.DocumentationBuilders.Excel"
==> "Test.DocumentationBuilders.Html"
==> "Test.DocumentationBuilders.Json"
==> "Test.DocumentationBuilders.Word"
==> "Test.DocumentationBuilders.Markdown.UnitTests"
==> "Test.DocumentationBuilders.Markdown.AcceptanceTests"
==> "Test.Runners.CommandLine"
==> "Test.Runners.UI"
==> "Test.TestFrameworks"
// start build
RunTargetOrDefault "Test.TestFrameworks"