pre_push 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. data/.gitignore +21 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +29 -0
  5. data/Rakefile +5 -0
  6. data/bin/pre-push +15 -0
  7. data/bin/prepush +19 -0
  8. data/lib/pre_push/version.rb +3 -0
  9. data/lib/pre_push.rb +53 -0
  10. data/lib/prepush_validator.rb +23 -0
  11. data/lib/runners/mspec/CommandLine.dll +0 -0
  12. data/lib/runners/mspec/CommandLine.xml +504 -0
  13. data/lib/runners/mspec/InstallDotCoverRunner.2.0.bat +7 -0
  14. data/lib/runners/mspec/InstallDotCoverRunner.2.1.bat +7 -0
  15. data/lib/runners/mspec/InstallDotCoverRunner.2.2.bat +7 -0
  16. data/lib/runners/mspec/InstallResharperRunner.6.1.bat +10 -0
  17. data/lib/runners/mspec/InstallResharperRunner.7.0.bat +10 -0
  18. data/lib/runners/mspec/InstallResharperRunner.7.1.bat +10 -0
  19. data/lib/runners/mspec/InstallTDNetRunner.bat +16 -0
  20. data/lib/runners/mspec/InstallTDNetRunnerSilent.bat +16 -0
  21. data/lib/runners/mspec/JetBrains.dotCover.Resources.dll +0 -0
  22. data/lib/runners/mspec/License.txt +54 -0
  23. data/lib/runners/mspec/Machine.Specifications.Clr4.dll +0 -0
  24. data/lib/runners/mspec/Machine.Specifications.GallioAdapter.dll +0 -0
  25. data/lib/runners/mspec/Machine.Specifications.GallioAdapter.plugin +43 -0
  26. data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.6.0.dll +0 -0
  27. data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.6.1.dll +0 -0
  28. data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.7.0.dll +0 -0
  29. data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.7.1.dll +0 -0
  30. data/lib/runners/mspec/Machine.Specifications.Reporting.Templates.dll +0 -0
  31. data/lib/runners/mspec/Machine.Specifications.Reporting.dll +0 -0
  32. data/lib/runners/mspec/Machine.Specifications.SeleniumSupport.dll +0 -0
  33. data/lib/runners/mspec/Machine.Specifications.TDNetRunner.dll +0 -0
  34. data/lib/runners/mspec/Machine.Specifications.WatinSupport.dll +0 -0
  35. data/lib/runners/mspec/Machine.Specifications.WebDriverSupport.dll +0 -0
  36. data/lib/runners/mspec/Machine.Specifications.dll +0 -0
  37. data/lib/runners/mspec/Machine.Specifications.dll.tdnet +5 -0
  38. data/lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.0.dll +0 -0
  39. data/lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.1.dll +0 -0
  40. data/lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.2.dll +0 -0
  41. data/lib/runners/mspec/Spark.dll +0 -0
  42. data/lib/runners/mspec/TestDriven.Framework.dll +0 -0
  43. data/lib/runners/mspec/install.ps1 +6 -0
  44. data/lib/runners/mspec/mspec-clr4.exe +0 -0
  45. data/lib/runners/mspec/mspec-clr4.exe.config +9 -0
  46. data/lib/runners/mspec/mspec-x86-clr4.exe +0 -0
  47. data/lib/runners/mspec/mspec-x86-clr4.exe.config +9 -0
  48. data/lib/runners/mspec/mspec-x86.exe +0 -0
  49. data/lib/runners/mspec/mspec.exe +0 -0
  50. data/lib/runners/nunit262/framework/nunit.framework.dll +0 -0
  51. data/lib/runners/nunit262/framework/nunit.framework.xml +10899 -0
  52. data/lib/runners/nunit262/framework/nunit.mocks.dll +0 -0
  53. data/lib/runners/nunit262/lib/NSubstitute.dll +0 -0
  54. data/lib/runners/nunit262/lib/nunit-console-runner.dll +0 -0
  55. data/lib/runners/nunit262/lib/nunit-gui-runner.dll +0 -0
  56. data/lib/runners/nunit262/lib/nunit.core.dll +0 -0
  57. data/lib/runners/nunit262/lib/nunit.core.interfaces.dll +0 -0
  58. data/lib/runners/nunit262/lib/nunit.uiexception.dll +0 -0
  59. data/lib/runners/nunit262/lib/nunit.uikit.dll +0 -0
  60. data/lib/runners/nunit262/lib/nunit.util.dll +0 -0
  61. data/lib/runners/nunit262/nunit-agent.exe +0 -0
  62. data/lib/runners/nunit262/nunit-agent.exe.config +37 -0
  63. data/lib/runners/nunit262/nunit-console.exe +0 -0
  64. data/lib/runners/nunit262/nunit-console.exe.config +24 -0
  65. data/lib/runners/nunit262/nunit-editor.exe +0 -0
  66. data/lib/runners/nunit262/nunit.exe +0 -0
  67. data/lib/runners/nunit262/nunit.exe.config +23 -0
  68. data/lib/runners/nunit262/nunit.framework.dll +0 -0
  69. data/lib/runners/xunit191/xunit.console.exe +0 -0
  70. data/lib/runners/xunit191/xunit.console.exe.config +21 -0
  71. data/lib/runners/xunit191/xunit.dll +0 -0
  72. data/lib/runners/xunit191/xunit.dll.tdnet +5 -0
  73. data/lib/runners/xunit191/xunit.extensions.dll +0 -0
  74. data/lib/runners/xunit191/xunit.runner.msbuild.dll +0 -0
  75. data/lib/runners/xunit191/xunit.runner.tdnet.dll +0 -0
  76. data/lib/runners/xunit191/xunit.runner.utility.dll +0 -0
  77. data/lib/runners/xunit191/xunit.runner.utility.xml +1212 -0
  78. data/lib/runners/xunit191/xunit.xml +2611 -0
  79. data/lib/spec_helper.rb +4 -0
  80. data/pre_push.gemspec +23 -0
  81. data/spec/TestProj/TestProj/AllTests.cs +31 -0
  82. data/spec/TestProj/TestProj/Properties/AssemblyInfo.cs +36 -0
  83. data/spec/TestProj/TestProj/TestProj.csproj +71 -0
  84. data/spec/TestProj/TestProj/TestProj.csproj.user +6 -0
  85. data/spec/TestProj/TestProj/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
  86. data/spec/TestProj/TestProj/packages.config +6 -0
  87. data/spec/TestProj/TestProj.5.1.ReSharper.user +59 -0
  88. data/spec/TestProj/TestProj.sln +20 -0
  89. data/spec/TestProj/TestProj.suo +0 -0
  90. data/spec/TestProj/packages/Machine.Specifications.0.5.12/Machine.Specifications.0.5.12.nupkg +0 -0
  91. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.TDNetRunner.dll +0 -0
  92. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.dll +0 -0
  93. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.dll.tdnet +5 -0
  94. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net40/Machine.Specifications.Clr4.dll +0 -0
  95. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net40/Machine.Specifications.TDNetRunner.dll +0 -0
  96. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net40/Machine.Specifications.dll +0 -0
  97. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net40/Machine.Specifications.dll.tdnet +5 -0
  98. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/CommandLine.dll +0 -0
  99. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/CommandLine.xml +504 -0
  100. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallDotCoverRunner.2.0.bat +7 -0
  101. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallDotCoverRunner.2.1.bat +7 -0
  102. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallDotCoverRunner.2.2.bat +7 -0
  103. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallResharperRunner.6.1.bat +10 -0
  104. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallResharperRunner.7.0.bat +10 -0
  105. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallResharperRunner.7.1.bat +10 -0
  106. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallTDNetRunner.bat +16 -0
  107. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallTDNetRunnerSilent.bat +16 -0
  108. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/JetBrains.dotCover.Resources.dll +0 -0
  109. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/License.txt +54 -0
  110. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.Clr4.dll +0 -0
  111. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.GallioAdapter.dll +0 -0
  112. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.GallioAdapter.plugin +43 -0
  113. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.ReSharperRunner.6.1.dll +0 -0
  114. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.ReSharperRunner.7.0.dll +0 -0
  115. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.ReSharperRunner.7.1.dll +0 -0
  116. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.Reporting.Templates.dll +0 -0
  117. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.Reporting.dll +0 -0
  118. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.SeleniumSupport.dll +0 -0
  119. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.TDNetRunner.dll +0 -0
  120. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.WatinSupport.dll +0 -0
  121. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.WebDriverSupport.dll +0 -0
  122. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dll +0 -0
  123. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dll.tdnet +5 -0
  124. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dotCoverRunner.2.0.dll +0 -0
  125. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dotCoverRunner.2.1.dll +0 -0
  126. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dotCoverRunner.2.2.dll +0 -0
  127. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Spark.dll +0 -0
  128. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/TestDriven.Framework.dll +0 -0
  129. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/install.ps1 +6 -0
  130. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-clr4.exe +0 -0
  131. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-clr4.exe.config +9 -0
  132. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-x86-clr4.exe +0 -0
  133. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-x86-clr4.exe.config +9 -0
  134. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-x86.exe +0 -0
  135. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec.exe +0 -0
  136. data/spec/TestProj/packages/NUnit.2.6.2/NUnit.2.6.2.nupkg +0 -0
  137. data/spec/TestProj/packages/NUnit.2.6.2/lib/nunit.framework.dll +0 -0
  138. data/spec/TestProj/packages/NUnit.2.6.2/lib/nunit.framework.xml +10899 -0
  139. data/spec/TestProj/packages/NUnit.2.6.2/license.txt +15 -0
  140. data/spec/TestProj/packages/repositories.config +4 -0
  141. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.dll +0 -0
  142. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.dll.tdnet +5 -0
  143. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.runner.msbuild.dll +0 -0
  144. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.runner.tdnet.dll +0 -0
  145. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.runner.utility.dll +0 -0
  146. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.xml +2611 -0
  147. data/spec/TestProj/packages/xunit.1.9.1/xunit.1.9.1.nupkg +0 -0
  148. data/spec/mspec_integration_spec.rb +13 -0
  149. data/spec/nunit_integration_spec.rb +14 -0
  150. data/spec/pre_push_spec.rb +36 -0
  151. metadata +290 -0
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <configuration>
3
+ <!--
4
+ The .NET 2.0 build of nunit-agent only
5
+ runs under .NET 2.0 or higher. The setting
6
+ useLegacyV2RuntimeActivationPolicy only applies
7
+ under .NET 4.0 and permits use of mixed mode
8
+ assemblies, which would otherwise not load
9
+ correctly.
10
+ -->
11
+ <startup useLegacyV2RuntimeActivationPolicy="true">
12
+ <!--
13
+ Nunit-agent is normally run by the console or gui
14
+ runners and not independently. In normal usage,
15
+ the runner specifies which runtime should be used.
16
+
17
+ Do NOT add any supportedRuntime elements here,
18
+ since they may prevent the runner from controlling
19
+ the runtime that is used!
20
+ -->
21
+ </startup>
22
+
23
+ <runtime>
24
+ <!-- Ensure that test exceptions don't crash NUnit -->
25
+ <legacyUnhandledExceptionPolicy enabled="1" />
26
+
27
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
28
+ <loadFromRemoteSources enabled="true" />
29
+
30
+ <!-- Look for addins in the addins directory for now -->
31
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
32
+ <probing privatePath="lib;addins"/>
33
+ </assemblyBinding>
34
+
35
+ </runtime>
36
+
37
+ </configuration>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <configuration>
3
+ <!--
4
+ The .NET 2.0 build of the console runner only
5
+ runs under .NET 2.0 or higher. The setting
6
+ useLegacyV2RuntimeActivationPolicy only applies
7
+ under .NET 4.0 and permits use of mixed mode
8
+ assemblies, which would otherwise not load
9
+ correctly.
10
+ -->
11
+ <startup useLegacyV2RuntimeActivationPolicy="true">
12
+ <!-- Comment out the next line to force use of .NET 4.0 -->
13
+ </startup>
14
+ <runtime>
15
+ <!-- Ensure that test exceptions don't crash NUnit -->
16
+ <legacyUnhandledExceptionPolicy enabled="1"/>
17
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
18
+ <loadFromRemoteSources enabled="true"/>
19
+ <!-- Look for addins in the addins directory for now -->
20
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
21
+ <probing privatePath="lib;addins"/>
22
+ </assemblyBinding>
23
+ </runtime>
24
+ </configuration>
Binary file
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <configuration>
3
+ <!--
4
+ The GUI only runs under .NET 2.0 or higher. The
5
+ useLegacyV2RuntimeActivationPolicy setting only
6
+ applies under .NET 4.0 and permits use of mixed
7
+ mode assemblies, which would otherwise not load
8
+ correctly.
9
+ -->
10
+ <startup useLegacyV2RuntimeActivationPolicy="true">
11
+ <!-- Comment out the next line to force use of .NET 4.0 -->
12
+ </startup>
13
+ <runtime>
14
+ <!-- Ensure that test exceptions don't crash NUnit -->
15
+ <legacyUnhandledExceptionPolicy enabled="1"/>
16
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
17
+ <loadFromRemoteSources enabled="true"/>
18
+ <!-- Look for addins in the addins directory for now -->
19
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
20
+ <probing privatePath="lib;addins"/>
21
+ </assemblyBinding>
22
+ </runtime>
23
+ </configuration>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <configuration>
3
+
4
+ <configSections>
5
+ <section name="xunit" type="Xunit.ConsoleClient.XunitConsoleConfigurationSection, xunit.console"/>
6
+ </configSections>
7
+
8
+ <xunit>
9
+ <transforms>
10
+ <add
11
+ commandline="html"
12
+ xslfile="HTML.xslt"
13
+ description="output results to HTML file"/>
14
+ <add
15
+ commandline="nunit"
16
+ xslfile="NUnitXml.xslt"
17
+ description="output results to NUnit-style XML file"/>
18
+ </transforms>
19
+ </xunit>
20
+
21
+ </configuration>
Binary file
@@ -0,0 +1,5 @@
1
+ <TestRunner>
2
+ <FriendlyName>xUnit.net {0}.{1}.{2} build {3}</FriendlyName>
3
+ <AssemblyPath>xunit.runner.tdnet.dll</AssemblyPath>
4
+ <TypeName>Xunit.Runner.TdNet.TdNetRunner</TypeName>
5
+ </TestRunner>