Skip to content

Commit 51fcf7b

Browse files
committed
bump appveyor build version
add fixture paramter to fake Test target to run a single fixture add nunit test project for use with the nunit ui update testing documentation
1 parent d639ac6 commit 51fcf7b

File tree

6 files changed

+19
-2
lines changed

6 files changed

+19
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ TestResult.xml
1919
/NuGet
2020
rabbit-mock.snk
2121
test.sh
22+
*.VisualState.xml
2223

2324
#################
2425
## Visual Studio

RUNNING_TESTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ On Windows run:
3737
On osx/linux run:
3838

3939
run-test.sh
40+
41+
42+
Running individual tests and fixtures on Windows is trivial using the Visual Studio test runner.
43+
To run a single test fixture on osx/linux you can use:
44+
45+
./fake.sh Test fixture=MyNameSpace.MyFixture

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.5.5.{build}"
1+
version: "3.6.3.{build}"
22

33
platform: Any CPU
44
configuration: Release

build.fsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,12 @@ Target "UpdateAssemblyInfos"
118118
{ f with AssemblyVersion = version }))
119119

120120
let test excludes =
121+
let fixture = getBuildParamOrDefault "fixture" ""
122+
trace <| sprintf "fixture %s" fixture
121123
!! ("./projects/client/**/build/**/unit-tests.dll")
122124
|> NUnit (fun p ->
123125
{ p with
126+
Fixture = fixture
124127
TimeOut = TimeSpan.FromMinutes 30.
125128
ExcludeCategory = excludes
126129
DisableShadowCopy = true;

fake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -e
44

55
mono .paket/paket.bootstrapper.exe
66
mono .paket/paket.exe restore
7-
mono ./packages/FAKE/tools/FAKE.exe build.fsx $1
7+
mono ./packages/FAKE/tools/FAKE.exe build.fsx $@

test.nunit

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<NUnitProject>
2+
<Settings activeconfig="Debug" />
3+
<Config name="Debug" binpathtype="Auto">
4+
<assembly path="projects/client/Unit/build/bin/unit-tests.dll" />
5+
</Config>
6+
<Config name="Release" binpathtype="Auto" />
7+
</NUnitProject>

0 commit comments

Comments
 (0)