-
Notifications
You must be signed in to change notification settings - Fork 0
/
Settings.proj
91 lines (79 loc) · 3.75 KB
/
Settings.proj
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
<?xml version="1.0" encoding="utf-8"?>
<!--
==================================================
Settings file for VS and external build files
==================================================
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<!-- Root Path definition relative for actual build file -->
<PropertyGroup>
<RootPath Condition=" '$(RootPath)' == '' ">$(MSBuildProjectDirectory)</RootPath>
</PropertyGroup>
<!-- Names -->
<PropertyGroup>
<ProjectName>RubyView</ProjectName>
</PropertyGroup>
<!-- Project folders -->
<PropertyGroup>
<BuildPath>$(RootPath)\build</BuildPath>
<TestResultsPath>$(BuildPath)\test-results</TestResultsPath>
<ToolsPath>$(RootPath)\tools</ToolsPath>
</PropertyGroup>
<!-- Project files -->
<PropertyGroup>
<TestDetectionExpression>.[\.]((Performance|Acceptance|Integration|Unit)?Test[s]{0,1})</TestDetectionExpression>
<PerformanceTestDetectionExpression>.[\.](PerformanceTest[s]{0,1})</PerformanceTestDetectionExpression>
<AcceptanceTestDetectionExpression>.[\.](AcceptanceTest[s]{0,1})</AcceptanceTestDetectionExpression>
<IntegrationTestDetectionExpression>.[\.](IntegrationTest[s]{0,1})</IntegrationTestDetectionExpression>
<UnitTestDetectionExpression>.[\.]((Unit)?Test[s]{0,1})</UnitTestDetectionExpression>
<SolutionPath>$(RootPath)\$(ProjectName).VS2008.sln</SolutionPath>
</PropertyGroup>
<!-- 3rd Party Program Paths -->
<PropertyGroup>
<MSBuildExtensionsPath Condition="Exists('$(ToolsPath)\msbuild')" >$(ToolsPath)\msbuild</MSBuildExtensionsPath>
<NUnitPath>$(ToolsPath)\nunit</NUnitPath>
</PropertyGroup>
<!-- Signing Properties-->
<PropertyGroup>
<SignAssembly Condition="$(SignAssembly) == ''">false</SignAssembly>
<AssemblyOriginatorKeyFile>$(RootPath)\$(ProjectName).snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<!-- AssemblyInfo Properties -->
<PropertyGroup>
<AssemblyInfoFile>Properties\AssemblyInfo.cs</AssemblyInfoFile>
<AssemblyTitle>$(ProjectName) - $(AssemblyTitle)</AssemblyTitle>
<AssemblyDescription>Engine view for MonoRail with Ruby syntax.</AssemblyDescription>
<AssemblyCompany>www.42n.pl</AssemblyCompany>
<AssemblyCopyright>Copyright 2006-2008 42n</AssemblyCopyright>
<AssemblyProduct>$(ProjectName)</AssemblyProduct>
<AssemblyVersion>0.1</AssemblyVersion>
</PropertyGroup>
<!--
Internal tasks
-->
<Target Name="InternalNUnit" DependsOnTargets="_CreateTestResutsFolder" Condition=" '@(TestAssemblies)' != '' ">
<PropertyGroup>
<NUnitTestResultXmlFiles>$(TestResultsPath)\nunit-results.xml</NUnitTestResultXmlFiles>
</PropertyGroup>
<NUnit
ToolPath="$(NUnitPath)"
Assemblies="@(TestAssemblies)"
OutputXmlFile="$(NUnitTestResultXmlFiles)" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="NUnitExitCode"/>
</NUnit>
<Xslt
Inputs="$(NUnitTestResultXmlFiles)"
Xsl="$(NUnitPath)\xslt\Summary.xslt"
Output="$(TestResultsPath)\nunit-summary.txt" ContinueOnError="false"/>
<ReadLinesFromFile File="$(TestResultsPath)\nunit-summary.txt">
<Output TaskParameter="Lines" ItemName="NUnitSummaryLines"/>
</ReadLinesFromFile>
<Message Condition="$(NUnitExitCode) == '0'" Text="@(NUnitSummaryLines, '$(NEW_LINE)')" />
<Message Condition="$(NUnitExitCode) != '0'" Text="@(NUnitSummaryLines, '$(NEW_LINE)')" Importance="High" />
<Exec Command="notepad.exe $(TestResultsPath)\nunit-summary.txt" />
<Error Condition="$(NUnitExitCode) != '0'" Text="Some tests has $(NUnitExitCode) failed tests." />
</Target>
<Target Name="_CreateTestResutsFolder" Condition="$(TestResultsPath) != '' And !Exists('$(TestResultsPath)')">
<MakeDir Directories="$(TestResultsPath)"/>
</Target>
</Project>