pre_push 0.0.1 → 0.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/README.md +13 -2
- data/bin/pre-push +2 -2
- data/lib/pre_push/version.rb +1 -1
- data/lib/pre_push.rb +5 -4
- data/lib/runners/mspec/Machine.Specifications.Clr4.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.GallioAdapter.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.GallioAdapter.plugin +4 -4
- data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.6.1.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.7.0.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.Reporting.Templates.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.Reporting.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.SeleniumSupport.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.TDNetRunner.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.WatinSupport.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.WebDriverSupport.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.dll.tdnet +1 -1
- data/lib/runners/mspec/mspec-clr4.exe +0 -0
- data/lib/runners/mspec/mspec-clr4.exe.config +5 -8
- data/lib/runners/mspec/mspec-x86-clr4.exe +0 -0
- data/lib/runners/mspec/mspec-x86-clr4.exe.config +5 -8
- data/lib/runners/mspec/mspec-x86.exe +0 -0
- data/lib/runners/mspec/mspec.exe +0 -0
- data/lib/spec_helper.rb +2 -1
- data/spec/TestProj/TestProj/AllTests.cs +8 -1
- data/spec/TestProj/TestProj/TestProj.csproj +9 -15
- data/spec/TestProj/TestProj/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
- data/spec/TestProj/TestProj/packages.config +1 -1
- data/spec/TestProj/TestProj.suo +0 -0
- data/spec/TestProj/packages/Machine.Specifications.0.5.12/Machine.Specifications.0.5.12.nuspec +24 -0
- data/spec/TestProj/packages/NUnit.2.6.2/NUnit.2.6.2.nuspec +28 -0
- data/spec/TestProj/packages/xunit.1.9.1/xunit.1.9.1.nuspec +21 -0
- data/spec/mspec_integration_spec.rb +3 -1
- data/spec/nunit_integration_spec.rb +1 -0
- data/spec/pre_push_spec.rb +20 -0
- data/spec/prepush_validator_spec.rb +31 -0
- data/spec/xunit_integration_spec.rb +15 -0
- metadata +16 -25
- data/lib/runners/mspec/InstallDotCoverRunner.2.0.bat +0 -7
- data/lib/runners/mspec/InstallDotCoverRunner.2.1.bat +0 -7
- data/lib/runners/mspec/InstallDotCoverRunner.2.2.bat +0 -7
- data/lib/runners/mspec/InstallResharperRunner.6.1.bat +0 -10
- data/lib/runners/mspec/InstallResharperRunner.7.0.bat +0 -10
- data/lib/runners/mspec/InstallResharperRunner.7.1.bat +0 -10
- data/lib/runners/mspec/InstallTDNetRunner.bat +0 -16
- data/lib/runners/mspec/InstallTDNetRunnerSilent.bat +0 -16
- data/lib/runners/mspec/JetBrains.dotCover.Resources.dll +0 -0
- data/lib/runners/mspec/License.txt +0 -54
- data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.7.1.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.0.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.1.dll +0 -0
- data/lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.2.dll +0 -0
- data/lib/runners/mspec/Spark.dll +0 -0
- data/lib/runners/mspec/TestDriven.Framework.dll +0 -0
- data/lib/runners/mspec/install.ps1 +0 -6
- data/spec/TestProj/TestProj.5.1.ReSharper.user +0 -59
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# PrePush
|
2
2
|
|
3
|
-
|
3
|
+
Add a pre-push git hook on any of your repos to build & run tests of your .net project.
|
4
|
+
As of Git 1.8.2 you can use a pre-push hook (https://raw.github.com/git/git/master/Documentation/RelNotes/1.8.2.txt).
|
5
|
+
This gem will allow you to use a ready made hook to build your solution & run tests with either nunit, xunit or mspec.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -18,7 +20,16 @@ Or install it yourself as:
|
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
21
|
-
|
23
|
+
After installing the gem, cd to the git repository you wish to add the hook to
|
24
|
+
(the directory containing a .git dir) and from there use one of the following:
|
25
|
+
|
26
|
+
$ prepush
|
27
|
+
$ prepush mspec
|
28
|
+
$ prepush xunit191
|
29
|
+
|
30
|
+
the first will use nunit (2.6.2) for running your tests.
|
31
|
+
Insert the solution or assemblies paths.
|
32
|
+
If you're using mspec, you may need to specify the dlls you wish to test in the @assemblies array variable. Failing to do so may result in the error "Could not load file or assembly 'path/to/your.sln' or one of its dependencies. The module was expected to contain an assembly manifest."
|
22
33
|
|
23
34
|
## Contributing
|
24
35
|
|
data/bin/pre-push
CHANGED
@@ -7,8 +7,8 @@ class Executor
|
|
7
7
|
@test_runner = {runner}
|
8
8
|
###
|
9
9
|
|
10
|
-
@solution = "path/to/your.sln"
|
11
|
-
# @assemblies = ['path/to/first/test.dll','path/to/second/test.dll'] #uncomment & insert if different to the solution.
|
10
|
+
@solution = "path/to/your.sln" # the path to the solution to build
|
11
|
+
# @assemblies = ['path/to/first/test.dll','path/to/second/test.dll'] #uncomment & insert dlls to test if different to the solution.
|
12
12
|
include PrePush
|
13
13
|
end
|
14
14
|
|
data/lib/pre_push/version.rb
CHANGED
data/lib/pre_push.rb
CHANGED
@@ -27,7 +27,6 @@ module PrePush
|
|
27
27
|
success = true
|
28
28
|
assemblies.each do |assembly|
|
29
29
|
exe = @runners_exes[@test_runner]
|
30
|
-
puts "\"#{gem_lib}/runners/#{@test_runner}/#{exe}\" \"#{assembly}\""
|
31
30
|
system "\"#{gem_lib}/runners/#{@test_runner}/#{exe}\" \"#{assembly}\""
|
32
31
|
success &= $?.success?
|
33
32
|
end
|
@@ -38,10 +37,12 @@ module PrePush
|
|
38
37
|
def set_exes_cache
|
39
38
|
if (@runners_exes == nil || @runners_exes.empty?) then
|
40
39
|
@runners_exes = {}
|
41
|
-
|
40
|
+
bin = File.dirname(__FILE__)
|
42
41
|
runners_dir = "#{bin}/../lib/runners"
|
43
|
-
Dir.entries(runners_dir).each {|file| @runners_exes[file] = Dir.entries("#{runners_dir}/#{file}").detect{|f| f.end_with?('.exe')}}
|
44
|
-
@runners_exes['nunit262'] = 'nunit-console.exe'
|
42
|
+
Dir.entries(runners_dir).each {|file| @runners_exes[file] = @runner_exe || Dir.entries("#{runners_dir}/#{file}").detect{|f| f.end_with?('.exe')}}
|
43
|
+
@runners_exes['nunit262'] = @runner_exe || 'nunit-console.exe'
|
44
|
+
@runners_exes['mspec'] = @runner_exe || 'mspec-clr4.exe'
|
45
|
+
@runners_exes['xunit191'] = @runner_exe || 'xunit.console.exe'
|
45
46
|
end
|
46
47
|
end
|
47
48
|
end
|
Binary file
|
Binary file
|
@@ -4,7 +4,7 @@
|
|
4
4
|
xmlns="http://www.gallio.org/">
|
5
5
|
<traits>
|
6
6
|
<name>Machine Specifications Adapter Plugin</name>
|
7
|
-
<version>0.5.
|
7
|
+
<version>0.5.9.0</version>
|
8
8
|
<description>Provides support for running MSpec within Gallio. Requires the assemblies from MSpec.</description>
|
9
9
|
</traits>
|
10
10
|
|
@@ -20,11 +20,11 @@
|
|
20
20
|
</files>
|
21
21
|
|
22
22
|
<assemblies>
|
23
|
-
<assembly fullName="Machine.Specifications.GallioAdapter, Version=0.5.
|
23
|
+
<assembly fullName="Machine.Specifications.GallioAdapter, Version=0.5.9.0, Culture=neutral, PublicKeyToken=null"
|
24
24
|
codeBase="Machine.Specifications.GallioAdapter.dll"
|
25
25
|
qualifyPartialName="true" />
|
26
26
|
|
27
|
-
<assembly fullName="Machine.Specifications, Version=0.5.
|
27
|
+
<assembly fullName="Machine.Specifications, Version=0.5.9.0, Culture=neutral, PublicKeyToken=5c474de7a495cff1"
|
28
28
|
codeBase="Machine.Specifications.dll" />
|
29
29
|
</assemblies>
|
30
30
|
|
@@ -35,7 +35,7 @@
|
|
35
35
|
<traits>
|
36
36
|
<name>Machine Specifications</name>
|
37
37
|
<frameworkAssemblies>Machine.Specifications</frameworkAssemblies>
|
38
|
-
<version>0.5.
|
38
|
+
<version>0.5.9.0</version>
|
39
39
|
<fileTypes>Assembly</fileTypes>
|
40
40
|
</traits>
|
41
41
|
</component>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<TestRunner>
|
2
|
-
<FriendlyName>Machine.Specifications 0.5.
|
2
|
+
<FriendlyName>Machine.Specifications 0.5.9-27f7b96</FriendlyName>
|
3
3
|
<AssemblyPath>Machine.Specifications.TDNetRunner.dll</AssemblyPath>
|
4
4
|
<TypeName>Machine.Specifications.TDNetRunner.SpecificationRunner</TypeName>
|
5
5
|
</TestRunner>
|
Binary file
|
@@ -1,9 +1,6 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<configuration>
|
3
|
-
<startup useLegacyV2RuntimeActivationPolicy="true">
|
4
|
-
<supportedRuntime version="v4.0"/>
|
5
|
-
</startup>
|
6
|
-
<runtime>
|
7
|
-
<loadFromRemoteSources enabled="true"/>
|
8
|
-
</runtime>
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<configuration>
|
3
|
+
<startup useLegacyV2RuntimeActivationPolicy="true">
|
4
|
+
<supportedRuntime version="v4.0" />
|
5
|
+
</startup>
|
9
6
|
</configuration>
|
Binary file
|
@@ -1,9 +1,6 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<configuration>
|
3
|
-
<startup useLegacyV2RuntimeActivationPolicy="true">
|
4
|
-
<supportedRuntime version="v4.0"/>
|
5
|
-
</startup>
|
6
|
-
<runtime>
|
7
|
-
<loadFromRemoteSources enabled="true"/>
|
8
|
-
</runtime>
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<configuration>
|
3
|
+
<startup useLegacyV2RuntimeActivationPolicy="true">
|
4
|
+
<supportedRuntime version="v4.0" />
|
5
|
+
</startup>
|
9
6
|
</configuration>
|
Binary file
|
data/lib/runners/mspec/mspec.exe
CHANGED
Binary file
|
data/lib/spec_helper.rb
CHANGED
@@ -5,6 +5,13 @@ using Assert = Xunit.Assert;
|
|
5
5
|
|
6
6
|
namespace TestProj
|
7
7
|
{
|
8
|
+
class Program
|
9
|
+
{
|
10
|
+
static void Main(string[] args)
|
11
|
+
{
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
8
15
|
[TestFixture]
|
9
16
|
public class NunitTests
|
10
17
|
{
|
@@ -26,6 +33,6 @@ namespace TestProj
|
|
26
33
|
|
27
34
|
public class MspecTests
|
28
35
|
{
|
29
|
-
|
36
|
+
Machine.Specifications.It should_equal_one = () => 1.ShouldEqual(1);
|
30
37
|
}
|
31
38
|
}
|
@@ -6,12 +6,14 @@
|
|
6
6
|
<ProductVersion>8.0.30703</ProductVersion>
|
7
7
|
<SchemaVersion>2.0</SchemaVersion>
|
8
8
|
<ProjectGuid>{D29E34F2-D326-48EB-9354-D6882867A7A3}</ProjectGuid>
|
9
|
-
<OutputType>
|
9
|
+
<OutputType>Exe</OutputType>
|
10
10
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
11
11
|
<RootNamespace>TestProj</RootNamespace>
|
12
12
|
<AssemblyName>TestProj</AssemblyName>
|
13
|
-
<TargetFrameworkVersion>
|
13
|
+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
14
14
|
<FileAlignment>512</FileAlignment>
|
15
|
+
<TargetFrameworkProfile>
|
16
|
+
</TargetFrameworkProfile>
|
15
17
|
</PropertyGroup>
|
16
18
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
17
19
|
<DebugSymbols>true</DebugSymbols>
|
@@ -30,26 +32,18 @@
|
|
30
32
|
<ErrorReport>prompt</ErrorReport>
|
31
33
|
<WarningLevel>4</WarningLevel>
|
32
34
|
</PropertyGroup>
|
35
|
+
<PropertyGroup>
|
36
|
+
<StartupObject />
|
37
|
+
</PropertyGroup>
|
33
38
|
<ItemGroup>
|
34
39
|
<Reference Include="Machine.Specifications, Version=0.5.12.0, Culture=neutral, processorArchitecture=MSIL">
|
35
|
-
<
|
36
|
-
<HintPath>..\packages\Machine.Specifications.0.5.12\lib\net40\Machine.Specifications.dll</HintPath>
|
37
|
-
</Reference>
|
38
|
-
<Reference Include="Machine.Specifications.Clr4, Version=0.5.12.0, Culture=neutral, processorArchitecture=MSIL">
|
39
|
-
<SpecificVersion>False</SpecificVersion>
|
40
|
-
<HintPath>..\packages\Machine.Specifications.0.5.12\lib\net40\Machine.Specifications.Clr4.dll</HintPath>
|
40
|
+
<HintPath>..\packages\Machine.Specifications.0.5.12\lib\net20\Machine.Specifications.dll</HintPath>
|
41
41
|
</Reference>
|
42
42
|
<Reference Include="nunit.framework, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
|
43
43
|
<HintPath>..\packages\NUnit.2.6.2\lib\nunit.framework.dll</HintPath>
|
44
44
|
</Reference>
|
45
45
|
<Reference Include="System" />
|
46
|
-
<Reference Include="
|
47
|
-
<Reference Include="System.Xml.Linq" />
|
48
|
-
<Reference Include="System.Data.DataSetExtensions" />
|
49
|
-
<Reference Include="Microsoft.CSharp" />
|
50
|
-
<Reference Include="System.Data" />
|
51
|
-
<Reference Include="System.Xml" />
|
52
|
-
<Reference Include="xunit, Version=1.9.1.1600, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
|
46
|
+
<Reference Include="xunit">
|
53
47
|
<HintPath>..\packages\xunit.1.9.1\lib\net20\xunit.dll</HintPath>
|
54
48
|
</Reference>
|
55
49
|
</ItemGroup>
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
2
|
<packages>
|
3
|
-
<package id="Machine.Specifications" version="0.5.12" targetFramework="
|
3
|
+
<package id="Machine.Specifications" version="0.5.12" targetFramework="net35" />
|
4
4
|
<package id="NUnit" version="2.6.2" targetFramework="net40" />
|
5
5
|
<package id="xunit" version="1.9.1" targetFramework="net40" />
|
6
6
|
</packages>
|
data/spec/TestProj/TestProj.suo
CHANGED
Binary file
|
data/spec/TestProj/packages/Machine.Specifications.0.5.12/Machine.Specifications.0.5.12.nuspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
3
|
+
<metadata>
|
4
|
+
<id>Machine.Specifications</id>
|
5
|
+
<version>0.5.12</version>
|
6
|
+
<title>Machine.Specifications</title>
|
7
|
+
<authors>Aaron Jensen, Alexander Groß, et al.</authors>
|
8
|
+
<owners>Aaron Jensen, Alexander Groß, et al.</owners>
|
9
|
+
<licenseUrl>http://github.com/machine/machine.specifications/blob/master/License.txt</licenseUrl>
|
10
|
+
<projectUrl>http://github.com/machine/machine.specifications</projectUrl>
|
11
|
+
<iconUrl>http://github.com/machine/machine.specifications/raw/master/Misc/Machine.Specifications-128x128.png</iconUrl>
|
12
|
+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
13
|
+
<description>Machine.Specifications is a Context/Specification framework geared towards removing language noise and simplifying tests.</description>
|
14
|
+
<summary>Machine.Specifications Context/Specification framework</summary>
|
15
|
+
<releaseNotes />
|
16
|
+
<copyright />
|
17
|
+
<language>en-US</language>
|
18
|
+
<tags>test unit testing context specification bdd tdd mspec</tags>
|
19
|
+
<references>
|
20
|
+
<reference file="Machine.Specifications.dll" />
|
21
|
+
<reference file="Machine.Specifications.Clr4.dll" />
|
22
|
+
</references>
|
23
|
+
</metadata>
|
24
|
+
</package>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
3
|
+
<metadata>
|
4
|
+
<id>NUnit</id>
|
5
|
+
<version>2.6.2</version>
|
6
|
+
<title>NUnit</title>
|
7
|
+
<authors>Charlie Poole</authors>
|
8
|
+
<owners>Charlie Poole</owners>
|
9
|
+
<licenseUrl>http://nunit.org/nuget/license.html</licenseUrl>
|
10
|
+
<projectUrl>http://nunit.org/</projectUrl>
|
11
|
+
<iconUrl>http://nunit.org/nuget/nunit_32x32.png</iconUrl>
|
12
|
+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
13
|
+
<description>NUnit features a fluent assert syntax, parameterized, generic and theory tests and is user-extensible. A number of runners, both from the NUnit project and by third parties, are able to execute NUnit tests.
|
14
|
+
|
15
|
+
Version 2.6 is the seventh major release of this well-known and well-tested programming tool.
|
16
|
+
|
17
|
+
This package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner.</description>
|
18
|
+
<summary>NUnit is a unit-testing framework for all .Net languages with a strong TDD focus.</summary>
|
19
|
+
<releaseNotes>Version 2.6 is the seventh major release of NUnit.
|
20
|
+
|
21
|
+
Unlike earlier versions, this package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner.
|
22
|
+
|
23
|
+
The nunit.mocks assembly is now provided by the NUnit.Mocks package. The pnunit.framework assembly is provided by the pNUnit package.</releaseNotes>
|
24
|
+
<copyright />
|
25
|
+
<language>en-US</language>
|
26
|
+
<tags>test testing tdd framework fluent assert theory plugin addin</tags>
|
27
|
+
</metadata>
|
28
|
+
</package>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
3
|
+
<metadata>
|
4
|
+
<id>xunit</id>
|
5
|
+
<version>1.9.1</version>
|
6
|
+
<title>xUnit.net</title>
|
7
|
+
<authors>James Newkirk, Brad Wilson</authors>
|
8
|
+
<owners>James Newkirk, Brad Wilson</owners>
|
9
|
+
<licenseUrl>http://xunit.codeplex.com/license</licenseUrl>
|
10
|
+
<projectUrl>http://xunit.codeplex.com/</projectUrl>
|
11
|
+
<iconUrl>http://download.codeplex.com/Download?ProjectName=xunit&DownloadId=365445</iconUrl>
|
12
|
+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
13
|
+
<description>xUnit.net is a developer testing framework, built to support Test Driven Development, with a design goal of extreme simplicity and alignment with framework features.</description>
|
14
|
+
<releaseNotes />
|
15
|
+
<copyright />
|
16
|
+
<language />
|
17
|
+
<references>
|
18
|
+
<reference file="xunit.dll" />
|
19
|
+
</references>
|
20
|
+
</metadata>
|
21
|
+
</package>
|
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
class MspecRunnerTester
|
4
|
-
@solution = "
|
4
|
+
@solution = "spec/TestProj/TestProj/TestProj.csproj"
|
5
|
+
@assemblies = ["C:/Code/Ruby Projects/prepush/spec/TestProj/TestProj/bin/Debug/TestProj.exe"]
|
5
6
|
@test_runner = 'mspec'
|
7
|
+
@runner_exe = 'mspec-clr4.exe' # will be selected by default
|
6
8
|
include PrePush
|
7
9
|
end
|
8
10
|
|
data/spec/pre_push_spec.rb
CHANGED
@@ -5,6 +5,19 @@ class Dummy
|
|
5
5
|
include PrePush
|
6
6
|
end
|
7
7
|
|
8
|
+
class SetExeDummy
|
9
|
+
@solution = 'meh'
|
10
|
+
@runner_exe = 'bar.exe'
|
11
|
+
@test_runner = 'nunit262'
|
12
|
+
def self.get_runner_exe(key)
|
13
|
+
@runners_exes[key]
|
14
|
+
end
|
15
|
+
def self.set_exes
|
16
|
+
self.build
|
17
|
+
end
|
18
|
+
include PrePush
|
19
|
+
end
|
20
|
+
|
8
21
|
class NilClass
|
9
22
|
def success?
|
10
23
|
end
|
@@ -33,4 +46,11 @@ describe PrePush do
|
|
33
46
|
Dummy.run
|
34
47
|
end
|
35
48
|
end
|
49
|
+
describe 'set_exes_cache' do
|
50
|
+
it 'should add predefined runner exe' do
|
51
|
+
SetExeDummy.should_receive("system").with(/meh$/)
|
52
|
+
SetExeDummy.set_exes
|
53
|
+
SetExeDummy.get_runner_exe('nunit262').should == 'bar.exe'
|
54
|
+
end
|
55
|
+
end
|
36
56
|
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module PrePush
|
4
|
+
describe Validator do
|
5
|
+
describe 'validate' do
|
6
|
+
it "should fail when a .git dir doesn't exit" do
|
7
|
+
Dir.stub('exists?').with('.git').and_return(false)
|
8
|
+
PrePush::Validator.should_receive('puts').with("Couldn't find a git repository")
|
9
|
+
PrePush::Validator.validate('nunit262').should be false
|
10
|
+
end
|
11
|
+
it "should fail when a .git/hooks dir doesn't exit" do
|
12
|
+
Dir.stub('exists?').with('.git').and_return(true)
|
13
|
+
Dir.stub('exists?').with('.git/hooks').and_return(false)
|
14
|
+
PrePush::Validator.should_receive('puts').with("Couldn't find the git hooks dir")
|
15
|
+
PrePush::Validator.validate('nunit262').should be false
|
16
|
+
end
|
17
|
+
it "should fail when runner not found" do
|
18
|
+
Dir.stub('exists?').with('.git').and_return(true)
|
19
|
+
Dir.stub('exists?').with('.git/hooks').and_return(true)
|
20
|
+
PrePush::Validator.should_receive('puts').with("Couldn't find test runner non-existant-runner")
|
21
|
+
PrePush::Validator.validate('non-existant-runner').should be false
|
22
|
+
end
|
23
|
+
it "should validate when runner found" do
|
24
|
+
Dir.stub('exists?').with('.git').and_return(true)
|
25
|
+
Dir.stub('exists?').with('.git/hooks').and_return(true)
|
26
|
+
Dir.stub('entries').with(/lib\/runners$/).and_return(['existant-runner'])
|
27
|
+
PrePush::Validator.validate('existant-runner').should be true
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class XunitRunnerTester
|
4
|
+
@solution = "spec/TestProj/TestProj.sln"
|
5
|
+
@assemblies = ["spec/TestProj/TestProj/bin/Debug/TestProj.exe"]
|
6
|
+
@test_runner = 'xunit191'
|
7
|
+
@runner_exe = 'xunit.console.exe' # will be selected by default
|
8
|
+
include PrePush
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "XunitRunner" do
|
12
|
+
it "should compile and run tests" do
|
13
|
+
XunitRunnerTester.run
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pre_push
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1
|
4
|
+
version: 0.0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement: &
|
16
|
+
requirement: &20179680 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.3'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *20179680
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &20178768 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *20178768
|
36
36
|
description: adding a pre-push hook for git to compile & run tests
|
37
37
|
email:
|
38
38
|
- nievegoor@gmail.com
|
@@ -54,23 +54,12 @@ files:
|
|
54
54
|
- lib/prepush_validator.rb
|
55
55
|
- lib/runners/mspec/CommandLine.dll
|
56
56
|
- lib/runners/mspec/CommandLine.xml
|
57
|
-
- lib/runners/mspec/InstallDotCoverRunner.2.0.bat
|
58
|
-
- lib/runners/mspec/InstallDotCoverRunner.2.1.bat
|
59
|
-
- lib/runners/mspec/InstallDotCoverRunner.2.2.bat
|
60
|
-
- lib/runners/mspec/InstallResharperRunner.6.1.bat
|
61
|
-
- lib/runners/mspec/InstallResharperRunner.7.0.bat
|
62
|
-
- lib/runners/mspec/InstallResharperRunner.7.1.bat
|
63
|
-
- lib/runners/mspec/InstallTDNetRunner.bat
|
64
|
-
- lib/runners/mspec/InstallTDNetRunnerSilent.bat
|
65
|
-
- lib/runners/mspec/JetBrains.dotCover.Resources.dll
|
66
|
-
- lib/runners/mspec/License.txt
|
67
57
|
- lib/runners/mspec/Machine.Specifications.Clr4.dll
|
68
58
|
- lib/runners/mspec/Machine.Specifications.GallioAdapter.dll
|
69
59
|
- lib/runners/mspec/Machine.Specifications.GallioAdapter.plugin
|
70
60
|
- lib/runners/mspec/Machine.Specifications.ReSharperRunner.6.0.dll
|
71
61
|
- lib/runners/mspec/Machine.Specifications.ReSharperRunner.6.1.dll
|
72
62
|
- lib/runners/mspec/Machine.Specifications.ReSharperRunner.7.0.dll
|
73
|
-
- lib/runners/mspec/Machine.Specifications.ReSharperRunner.7.1.dll
|
74
63
|
- lib/runners/mspec/Machine.Specifications.Reporting.Templates.dll
|
75
64
|
- lib/runners/mspec/Machine.Specifications.Reporting.dll
|
76
65
|
- lib/runners/mspec/Machine.Specifications.SeleniumSupport.dll
|
@@ -79,12 +68,6 @@ files:
|
|
79
68
|
- lib/runners/mspec/Machine.Specifications.WebDriverSupport.dll
|
80
69
|
- lib/runners/mspec/Machine.Specifications.dll
|
81
70
|
- lib/runners/mspec/Machine.Specifications.dll.tdnet
|
82
|
-
- lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.0.dll
|
83
|
-
- lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.1.dll
|
84
|
-
- lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.2.dll
|
85
|
-
- lib/runners/mspec/Spark.dll
|
86
|
-
- lib/runners/mspec/TestDriven.Framework.dll
|
87
|
-
- lib/runners/mspec/install.ps1
|
88
71
|
- lib/runners/mspec/mspec-clr4.exe
|
89
72
|
- lib/runners/mspec/mspec-clr4.exe.config
|
90
73
|
- lib/runners/mspec/mspec-x86-clr4.exe
|
@@ -122,7 +105,6 @@ files:
|
|
122
105
|
- lib/runners/xunit191/xunit.xml
|
123
106
|
- lib/spec_helper.rb
|
124
107
|
- pre_push.gemspec
|
125
|
-
- spec/TestProj/TestProj.5.1.ReSharper.user
|
126
108
|
- spec/TestProj/TestProj.sln
|
127
109
|
- spec/TestProj/TestProj.suo
|
128
110
|
- spec/TestProj/TestProj/AllTests.cs
|
@@ -132,6 +114,7 @@ files:
|
|
132
114
|
- spec/TestProj/TestProj/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
|
133
115
|
- spec/TestProj/TestProj/packages.config
|
134
116
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/Machine.Specifications.0.5.12.nupkg
|
117
|
+
- spec/TestProj/packages/Machine.Specifications.0.5.12/Machine.Specifications.0.5.12.nuspec
|
135
118
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.TDNetRunner.dll
|
136
119
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.dll
|
137
120
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.dll.tdnet
|
@@ -178,6 +161,7 @@ files:
|
|
178
161
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-x86.exe
|
179
162
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec.exe
|
180
163
|
- spec/TestProj/packages/NUnit.2.6.2/NUnit.2.6.2.nupkg
|
164
|
+
- spec/TestProj/packages/NUnit.2.6.2/NUnit.2.6.2.nuspec
|
181
165
|
- spec/TestProj/packages/NUnit.2.6.2/lib/nunit.framework.dll
|
182
166
|
- spec/TestProj/packages/NUnit.2.6.2/lib/nunit.framework.xml
|
183
167
|
- spec/TestProj/packages/NUnit.2.6.2/license.txt
|
@@ -189,9 +173,12 @@ files:
|
|
189
173
|
- spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.runner.utility.dll
|
190
174
|
- spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.xml
|
191
175
|
- spec/TestProj/packages/xunit.1.9.1/xunit.1.9.1.nupkg
|
176
|
+
- spec/TestProj/packages/xunit.1.9.1/xunit.1.9.1.nuspec
|
192
177
|
- spec/mspec_integration_spec.rb
|
193
178
|
- spec/nunit_integration_spec.rb
|
194
179
|
- spec/pre_push_spec.rb
|
180
|
+
- spec/prepush_validator_spec.rb
|
181
|
+
- spec/xunit_integration_spec.rb
|
195
182
|
homepage: ''
|
196
183
|
licenses:
|
197
184
|
- MIT
|
@@ -218,7 +205,6 @@ signing_key:
|
|
218
205
|
specification_version: 3
|
219
206
|
summary: adding a pre-push hook for git to compile & run tests
|
220
207
|
test_files:
|
221
|
-
- spec/TestProj/TestProj.5.1.ReSharper.user
|
222
208
|
- spec/TestProj/TestProj.sln
|
223
209
|
- spec/TestProj/TestProj.suo
|
224
210
|
- spec/TestProj/TestProj/AllTests.cs
|
@@ -228,6 +214,7 @@ test_files:
|
|
228
214
|
- spec/TestProj/TestProj/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
|
229
215
|
- spec/TestProj/TestProj/packages.config
|
230
216
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/Machine.Specifications.0.5.12.nupkg
|
217
|
+
- spec/TestProj/packages/Machine.Specifications.0.5.12/Machine.Specifications.0.5.12.nuspec
|
231
218
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.TDNetRunner.dll
|
232
219
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.dll
|
233
220
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.dll.tdnet
|
@@ -274,6 +261,7 @@ test_files:
|
|
274
261
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-x86.exe
|
275
262
|
- spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec.exe
|
276
263
|
- spec/TestProj/packages/NUnit.2.6.2/NUnit.2.6.2.nupkg
|
264
|
+
- spec/TestProj/packages/NUnit.2.6.2/NUnit.2.6.2.nuspec
|
277
265
|
- spec/TestProj/packages/NUnit.2.6.2/lib/nunit.framework.dll
|
278
266
|
- spec/TestProj/packages/NUnit.2.6.2/lib/nunit.framework.xml
|
279
267
|
- spec/TestProj/packages/NUnit.2.6.2/license.txt
|
@@ -285,6 +273,9 @@ test_files:
|
|
285
273
|
- spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.runner.utility.dll
|
286
274
|
- spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.xml
|
287
275
|
- spec/TestProj/packages/xunit.1.9.1/xunit.1.9.1.nupkg
|
276
|
+
- spec/TestProj/packages/xunit.1.9.1/xunit.1.9.1.nuspec
|
288
277
|
- spec/mspec_integration_spec.rb
|
289
278
|
- spec/nunit_integration_spec.rb
|
290
279
|
- spec/pre_push_spec.rb
|
280
|
+
- spec/prepush_validator_spec.rb
|
281
|
+
- spec/xunit_integration_spec.rb
|
@@ -1,7 +0,0 @@
|
|
1
|
-
mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins" 2> NUL
|
2
|
-
mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec" 2> NUL
|
3
|
-
copy /y Machine.Specifications.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec"
|
4
|
-
copy /y Machine.Specifications.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec" > NUL
|
5
|
-
copy /y Machine.Specifications.dotCoverRunner.2.0.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec"
|
6
|
-
copy /y Machine.Specifications.dotCoverRunner.2.0.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec" > NUL
|
7
|
-
pause
|
@@ -1,7 +0,0 @@
|
|
1
|
-
mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins" 2> NUL
|
2
|
-
mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec" 2> NUL
|
3
|
-
copy /y Machine.Specifications.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec"
|
4
|
-
copy /y Machine.Specifications.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec" > NUL
|
5
|
-
copy /y Machine.Specifications.dotCoverRunner.2.1.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec"
|
6
|
-
copy /y Machine.Specifications.dotCoverRunner.2.1.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec" > NUL
|
7
|
-
pause
|
@@ -1,7 +0,0 @@
|
|
1
|
-
mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins" 2> NUL
|
2
|
-
mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec" 2> NUL
|
3
|
-
copy /y Machine.Specifications.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec"
|
4
|
-
copy /y Machine.Specifications.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec" > NUL
|
5
|
-
copy /y Machine.Specifications.dotCoverRunner.2.2.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec"
|
6
|
-
copy /y Machine.Specifications.dotCoverRunner.2.2.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec" > NUL
|
7
|
-
pause
|
@@ -1,10 +0,0 @@
|
|
1
|
-
del "%APPDATA%\JetBrains\ReSharper\v6.1\vs9.0\Plugins\Machine.Specifications.*" 2> NUL
|
2
|
-
del "%APPDATA%\JetBrains\ReSharper\v6.1\vs10.0\Plugins\Machine.Specifications.*" 2> NUL
|
3
|
-
|
4
|
-
mkdir "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins" 2> NUL
|
5
|
-
mkdir "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec" 2> NUL
|
6
|
-
copy /y Machine.Specifications.dll "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec"
|
7
|
-
copy /y Machine.Specifications.pdb "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec" > NUL
|
8
|
-
copy /y Machine.Specifications.ReSharperRunner.6.1.dll "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec"
|
9
|
-
copy /y Machine.Specifications.ReSharperRunner.6.1.pdb "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec" > NUL
|
10
|
-
pause
|
@@ -1,10 +0,0 @@
|
|
1
|
-
del "%APPDATA%\JetBrains\ReSharper\v7.0\vs10.0\Plugins\Machine.Specifications.*" 2> NUL
|
2
|
-
del "%APPDATA%\JetBrains\ReSharper\v7.0\vs11.0\Plugins\Machine.Specifications.*" 2> NUL
|
3
|
-
|
4
|
-
mkdir "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins" 2> NUL
|
5
|
-
mkdir "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec" 2> NUL
|
6
|
-
copy /y Machine.Specifications.dll "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec"
|
7
|
-
copy /y Machine.Specifications.pdb "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec" > NUL
|
8
|
-
copy /y Machine.Specifications.ReSharperRunner.7.0.dll "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec"
|
9
|
-
copy /y Machine.Specifications.ReSharperRunner.7.0.pdb "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec" > NUL
|
10
|
-
pause
|
@@ -1,10 +0,0 @@
|
|
1
|
-
del "%APPDATA%\JetBrains\ReSharper\v7.1\vs10.0\Plugins\Machine.Specifications.*" 2> NUL
|
2
|
-
del "%APPDATA%\JetBrains\ReSharper\v7.1\vs11.0\Plugins\Machine.Specifications.*" 2> NUL
|
3
|
-
|
4
|
-
mkdir "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins" 2> NUL
|
5
|
-
mkdir "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec" 2> NUL
|
6
|
-
copy /y Machine.Specifications.dll "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec"
|
7
|
-
copy /y Machine.Specifications.pdb "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec" > NUL
|
8
|
-
copy /y Machine.Specifications.ReSharperRunner.7.1.dll "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec"
|
9
|
-
copy /y Machine.Specifications.ReSharperRunner.7.1.pdb "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec" > NUL
|
10
|
-
pause
|
@@ -1,16 +0,0 @@
|
|
1
|
-
@echo off & if not "%ECHO%"=="" echo %ECHO%
|
2
|
-
|
3
|
-
setlocal
|
4
|
-
set LOCALDIR=%~dp0
|
5
|
-
|
6
|
-
echo Windows Registry Editor Version 5.00 > MSpecTDNet.reg
|
7
|
-
echo [HKEY_CURRENT_USER\Software\MutantDesign\TestDriven.NET\TestRunners\MSpec] >> MSpecTDNet.reg
|
8
|
-
echo "Application"="" >> MSpecTDNet.reg
|
9
|
-
echo "AssemblyPath"="%LOCALDIR:\=\\%Machine.Specifications.TDNetRunner.dll" >> MSpecTDNet.reg
|
10
|
-
echo "TargetFrameworkAssemblyName"="Machine.Specifications" >> MSpecTDNet.reg
|
11
|
-
echo "TypeName"="Machine.Specifications.TDNetRunner.SpecificationRunner" >> MSpecTDNet.reg
|
12
|
-
echo @="5" >> MSpecTDNet.reg
|
13
|
-
|
14
|
-
regedit MSpecTDNet.reg
|
15
|
-
|
16
|
-
del MSpecTDNet.reg
|
@@ -1,16 +0,0 @@
|
|
1
|
-
@echo off & if not "%ECHO%"=="" echo %ECHO%
|
2
|
-
|
3
|
-
setlocal
|
4
|
-
set LOCALDIR=%~dp0
|
5
|
-
|
6
|
-
echo Windows Registry Editor Version 5.00 > MSpecTDNet.reg
|
7
|
-
echo [HKEY_CURRENT_USER\Software\MutantDesign\TestDriven.NET\TestRunners\MSpec] >> MSpecTDNet.reg
|
8
|
-
echo "Application"="" >> MSpecTDNet.reg
|
9
|
-
echo "AssemblyPath"="%LOCALDIR:\=\\%Machine.Specifications.TDNetRunner.dll" >> MSpecTDNet.reg
|
10
|
-
echo "TargetFrameworkAssemblyName"="Machine.Specifications" >> MSpecTDNet.reg
|
11
|
-
echo "TypeName"="Machine.Specifications.TDNetRunner.SpecificationRunner" >> MSpecTDNet.reg
|
12
|
-
echo @="5" >> MSpecTDNet.reg
|
13
|
-
|
14
|
-
regedit /s MSpecTDNet.reg
|
15
|
-
|
16
|
-
del MSpecTDNet.reg
|
Binary file
|
@@ -1,54 +0,0 @@
|
|
1
|
-
Copyright (c) 2008 Machine Project
|
2
|
-
Portions Copyright (c) 2008 Jacob Lewallen, Aaron Jensen
|
3
|
-
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
6
|
-
in the Software without restriction, including without limitation the rights
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
9
|
-
furnished to do so, subject to the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be included in
|
12
|
-
all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
20
|
-
THE SOFTWARE.
|
21
|
-
|
22
|
-
*****************************
|
23
|
-
Some parts licensed under MS-PL
|
24
|
-
*****************************
|
25
|
-
|
26
|
-
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
|
27
|
-
|
28
|
-
1. Definitions
|
29
|
-
|
30
|
-
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.
|
31
|
-
|
32
|
-
A "contribution" is the original software, or any additions or changes to the software.
|
33
|
-
|
34
|
-
A "contributor" is any person that distributes its contribution under this license.
|
35
|
-
|
36
|
-
"Licensed patents" are a contributor's patent claims that read directly on its contribution.
|
37
|
-
|
38
|
-
2. Grant of Rights
|
39
|
-
|
40
|
-
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
|
41
|
-
|
42
|
-
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
|
43
|
-
|
44
|
-
3. Conditions and Limitations
|
45
|
-
|
46
|
-
(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
|
47
|
-
|
48
|
-
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
|
49
|
-
|
50
|
-
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
|
51
|
-
|
52
|
-
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
|
53
|
-
|
54
|
-
(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/runners/mspec/Spark.dll
DELETED
Binary file
|
Binary file
|
@@ -1,59 +0,0 @@
|
|
1
|
-
<Configuration>
|
2
|
-
<SettingsComponent>
|
3
|
-
<string />
|
4
|
-
<integer />
|
5
|
-
<boolean>
|
6
|
-
<setting name="SolutionAnalysisEnabled">False</setting>
|
7
|
-
</boolean>
|
8
|
-
</SettingsComponent>
|
9
|
-
<CompletionStatisticsManager>
|
10
|
-
<ItemStatistics item="Default">
|
11
|
-
<Item value="TestFixture" priority="0" />
|
12
|
-
<Item value="public" priority="3" />
|
13
|
-
<Item value="class" priority="1" />
|
14
|
-
<Item value="Xunit" priority="0" />
|
15
|
-
<Item value="void" priority="0" />
|
16
|
-
<Item value="Fact" priority="0" />
|
17
|
-
<Item value="Assert" priority="0" />
|
18
|
-
<Item value="Test" priority="0" />
|
19
|
-
<Item value="NUnit" priority="0" />
|
20
|
-
<Item value="Framework" priority="0" />
|
21
|
-
<Item value="It" priority="0" />
|
22
|
-
<Item value="CreateLambda" priority="0" />
|
23
|
-
</ItemStatistics>
|
24
|
-
<ItemStatistics item="Qualified:@Xunit.Assert">
|
25
|
-
<Item value="Equal`1" priority="0" />
|
26
|
-
</ItemStatistics>
|
27
|
-
<ItemStatistics item="Qualified:@NUnit.Framework.Assert">
|
28
|
-
<Item value="Equals`0" priority="0" />
|
29
|
-
<Item value="AreEqual`0" priority="0" />
|
30
|
-
</ItemStatistics>
|
31
|
-
<ItemStatistics item="Qualified:System.Int32">
|
32
|
-
<Item value="ShouldEqual`1" priority="0" />
|
33
|
-
</ItemStatistics>
|
34
|
-
</CompletionStatisticsManager>
|
35
|
-
<RecentFiles>
|
36
|
-
<RecentFiles>
|
37
|
-
<File id="D29E34F2-D326-48EB-9354-D6882867A7A3/d:Properties/f:AssemblyInfo.cs" caret="1000" fromTop="23" />
|
38
|
-
<File id="D29E34F2-D326-48EB-9354-D6882867A7A3/f:AllTests.cs" caret="229" fromTop="11" />
|
39
|
-
</RecentFiles>
|
40
|
-
<RecentEdits>
|
41
|
-
<File id="D29E34F2-D326-48EB-9354-D6882867A7A3/f:AllTests.cs" caret="425" fromTop="17" />
|
42
|
-
<File id="D29E34F2-D326-48EB-9354-D6882867A7A3/f:AllTests.cs" caret="303" fromTop="16" />
|
43
|
-
<File id="D29E34F2-D326-48EB-9354-D6882867A7A3/f:AllTests.cs" caret="559" fromTop="26" />
|
44
|
-
<File id="D29E34F2-D326-48EB-9354-D6882867A7A3/f:AllTests.cs" caret="177" fromTop="7" />
|
45
|
-
<File id="D29E34F2-D326-48EB-9354-D6882867A7A3/f:AllTests.cs" caret="287" fromTop="11" />
|
46
|
-
<File id="D29E34F2-D326-48EB-9354-D6882867A7A3/f:AllTests.cs" caret="0" fromTop="0" />
|
47
|
-
</RecentEdits>
|
48
|
-
</RecentFiles>
|
49
|
-
<NAntValidationSettings>
|
50
|
-
<NAntPath value="" />
|
51
|
-
</NAntValidationSettings>
|
52
|
-
<UnitTestRunner>
|
53
|
-
<Providers />
|
54
|
-
</UnitTestRunner>
|
55
|
-
<UnitTestRunnerNUnit>
|
56
|
-
<NUnitInstallDir>C:\Program Files (x86)\NUnit 2.6.2\bin\net-2.0\</NUnitInstallDir>
|
57
|
-
<UseAddins>Never</UseAddins>
|
58
|
-
</UnitTestRunnerNUnit>
|
59
|
-
</Configuration>
|