albacore 0.3.6 → 0.6.2.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -22
- data/.travis.yml +13 -15
- data/Gemfile +14 -13
- data/Guardfile +7 -0
- data/README.md +148 -0
- data/Rakefile +9 -25
- data/albacore.gemspec +20 -5
- data/lib/albacore.rb +3 -9
- data/lib/albacore/albacore_module.rb +53 -0
- data/lib/albacore/application.rb +32 -0
- data/lib/albacore/asmver.rb +67 -0
- data/lib/albacore/asmver/cpp.rb +20 -0
- data/lib/albacore/asmver/cs.rb +17 -0
- data/lib/albacore/asmver/engine.rb +43 -0
- data/lib/albacore/asmver/fs.rb +25 -0
- data/lib/albacore/asmver/vb.rb +17 -0
- data/lib/albacore/build.rb +203 -0
- data/lib/albacore/cmd_config.rb +55 -0
- data/lib/albacore/cross_platform_cmd.rb +177 -0
- data/lib/albacore/dsl.rb +118 -0
- data/lib/albacore/errors/unfilled_property_error.rb +14 -0
- data/lib/albacore/ext/README.md +12 -0
- data/lib/albacore/ext/teamcity.rb +64 -0
- data/lib/albacore/facts.rb +25 -0
- data/lib/albacore/logging.rb +29 -0
- data/lib/albacore/migrate.rb +175 -0
- data/lib/albacore/nugets_authentication.rb +9 -0
- data/lib/albacore/nugets_pack.rb +283 -0
- data/lib/albacore/nugets_restore.rb +131 -0
- data/lib/albacore/paths.rb +30 -0
- data/lib/albacore/project.rb +104 -0
- data/lib/albacore/restore_hint_paths.rb +112 -0
- data/lib/albacore/semver.rb +5 -0
- data/lib/albacore/tasks/README.md +16 -0
- data/lib/albacore/tasks/albasemver.rb +49 -0
- data/lib/albacore/tasks/projectlint.rb +81 -0
- data/lib/albacore/tasks/versionizer.rb +65 -0
- data/lib/albacore/test_runner.rb +39 -0
- data/lib/albacore/version.rb +3 -0
- data/spec/Rakefile +5 -0
- data/spec/albacore_spec.rb +35 -0
- data/spec/cross_platform_cmd_spec.rb +77 -0
- data/spec/ext_teamcity_spec.rb +71 -0
- data/spec/facts_spec.rb +7 -0
- data/spec/migrate_spec.rb +80 -0
- data/spec/nugets_pack_spec.rb +66 -0
- data/spec/nugets_restore_spec.rb +55 -0
- data/spec/project_spec.rb +26 -0
- data/spec/projectlint/added_but_not_on_filesystem/aproject.csproj +29 -0
- data/spec/projectlint/correct/File.cs +1 -0
- data/spec/projectlint/correct/Image.txt +1 -0
- data/spec/projectlint/correct/MyHeavy.heavy +1 -0
- data/spec/projectlint/correct/Schema.xsd +1 -0
- data/spec/projectlint/correct/SubFolder/AnotherFile.cs +1 -0
- data/spec/projectlint/correct/aproject.csproj +29 -0
- data/spec/projectlint/on_filesystem_but_not_added/File.cs +1 -0
- data/spec/projectlint/on_filesystem_but_not_added/Image.txt +1 -0
- data/spec/projectlint/on_filesystem_but_not_added/aproject.csproj +11 -0
- data/spec/projectlint_spec.rb +77 -0
- data/spec/sh_interceptor.rb +33 -0
- data/spec/smoke_spec.rb +9 -0
- data/spec/spec_helper.rb +13 -15
- data/spec/testdata/Library1.fs +4 -0
- data/spec/testdata/Project.fsproj +58 -0
- data/spec/testdata/Project/Project.sln +20 -0
- data/spec/testdata/Project/Project.v11.suo +0 -0
- data/spec/testdata/example.nuspec +14 -0
- data/spec/testdata/packages.config +6 -0
- metadata +235 -662
- data/.bundle/config +0 -2
- data/.rspec +0 -2
- data/.rvmrc +0 -1
- data/README.markdown +0 -71
- data/lib/albacore/albacoretask.rb +0 -50
- data/lib/albacore/aspnetcompiler.rb +0 -58
- data/lib/albacore/assemblyinfo.rb +0 -172
- data/lib/albacore/assemblyinfolanguages/assemblyinfoengine.rb +0 -41
- data/lib/albacore/assemblyinfolanguages/cppcliengine.rb +0 -18
- data/lib/albacore/assemblyinfolanguages/csharpengine.rb +0 -15
- data/lib/albacore/assemblyinfolanguages/fsharpengine.rb +0 -23
- data/lib/albacore/assemblyinfolanguages/vbnetengine.rb +0 -15
- data/lib/albacore/config/aspnetcompilerconfig.rb +0 -29
- data/lib/albacore/config/assemblyinfoconfig.rb +0 -20
- data/lib/albacore/config/config.rb +0 -22
- data/lib/albacore/config/cscconfig.rb +0 -28
- data/lib/albacore/config/docuconfig.rb +0 -23
- data/lib/albacore/config/execconfig.rb +0 -15
- data/lib/albacore/config/fluentmigratorrunnerconfig.rb +0 -15
- data/lib/albacore/config/ilmergeconfig.rb +0 -24
- data/lib/albacore/config/msbuildconfig.rb +0 -29
- data/lib/albacore/config/msdeployconfig.rb +0 -15
- data/lib/albacore/config/mspectestrunnerconfig.rb +0 -15
- data/lib/albacore/config/mstesttestrunnerconfig.rb +0 -15
- data/lib/albacore/config/nantconfig.rb +0 -15
- data/lib/albacore/config/nchurnconfig.rb +0 -15
- data/lib/albacore/config/ncoverconsoleconfig.rb +0 -15
- data/lib/albacore/config/ncoverreportconfig.rb +0 -15
- data/lib/albacore/config/ndependconfig.rb +0 -15
- data/lib/albacore/config/netversion.rb +0 -24
- data/lib/albacore/config/nugetpackconfig.rb +0 -19
- data/lib/albacore/config/nugetpublishconfig.rb +0 -19
- data/lib/albacore/config/nugetpushconfig.rb +0 -19
- data/lib/albacore/config/nugetupdateconfig.rb +0 -19
- data/lib/albacore/config/nunittestrunnerconfig.rb +0 -14
- data/lib/albacore/config/specflowreportconfig.rb +0 -24
- data/lib/albacore/config/sqlcmdconfig.rb +0 -15
- data/lib/albacore/config/unzipconfig.rb +0 -15
- data/lib/albacore/config/vssgetconfig.rb +0 -14
- data/lib/albacore/config/xbuildconfig.rb +0 -15
- data/lib/albacore/config/xunittestrunnerconfig.rb +0 -15
- data/lib/albacore/config/zipdirectoryconfig.rb +0 -15
- data/lib/albacore/csc.rb +0 -67
- data/lib/albacore/docu.rb +0 -41
- data/lib/albacore/exec.rb +0 -18
- data/lib/albacore/fluentmigratorrunner.rb +0 -51
- data/lib/albacore/ilmerge.rb +0 -65
- data/lib/albacore/msbuild.rb +0 -78
- data/lib/albacore/msdeploy.rb +0 -122
- data/lib/albacore/mspectestrunner.rb +0 -50
- data/lib/albacore/mstesttestrunner.rb +0 -43
- data/lib/albacore/nant.rb +0 -38
- data/lib/albacore/nchurn.rb +0 -74
- data/lib/albacore/ncoverconsole.rb +0 -68
- data/lib/albacore/ncoverreport.rb +0 -62
- data/lib/albacore/ncoverreports/assemblyfilter.rb +0 -10
- data/lib/albacore/ncoverreports/branchcoverage.rb +0 -10
- data/lib/albacore/ncoverreports/classfilter.rb +0 -9
- data/lib/albacore/ncoverreports/codecoveragebase.rb +0 -25
- data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +0 -23
- data/lib/albacore/ncoverreports/documentfilter.rb +0 -9
- data/lib/albacore/ncoverreports/fullcoveragereport.rb +0 -13
- data/lib/albacore/ncoverreports/methodcoverage.rb +0 -10
- data/lib/albacore/ncoverreports/methodfilter.rb +0 -9
- data/lib/albacore/ncoverreports/namespacefilter.rb +0 -9
- data/lib/albacore/ncoverreports/reportfilterbase.rb +0 -26
- data/lib/albacore/ncoverreports/summaryreport.rb +0 -18
- data/lib/albacore/ncoverreports/symbolcoverage.rb +0 -9
- data/lib/albacore/ndepend.rb +0 -33
- data/lib/albacore/nugetinstall.rb +0 -57
- data/lib/albacore/nugetpack.rb +0 -54
- data/lib/albacore/nugetpublish.rb +0 -47
- data/lib/albacore/nugetpush.rb +0 -46
- data/lib/albacore/nugetupdate.rb +0 -51
- data/lib/albacore/nunittestrunner.rb +0 -41
- data/lib/albacore/nuspec.rb +0 -178
- data/lib/albacore/output.rb +0 -103
- data/lib/albacore/plink.rb +0 -47
- data/lib/albacore/specflowreport.rb +0 -62
- data/lib/albacore/sqlcmd.rb +0 -82
- data/lib/albacore/support/attrmethods.rb +0 -33
- data/lib/albacore/support/createtask.rb +0 -50
- data/lib/albacore/support/failure.rb +0 -15
- data/lib/albacore/support/logging.rb +0 -38
- data/lib/albacore/support/openstruct.rb +0 -13
- data/lib/albacore/support/runcommand.rb +0 -45
- data/lib/albacore/support/supportlinux.rb +0 -21
- data/lib/albacore/support/updateattributes.rb +0 -13
- data/lib/albacore/support/yamlconfig.rb +0 -18
- data/lib/albacore/unzip.rb +0 -28
- data/lib/albacore/vssget.rb +0 -44
- data/lib/albacore/xbuild.rb +0 -54
- data/lib/albacore/xunittestrunner.rb +0 -56
- data/lib/albacore/zipdirectory.rb +0 -106
- data/lib/version.rb +0 -3
- data/samples/Rakefile +0 -154
- data/spec/README.md +0 -9
- data/spec/albacoremodel_spec.rb +0 -53
- data/spec/assemblyinfo_contexts.rb +0 -52
- data/spec/assemblyinfo_spec.rb +0 -459
- data/spec/attrmethods_spec.rb +0 -136
- data/spec/config_spec.rb +0 -34
- data/spec/createtask_spec.rb +0 -237
- data/spec/csc_spec.rb +0 -253
- data/spec/docu_spec.rb +0 -109
- data/spec/exec_spec.rb +0 -45
- data/spec/fluentmigratorrunner_spec.rb +0 -256
- data/spec/ilmerge_spec.rb +0 -93
- data/spec/msbuild_spec.rb +0 -287
- data/spec/msdeploy_spec.rb +0 -124
- data/spec/mspec_spec.rb +0 -28
- data/spec/mstesttestrunner_spec.rb +0 -144
- data/spec/nant_spec.rb +0 -110
- data/spec/nchurn_spec.rb +0 -75
- data/spec/ncoverconsole_spec.rb +0 -353
- data/spec/ncoverreport_spec.rb +0 -619
- data/spec/ndepend_spec.rb +0 -72
- data/spec/netversion_spec.rb +0 -53
- data/spec/nugetinstall_spec.rb +0 -47
- data/spec/nugetupdate_spec.rb +0 -42
- data/spec/nunittestrunner_spec.rb +0 -115
- data/spec/nuspec_spec.rb +0 -85
- data/spec/output_spec.rb +0 -149
- data/spec/patches/docu_patch.rb +0 -13
- data/spec/patches/fail_patch.rb +0 -9
- data/spec/patches/system_patch.rb +0 -20
- data/spec/plink_spec.rb +0 -62
- data/spec/runcommand_spec.rb +0 -94
- data/spec/spec.opts +0 -1
- data/spec/specflowreport_spec.rb +0 -143
- data/spec/sqlcmd_spec.rb +0 -334
- data/spec/support/AssemblyInfo/AssemblyInfo.test +0 -9
- data/spec/support/AssemblyInfo/AssemblyInfoInput.test +0 -9
- data/spec/support/AssemblyInfo/assemblyinfo.yml +0 -2
- data/spec/support/CodeCoverage/mspec/assemblies/Machine.Specifications.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.MSpecTests.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/mstest/TestSolution.MSTestTests.NET40.dll +0 -0
- data/spec/support/CodeCoverage/mstest/TestSolution.MSTestTests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.Tests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.Tests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/with spaces/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/nunit/failing_assemblies/TestSolution.FailingTests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/failing_assemblies/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/report/coverage.xml +0 -4578
- data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.XUnitTests.dll +0 -0
- data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/xunit/assemblies/xunit.dll +0 -0
- data/spec/support/CodeCoverage/xunit/assemblies/xunit.xml +0 -2604
- data/spec/support/FluentMigrator/FluentMigrator.dll +0 -0
- data/spec/support/FluentMigrator/TestSolution.FluentMigrator.dll +0 -0
- data/spec/support/SpecFlow/TechTalk.SpecFlow.dll +0 -0
- data/spec/support/SpecFlow/TestSolution.SpecFlow.dll +0 -0
- data/spec/support/SpecFlow/TestSolution.SpecFlow.pdb +0 -0
- data/spec/support/SpecFlow/TestSolution.dll +0 -0
- data/spec/support/SpecFlow/TestSolution.pdb +0 -0
- data/spec/support/SpecFlow/nunit.framework.dll +0 -0
- data/spec/support/TestSolution/LocalTestRun.testrunconfig +0 -5
- data/spec/support/TestSolution/NDependProject.xml +0 -315
- data/spec/support/TestSolution/TestSolution.5.0.ReSharper.user +0 -27
- data/spec/support/TestSolution/TestSolution.FailingTests/FailingTestFixture.cs +0 -19
- data/spec/support/TestSolution/TestSolution.FailingTests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.FailingTests/TestSolution.FailingTests.csproj +0 -101
- data/spec/support/TestSolution/TestSolution.FluentMigrator/M001_SampleMigration.cs +0 -19
- data/spec/support/TestSolution/TestSolution.FluentMigrator/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.FluentMigrator/TestSolution.FluentMigrator.csproj +0 -101
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy.sln +0 -20
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/About.aspx +0 -13
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/About.aspx.cs +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/About.aspx.designer.cs +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/ChangePassword.aspx +0 -60
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/ChangePassword.aspx.cs +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/ChangePassword.aspx.designer.cs +0 -26
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/ChangePasswordSuccess.aspx +0 -13
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/ChangePasswordSuccess.aspx.cs +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/ChangePasswordSuccess.aspx.designer.cs +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/Login.aspx +0 -49
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/Login.aspx.cs +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/Login.aspx.designer.cs +0 -35
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/Register.aspx +0 -75
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/Register.aspx.cs +0 -32
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/Register.aspx.designer.cs +0 -35
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Account/Web.config +0 -18
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Default.aspx +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Default.aspx.cs +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Default.aspx.designer.cs +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Global.asax +0 -1
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Global.asax.cs +0 -47
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Properties/AssemblyInfo.cs +0 -35
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Scripts/jquery-1.4.1-vsdoc.js +0 -8061
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Scripts/jquery-1.4.1.js +0 -6111
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Scripts/jquery-1.4.1.min.js +0 -167
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Site.Master +0 -51
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Site.Master.cs +0 -17
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Site.Master.designer.cs +0 -71
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Styles/Site.css +0 -294
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/TestSolution.MSDeploy.Publish.xml +0 -2
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/TestSolution.MSDeploy.csproj +0 -163
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Web.Debug.config +0 -30
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Web.Release.config +0 -31
- data/spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/Web.config +0 -52
- data/spec/support/TestSolution/TestSolution.MSTestTests.NET40/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.MSTestTests.NET40/TestSolution.MSTestTests.NET40.csproj +0 -53
- data/spec/support/TestSolution/TestSolution.MSTestTests.NET40/Tests.cs +0 -20
- data/spec/support/TestSolution/TestSolution.MSTestTests/Properties/AssemblyInfo.cs +0 -35
- data/spec/support/TestSolution/TestSolution.MSTestTests/TestSolution.MSTestTests.csproj +0 -97
- data/spec/support/TestSolution/TestSolution.MSTestTests/Tests.cs +0 -20
- data/spec/support/TestSolution/TestSolution.MSpecTests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.MSpecTests/SomeSpecTest.cs +0 -18
- data/spec/support/TestSolution/TestSolution.MSpecTests/TestSolution.MSpecTests.csproj +0 -110
- data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature +0 -8
- data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature.cs +0 -73
- data/spec/support/TestSolution/TestSolution.SpecFlow/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.SpecFlow/StepDefinition.cs +0 -30
- data/spec/support/TestSolution/TestSolution.SpecFlow/TestSolution.SpecFlow.csproj +0 -122
- data/spec/support/TestSolution/TestSolution.Tests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.Tests/SomeTestFixture.cs +0 -23
- data/spec/support/TestSolution/TestSolution.Tests/TestSolution.Tests.csproj +0 -107
- data/spec/support/TestSolution/TestSolution.XUnitTests/Class1.cs +0 -20
- data/spec/support/TestSolution/TestSolution.XUnitTests/FailingTestFixture.cs +0 -14
- data/spec/support/TestSolution/TestSolution.XUnitTests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.XUnitTests/TestSolution.XUnitTests.csproj +0 -108
- data/spec/support/TestSolution/TestSolution.build +0 -25
- data/spec/support/TestSolution/TestSolution.sln +0 -75
- data/spec/support/TestSolution/TestSolution.vsmdi +0 -6
- data/spec/support/TestSolution/TestSolution/Class1.cs +0 -17
- data/spec/support/TestSolution/TestSolution/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution/TestSolution.csproj +0 -97
- data/spec/support/Tools/FluentMigrator-0.9/FluentMigrator.MSBuild.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/FluentMigrator.NAnt.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/FluentMigrator.Runner.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/FluentMigrator.Runner.pdb +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/FluentMigrator.Tests.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/FluentMigrator.Tests.pdb +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/FluentMigrator.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/FluentMigrator.pdb +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/Migrate.exe +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/Migrate.exe.config +0 -6
- data/spec/support/Tools/FluentMigrator-0.9/Moq.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/Moq.xml +0 -3467
- data/spec/support/Tools/FluentMigrator-0.9/MySql.Data.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/NAnt.Core.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/NAnt.Core.xml +0 -14880
- data/spec/support/Tools/FluentMigrator-0.9/Oracle.DataAccess.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/System.Data.SQLite.DLL +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/log4net.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/nunit.framework.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/nunit.should.dll +0 -0
- data/spec/support/Tools/FluentMigrator-0.9/testscript.sql +0 -1
- data/spec/support/Tools/MSTest-2008/MSTest.exe +0 -0
- data/spec/support/Tools/MSTest-2008/Microsoft.VisualStudio.QualityTools.CommandLine.dll +0 -0
- data/spec/support/Tools/MSTest-2008/Microsoft.VisualStudio.QualityTools.Common.dll +0 -0
- data/spec/support/Tools/MSTest-2008/Microsoft.VisualStudio.QualityTools.ControllerObject.dll +0 -0
- data/spec/support/Tools/MSTest-2008/Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll +0 -0
- data/spec/support/Tools/MSTest-2008/Microsoft.VisualStudio.QualityTools.TMI.dll +0 -0
- data/spec/support/Tools/MSTest-2008/Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter.dll +0 -0
- data/spec/support/Tools/MSTest-2008/Microsoft.VisualStudio.QualityTools.Tips.UnitTest.AssemblyResolver.dll +0 -0
- data/spec/support/Tools/MSTest-2008/Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel.dll +0 -0
- data/spec/support/Tools/MSTest-2008/Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Tip.dll +0 -0
- data/spec/support/Tools/MSTest-2010/MSTest.exe +0 -0
- data/spec/support/Tools/MSTest-2010/MSTest.exe.config +0 -31
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.AgentObject.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.AgentProcessManager.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.CMI.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.CheckinPolicies.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.CodeCoverage.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.CodedUITest.Controls.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.CommandLine.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Common.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Controller.SpooledJob.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.ControllerObject.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.DataCollectionAgentObject.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAgent.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Linking.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTest.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTestExcelAddIn.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTestExcelAddIn.dll.manifest +0 -296
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTestExcelAddIn.vsto +0 -150
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTestExcelCommon.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTestExcelCommon.tlb +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTestExec.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTestPackage.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.LoadTestUI.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.NICServices.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.NetworkEmulation.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.OperationalStore.ClientHelper.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.RecorderBar.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.RecorderBarBHO100.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Resource.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Sqm.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.TMI.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.TestCaseManagement.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Adapter.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.GenericTest.ObjectModel.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Tip.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Adapter.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.ManualTest.ObjectModel.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Tip.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Adapter.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.ObjectModel.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.TuipPackage.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.UnitTest.AssemblyResolver.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Tip.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Tips.WebLoadTest.Tip.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Vsip.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.WarehouseCommon.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.WebTestFramework.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.WebTestPlayback.dll +0 -0
- data/spec/support/Tools/MSTest-2010/Microsoft.VisualStudio.QualityTools.Wizard.TestProjectWizards.dll +0 -0
- data/spec/support/Tools/MSTest-2010/mstest.reg +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/lib/Machine.Specifications.TDNetRunner.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/lib/Machine.Specifications.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/lib/Machine.Specifications.dll.tdnet +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/CommandLine.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/CommandLine.xml +0 -504
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.4.1.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.4.5.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.5.0 - VS2008.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.5.0 - VS2010.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.5.1 - VS2008.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.5.1 - VS2010.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.6.0 - VS2008.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.6.0 - VS2010.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.6.1 - VS2008.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallResharperRunner.6.1 - VS2010.bat +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallTDNetRunner.bat +0 -16
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/InstallTDNetRunnerSilent.bat +0 -16
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/License.txt +0 -54
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.GallioAdapter.3.1.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.GallioAdapter.plugin +0 -43
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.ReSharperRunner.4.1.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.ReSharperRunner.4.5.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.ReSharperRunner.5.0.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.ReSharperRunner.5.1.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.ReSharperRunner.6.0.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.ReSharperRunner.6.1.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.Reporting.Templates.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.Reporting.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.SeleniumSupport.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.TDNetRunner.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.WatinSupport.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Machine.Specifications.dll.tdnet +0 -5
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/Spark.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/TestDriven.Framework.dll +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/install.ps1 +0 -6
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/mspec-clr4.exe +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/mspec-clr4.exe.config +0 -6
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/mspec-x86-clr4.exe +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/mspec-x86-clr4.exe.config +0 -6
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/mspec-x86.exe +0 -0
- data/spec/support/Tools/Machine.Specifications-0.5.3/tools/mspec.exe +0 -0
- data/spec/support/Tools/NAnt-0.85/COPYING.txt +0 -340
- data/spec/support/Tools/NAnt-0.85/README.txt +0 -144
- data/spec/support/Tools/NChurn-v0.4/LICENSE.txt +0 -133
- data/spec/support/Tools/NChurn-v0.4/NChurn.exe +0 -0
- data/spec/support/Tools/NChurn-v0.4/README.md +0 -171
- data/spec/support/Tools/NChurn-v0.4/VERSION +0 -1
- data/spec/support/Tools/NChurn-v0.4/churn-0.4.0.0.txt +0 -178
- data/spec/support/Tools/NCover-v3.3/ActiproEULA.hml +0 -287
- data/spec/support/Tools/NCover-v3.3/ActiproSoftware.Shared.Wpf30.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/ActiproSoftware.SyntaxEditor.Addons.DotNet.Wpf30.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/ActiproSoftware.SyntaxEditor.Wpf30.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/ActiproSoftware.Text.Net20.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/AdminBootstrapper.exe +0 -0
- data/spec/support/Tools/NCover-v3.3/Build Task Plugins/MSBuildNCoverExample.proj +0 -237
- data/spec/support/Tools/NCover-v3.3/Build Task Plugins/MSBuildReportingExample.proj +0 -224
- data/spec/support/Tools/NCover-v3.3/Build Task Plugins/NAntNCoverExample.build +0 -241
- data/spec/support/Tools/NCover-v3.3/Build Task Plugins/NAntReportingExample.build +0 -218
- data/spec/support/Tools/NCover-v3.3/Build Task Plugins/NCover.MSBuildTasks.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/Build Task Plugins/NCover.NAntTasks.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/Build Task Plugins/NCoverExplorer.MSBuildTasks.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/Build Task Plugins/NCoverExplorer.NAntTasks.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/CC.Net/NCoverReporting30.xsl +0 -2313
- data/spec/support/Tools/NCover-v3.3/CC.Net/dashboard.config +0 -55
- data/spec/support/Tools/NCover-v3.3/CC.Net/excanvas.js +0 -35
- data/spec/support/Tools/NCover-v3.3/CC.Net/g.png +0 -0
- data/spec/support/Tools/NCover-v3.3/CC.Net/jquery-1.3.2.min.js +0 -19
- data/spec/support/Tools/NCover-v3.3/CC.Net/r.png +0 -0
- data/spec/support/Tools/NCover-v3.3/CC.Net/readme.txt +0 -51
- data/spec/support/Tools/NCover-v3.3/CC.Net/trends.js +0 -184
- data/spec/support/Tools/NCover-v3.3/CC.Net/y.png +0 -0
- data/spec/support/Tools/NCover-v3.3/MSVCM90.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/MSVCP90.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/MSVCR90.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/Microsoft.VC90.CRT.manifest +0 -13
- data/spec/support/Tools/NCover-v3.3/Mindscape.LightSpeed.Linq.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/Mindscape.LightSpeed.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Console.exe +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Console.exe.config +0 -55
- data/spec/support/Tools/NCover-v3.3/NCover.Data.x86.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Explorer.Framework.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Explorer.exe +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Explorer.exe.config +0 -16
- data/spec/support/Tools/NCover-v3.3/NCover.Framework.XmlSerializers.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Framework.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Interfaces.Core.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Interfaces.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Legacy.Configuration.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Lib.x86.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Registration.exe +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Reporting.exe +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Runner.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.UpConvert.exe +0 -0
- data/spec/support/Tools/NCover-v3.3/NCover.Utilities.dll +0 -0
- data/spec/support/Tools/NCover-v3.3/NCoverEULA.pdf +0 -0
- data/spec/support/Tools/NCover-v3.3/NCoverExplorer.Console.exe +0 -0
- data/spec/support/Tools/NCover-v3.3/ReportingExample.config +0 -213
- data/spec/support/Tools/NCover-v3.3/System.Data.SQLite.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/EULA_NDepend.txt +0 -94
- data/spec/support/Tools/NDepend-v2.12/Lib/DevExpress.Data.v8.2.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/DevExpress.OfficeSkins.v8.2.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/DevExpress.Utils.v8.2.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/DevExpress.XtraBars.v8.2.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/DevExpress.XtraEditors.v8.2.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/DevExpress.XtraNavBar.v8.2.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/EnvDTE.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/Microsoft.Msagl.Drawing.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/Microsoft.Msagl.GraphViewerGdi.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/Microsoft.Msagl.GraphViewerGdi.dll.config +0 -3
- data/spec/support/Tools/NDepend-v2.12/Lib/Microsoft.Msagl.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/Microsoft.VisualStudio.OLE.Interop.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/Microsoft.VisualStudio.Shell.Interop.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/Microsoft.VisualStudio.Shell.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/Mono.Cecil.Pdb.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/Mono.Cecil.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/NDepend.AddIn.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/NDepend.Analysis.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/NDepend.CQL.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/NDepend.Framework.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/NDepend.Platform.DotNet.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/NDepend.Skins.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/NDepend.UI.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/msvcp71.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/Lib/msvcr71.dll +0 -0
- data/spec/support/Tools/NDepend-v2.12/NDepend.Console.exe +0 -0
- data/spec/support/Tools/NDepend-v2.12/NDepend.Console.exe.config +0 -8
- data/spec/support/Tools/NDepend-v2.12/QuickStartTutorial_NDepend.txt +0 -152
- data/spec/support/Tools/NDepend-v2.12/VisualNDepend.exe +0 -0
- data/spec/support/Tools/NUnit-v2.5/NUnitFitTests.html +0 -277
- data/spec/support/Tools/NUnit-v2.5/NUnitTests.config +0 -84
- data/spec/support/Tools/NUnit-v2.5/NUnitTests.nunit +0 -14
- data/spec/support/Tools/NUnit-v2.5/TestResult.xml +0 -32
- data/spec/support/Tools/NUnit-v2.5/agent.conf +0 -4
- data/spec/support/Tools/NUnit-v2.5/agent.log.conf +0 -18
- data/spec/support/Tools/NUnit-v2.5/clr.bat +0 -96
- data/spec/support/Tools/NUnit-v2.5/framework/nunit.framework.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/framework/nunit.framework.xml +0 -10088
- data/spec/support/Tools/NUnit-v2.5/framework/nunit.mocks.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/framework/pnunit.framework.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/launcher.log.conf +0 -18
- data/spec/support/Tools/NUnit-v2.5/lib/Failure.png +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/Ignored.png +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/Inconclusive.png +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/Skipped.png +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/Success.png +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/fit.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/log4net.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/nunit-console-runner.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/nunit-gui-runner.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/nunit.core.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/nunit.core.interfaces.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/nunit.fixtures.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/nunit.uiexception.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/nunit.uikit.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/lib/nunit.util.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/nunit-agent.exe +0 -0
- data/spec/support/Tools/NUnit-v2.5/nunit-agent.exe.config +0 -87
- data/spec/support/Tools/NUnit-v2.5/nunit-console-x86.exe +0 -0
- data/spec/support/Tools/NUnit-v2.5/nunit-console-x86.exe.config +0 -87
- data/spec/support/Tools/NUnit-v2.5/nunit-console.exe +0 -0
- data/spec/support/Tools/NUnit-v2.5/nunit-console.exe.config +0 -87
- data/spec/support/Tools/NUnit-v2.5/nunit-x86.exe +0 -0
- data/spec/support/Tools/NUnit-v2.5/nunit-x86.exe.config +0 -95
- data/spec/support/Tools/NUnit-v2.5/nunit.exe +0 -0
- data/spec/support/Tools/NUnit-v2.5/nunit.exe.config +0 -95
- data/spec/support/Tools/NUnit-v2.5/nunit.framework.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/pnunit-agent.exe +0 -0
- data/spec/support/Tools/NUnit-v2.5/pnunit-agent.exe.config +0 -87
- data/spec/support/Tools/NUnit-v2.5/pnunit-launcher.exe +0 -0
- data/spec/support/Tools/NUnit-v2.5/pnunit-launcher.exe.config +0 -87
- data/spec/support/Tools/NUnit-v2.5/pnunit.framework.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/pnunit.tests.dll +0 -0
- data/spec/support/Tools/NUnit-v2.5/runFile.exe +0 -0
- data/spec/support/Tools/NUnit-v2.5/runFile.exe.config +0 -43
- data/spec/support/Tools/NUnit-v2.5/runpnunit.bat +0 -2
- data/spec/support/Tools/NUnit-v2.5/test.conf +0 -24
- data/spec/support/Tools/PartCover-v2.3/Interop.PartCover.dll +0 -0
- data/spec/support/Tools/PartCover-v2.3/PartCover Browser Manual.rtf +0 -28853
- data/spec/support/Tools/PartCover-v2.3/PartCover Console Manual.rtf +0 -203
- data/spec/support/Tools/PartCover-v2.3/PartCover.Browser.Api.dll +0 -0
- data/spec/support/Tools/PartCover-v2.3/PartCover.Browser.exe +0 -0
- data/spec/support/Tools/PartCover-v2.3/PartCover.Browser.exe.config +0 -51
- data/spec/support/Tools/PartCover-v2.3/PartCover.CorDriver.dll +0 -0
- data/spec/support/Tools/PartCover-v2.3/PartCover.Framework.dll +0 -0
- data/spec/support/Tools/PartCover-v2.3/PartCover.exe +0 -0
- data/spec/support/Tools/PartCover-v2.3/PartCover.exe.config +0 -4
- data/spec/support/Tools/PartCover-v2.3/PartViewer.dll +0 -0
- data/spec/support/Tools/PartCover-v2.3/app.ico +0 -0
- data/spec/support/Tools/PartCover-v2.3/log4net.dll +0 -0
- data/spec/support/Tools/PartCover-v2.3/xslt/Report By Assembly.xslt +0 -54
- data/spec/support/Tools/PartCover-v2.3/xslt/Report By Class.xslt +0 -52
- data/spec/support/Tools/SpecFlow/Antlr3.Runtime.dll +0 -0
- data/spec/support/Tools/SpecFlow/Interop.SHDocVw.dll +0 -0
- data/spec/support/Tools/SpecFlow/TechTalk.SpecFlow.Generator.dll +0 -0
- data/spec/support/Tools/SpecFlow/TechTalk.SpecFlow.Parser.dll +0 -0
- data/spec/support/Tools/SpecFlow/TechTalk.SpecFlow.Reporting.dll +0 -0
- data/spec/support/Tools/SpecFlow/TechTalk.SpecFlow.VsIntegration.dll +0 -0
- data/spec/support/Tools/SpecFlow/TechTalk.SpecFlow.dll +0 -0
- data/spec/support/Tools/SpecFlow/TechTalk.SpecFlow.targets +0 -58
- data/spec/support/Tools/SpecFlow/TechTalk.SpecFlow.tasks +0 -17
- data/spec/support/Tools/SpecFlow/changelog.txt +0 -50
- data/spec/support/Tools/SpecFlow/specflow.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/EULA.txt +0 -29
- data/spec/support/Tools/XUnit-v1.9/HTML.xslt +0 -126
- data/spec/support/Tools/XUnit-v1.9/NUnitXml.xslt +0 -121
- data/spec/support/Tools/XUnit-v1.9/xunit.console.clr4.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.console.clr4.exe.config +0 -21
- data/spec/support/Tools/XUnit-v1.9/xunit.console.clr4.x86.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.console.clr4.x86.exe.config +0 -21
- data/spec/support/Tools/XUnit-v1.9/xunit.console.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.console.exe.config +0 -21
- data/spec/support/Tools/XUnit-v1.9/xunit.console.x86.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.console.x86.exe.config +0 -21
- data/spec/support/Tools/XUnit-v1.9/xunit.dll +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.dll.tdnet +0 -5
- data/spec/support/Tools/XUnit-v1.9/xunit.extensions.dll +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.extensions.xml +0 -805
- data/spec/support/Tools/XUnit-v1.9/xunit.gui.clr4.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.gui.clr4.x86.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.gui.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.gui.x86.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.installer.exe +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.runner.msbuild.dll +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.runner.tdnet.dll +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.runner.utility.dll +0 -0
- data/spec/support/Tools/XUnit-v1.9/xunit.runner.utility.xml +0 -1212
- data/spec/support/Tools/XUnit-v1.9/xunit.xml +0 -2604
- data/spec/support/assemblyinfotester.rb +0 -52
- data/spec/support/csc/File1.cs +0 -9
- data/spec/support/csc/File2.cs +0 -9
- data/spec/support/csc/output/ignorethis.txt +0 -1
- data/spec/support/ironruby_validator.rb +0 -26
- data/spec/support/msbuildtestdata.rb +0 -32
- data/spec/support/nanttestdata.rb +0 -33
- data/spec/support/ncoverconsoletestdata.rb +0 -20
- data/spec/support/ncoverreporttestdata.rb +0 -26
- data/spec/support/nokogiri_validator.rb +0 -15
- data/spec/support/nuspec/nuspec.xsd +0 -84
- data/spec/support/outputtestdata.rb +0 -13
- data/spec/support/test.yml +0 -4
- data/spec/support/yamlconfig/msbuild.yml +0 -5
- data/spec/support/yamlconfig/yaml_autoconfig_test.yml +0 -1
- data/spec/support/zip/files/subfolder/sub file.txt +0 -1
- data/spec/support/zip/files/testfile.txt +0 -1
- data/spec/support/ziptestdata.rb +0 -13
- data/spec/unzip_spec.rb +0 -15
- data/spec/xbuild_spec.rb +0 -15
- data/spec/xunit_spec.rb +0 -200
- data/spec/yamlconfig_spec.rb +0 -49
- data/spec/zip_spec.rb +0 -160
@@ -1,56 +0,0 @@
|
|
1
|
-
require 'albacore/albacoretask'
|
2
|
-
|
3
|
-
class XUnitTestRunner
|
4
|
-
TaskName = :xunit
|
5
|
-
include Albacore::Task
|
6
|
-
include Albacore::RunCommand
|
7
|
-
|
8
|
-
attr_accessor :html_output, :skip_test_fail
|
9
|
-
attr_array :options,:assembly,:assemblies
|
10
|
-
|
11
|
-
def initialize(command=nil)
|
12
|
-
@options=[]
|
13
|
-
super()
|
14
|
-
update_attributes Albacore.configuration.xunit.to_hash
|
15
|
-
@command = command unless command.nil?
|
16
|
-
end
|
17
|
-
|
18
|
-
def skip_test_failures
|
19
|
-
@skip_test_fail = true
|
20
|
-
end
|
21
|
-
|
22
|
-
def get_command_line
|
23
|
-
command_params = []
|
24
|
-
command_params << @command
|
25
|
-
command_params << get_command_parameters
|
26
|
-
commandline = command_params.join(" ")
|
27
|
-
@logger.debug "Build XUnit Test Runner Command Line: " + commandline
|
28
|
-
commandline
|
29
|
-
end
|
30
|
-
|
31
|
-
def get_command_parameters
|
32
|
-
command_params = []
|
33
|
-
command_params << @options.join(" ") unless @options.nil?
|
34
|
-
command_params << build_html_output unless @html_output.nil?
|
35
|
-
command_params
|
36
|
-
end
|
37
|
-
|
38
|
-
def execute()
|
39
|
-
@assemblies = [] if @assemblies.nil?
|
40
|
-
@assemblies << @assembly unless @assembly.nil?
|
41
|
-
fail_with_message 'At least one assembly is required for assemblies attr' if @assemblies.length==0
|
42
|
-
failure_message = 'XUnit Failed. See Build Log For Detail'
|
43
|
-
|
44
|
-
@assemblies.each do |assm|
|
45
|
-
command_params = get_command_parameters.collect{ |p| p % File.basename(assm) }
|
46
|
-
command_params.insert(0,assm)
|
47
|
-
result = run_command "XUnit", command_params.join(" ")
|
48
|
-
fail_with_message failure_message if !result && (!@skip_test_fail || $?.exitstatus > 1)
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def build_html_output
|
53
|
-
fail_with_message 'Directory is required for html_output' if !File.directory?(File.expand_path(@html_output))
|
54
|
-
"/html \"#{File.join(File.expand_path(@html_output),"%s.html")}\""
|
55
|
-
end
|
56
|
-
end
|
@@ -1,106 +0,0 @@
|
|
1
|
-
require 'albacore/albacoretask'
|
2
|
-
require 'zip/zip'
|
3
|
-
require 'zip/zipfilesystem'
|
4
|
-
include Zip
|
5
|
-
|
6
|
-
class ZipDirectory
|
7
|
-
TaskName = :zip
|
8
|
-
include Albacore::Task
|
9
|
-
|
10
|
-
attr_accessor :output_path, :output_file
|
11
|
-
attr_accessor :flatten_zip
|
12
|
-
attr_array :directories_to_zip, :additional_files, :exclusions
|
13
|
-
|
14
|
-
def initialize
|
15
|
-
@flatten_zip = true
|
16
|
-
@exclusions = []
|
17
|
-
super()
|
18
|
-
update_attributes Albacore.configuration.zip.to_hash
|
19
|
-
end
|
20
|
-
|
21
|
-
def execute()
|
22
|
-
fail_with_message 'Output File cannot be empty' if @output_file.nil?
|
23
|
-
return if @output_file.nil?
|
24
|
-
|
25
|
-
clean_directories_names
|
26
|
-
remove zip_name
|
27
|
-
|
28
|
-
ZipFile.open(zip_name, 'w') do |zipfile|
|
29
|
-
zip_directory(zipfile)
|
30
|
-
zip_additional(zipfile)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def clean_directories_names
|
35
|
-
return if @directories_to_zip.nil?
|
36
|
-
@directories_to_zip.each { |d| d.sub!(%r[/$],'')}
|
37
|
-
end
|
38
|
-
|
39
|
-
def remove(filename)
|
40
|
-
FileUtils.rm filename, :force=>true
|
41
|
-
end
|
42
|
-
|
43
|
-
def reject_file(f)
|
44
|
-
f == zip_name || is_excluded(f)
|
45
|
-
end
|
46
|
-
|
47
|
-
def is_excluded(f)
|
48
|
-
expanded_exclusions.any? do |e|
|
49
|
-
return true if e.respond_to? '~' and f =~ e
|
50
|
-
e == f
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
def expanded_exclusions
|
55
|
-
return @expanded_exclusions unless @expanded_exclusions.nil?
|
56
|
-
|
57
|
-
regexp_exclusions, string_exclusions = @exclusions.partition {|x| x.respond_to? '~' }
|
58
|
-
@expanded_exclusions = [].concat(regexp_exclusions)
|
59
|
-
|
60
|
-
@directories_to_zip.each do |dir|
|
61
|
-
Dir.chdir(dir) do
|
62
|
-
string_exclusions.each do |ex|
|
63
|
-
exclusions = Dir.glob(ex)
|
64
|
-
exclusions = exclusions.map {|x| File.join(dir, x) } unless exclusions[0] == ex
|
65
|
-
exclusions << ex if exclusions.empty?
|
66
|
-
@expanded_exclusions += exclusions
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
@expanded_exclusions
|
72
|
-
end
|
73
|
-
|
74
|
-
def zip_name()
|
75
|
-
@output_path = set_output_path
|
76
|
-
File.join(@output_path, @output_file)
|
77
|
-
end
|
78
|
-
|
79
|
-
def set_output_path()
|
80
|
-
path = ''
|
81
|
-
path = @directories_to_zip.first unless @directories_to_zip.nil?
|
82
|
-
path = @output_path unless @output_path.nil?
|
83
|
-
return path
|
84
|
-
end
|
85
|
-
|
86
|
-
|
87
|
-
def zip_directory(zipfile)
|
88
|
-
return if @directories_to_zip.nil?
|
89
|
-
@directories_to_zip.each do |d|
|
90
|
-
Dir["#{d}/**/**"].reject{|f| reject_file(f)}.each do |file_path|
|
91
|
-
file_name = file_path
|
92
|
-
file_name = file_path.sub(d + '/','') if @flatten_zip
|
93
|
-
zipfile.add(file_name, file_path)
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
def zip_additional(zipfile)
|
99
|
-
return if @additional_files.nil?
|
100
|
-
@additional_files = Array.[](@additional_files).flatten
|
101
|
-
@additional_files.reject{|f| reject_file(f)}.each do |file_path|
|
102
|
-
file_name = file_path.split('/').last if @flatten_zip
|
103
|
-
zipfile.add(file_name, file_path)
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
data/lib/version.rb
DELETED
data/samples/Rakefile
DELETED
@@ -1,154 +0,0 @@
|
|
1
|
-
$: << File.expand_path('../lib', __FILE__)
|
2
|
-
require 'albacore'
|
3
|
-
|
4
|
-
namespace :albacore do
|
5
|
-
|
6
|
-
Albacore.configure do |config|
|
7
|
-
config.yaml_config_folder = "spec/support/yamlconfig"
|
8
|
-
config.log_level = :verbose
|
9
|
-
end
|
10
|
-
|
11
|
-
desc "Run a complete Albacore build sample"
|
12
|
-
task :sample => ['albacore:assemblyinfo',
|
13
|
-
'albacore:assemblyinfo_modify',
|
14
|
-
'albacore:msbuild',
|
15
|
-
'albacore:ncoverconsole',
|
16
|
-
'albacore:ncoverreport',
|
17
|
-
'albacore:mspec',
|
18
|
-
'albacore:nunit',
|
19
|
-
'albacore:xunit',
|
20
|
-
'albacore:mstest',
|
21
|
-
'albacore:fluentmigrator']
|
22
|
-
|
23
|
-
desc "Run a sample MSBuild with YAML autoconfig"
|
24
|
-
msbuild :msbuild
|
25
|
-
|
26
|
-
desc "Run a sample assembly info generator"
|
27
|
-
assemblyinfo do |asm|
|
28
|
-
asm.version = "0.1.2.3"
|
29
|
-
asm.company_name = "a test company"
|
30
|
-
asm.product_name = "a product name goes here"
|
31
|
-
asm.title = "my assembly title"
|
32
|
-
asm.description = "this is the assembly description"
|
33
|
-
asm.copyright = "copyright some year, by some legal entity"
|
34
|
-
asm.custom_attributes :SomeAttribute => "some value goes here", :AnotherAttribute => "with some data"
|
35
|
-
|
36
|
-
asm.output_file = "spec/support/AssemblyInfo/AssemblyInfo.cs"
|
37
|
-
end
|
38
|
-
|
39
|
-
desc "Run a sample assembly info modifier"
|
40
|
-
assemblyinfo :assemblyinfo_modify do|asm|
|
41
|
-
# modify existing
|
42
|
-
asm.version = "0.1.2.3"
|
43
|
-
asm.company_name = "a test company"
|
44
|
-
|
45
|
-
# new attribute
|
46
|
-
asm.file_version = "4.5.6.7"
|
47
|
-
|
48
|
-
asm.input_file = "spec/support/AssemblyInfo/AssemblyInfoInput.test"
|
49
|
-
asm.output_file = "spec/support/AssemblyInfo/AssemblyInfoOutput.cs"
|
50
|
-
end
|
51
|
-
|
52
|
-
desc "Run a sample NCover Console code coverage"
|
53
|
-
ncoverconsole do |ncc|
|
54
|
-
@xml_coverage = "spec/support/CodeCoverage/test-coverage.xml"
|
55
|
-
File.delete(@xml_coverage) if File.exist?(@xml_coverage)
|
56
|
-
|
57
|
-
ncc.log_level = :verbose
|
58
|
-
ncc.command = "spec/support/Tools/NCover-v3.3/NCover.Console.exe"
|
59
|
-
ncc.output :xml => @xml_coverage
|
60
|
-
ncc.working_directory = "spec/support/CodeCoverage/nunit"
|
61
|
-
|
62
|
-
nunit = NUnitTestRunner.new("spec/support/Tools/NUnit-v2.5/nunit-console-x86.exe")
|
63
|
-
nunit.log_level = :verbose
|
64
|
-
nunit.assemblies "assemblies/TestSolution.Tests.dll"
|
65
|
-
nunit.options '/noshadow'
|
66
|
-
|
67
|
-
ncc.testrunner = nunit
|
68
|
-
end
|
69
|
-
|
70
|
-
desc "Run a sample NCover Report to check code coverage"
|
71
|
-
ncoverreport :ncoverreport => :ncoverconsole do |ncr|
|
72
|
-
@xml_coverage = "spec/support/CodeCoverage/test-coverage.xml"
|
73
|
-
|
74
|
-
ncr.command = "spec/support/Tools/NCover-v3.3/NCover.Reporting.exe"
|
75
|
-
ncr.coverage_files @xml_coverage
|
76
|
-
|
77
|
-
fullcoveragereport = NCover::FullCoverageReport.new
|
78
|
-
fullcoveragereport.output_path = "spec/support/CodeCoverage/report/output"
|
79
|
-
ncr.reports fullcoveragereport
|
80
|
-
|
81
|
-
ncr.required_coverage(
|
82
|
-
NCover::BranchCoverage.new(:minimum => 10),
|
83
|
-
NCover::CyclomaticComplexity.new(:maximum => 1)
|
84
|
-
)
|
85
|
-
end
|
86
|
-
|
87
|
-
desc "Run ZipDirectory example"
|
88
|
-
zip do |zip|
|
89
|
-
zip.output_path = File.dirname(__FILE__)
|
90
|
-
zip.directories_to_zip = "lib", "spec"
|
91
|
-
zip.additional_files "README.markdown"
|
92
|
-
zip.output_file = 'albacore_example.zip'
|
93
|
-
end
|
94
|
-
|
95
|
-
desc "Run UnZip example"
|
96
|
-
unzip do |zip|
|
97
|
-
zip.unzip_path = File.join File.dirname(__FILE__), 'temp'
|
98
|
-
zip.zip_file = 'albacore_example.zip'
|
99
|
-
end
|
100
|
-
|
101
|
-
desc "MSpec Test Runner Example"
|
102
|
-
mspec do |mspec|
|
103
|
-
mspec.command = "spec/support/Tools/Machine.Specification-v0.2/Machine.Specifications.ConsoleRunner.exe"
|
104
|
-
mspec.assemblies "spec/support/CodeCoverage/mspec/assemblies/TestSolution.MSpecTests.dll"
|
105
|
-
end
|
106
|
-
|
107
|
-
desc "NUnit Test Runner Example"
|
108
|
-
nunit do |nunit|
|
109
|
-
nunit.command = "spec/support/Tools/NUnit-v2.5/nunit-console.exe"
|
110
|
-
nunit.assemblies "spec/support/CodeCoverage/nunit/assemblies/TestSolution.Tests.dll"
|
111
|
-
end
|
112
|
-
|
113
|
-
desc "MSTest Test Runner Example"
|
114
|
-
mstest do |mstest|
|
115
|
-
mstest.command = "spec/support/Tools/MSTest-2010/mstest.exe"
|
116
|
-
mstest.assemblies "spec/support/CodeCoverage/mstest/TestSolution.MsTestTests.dll"
|
117
|
-
end
|
118
|
-
|
119
|
-
desc "MSDeploy Example"
|
120
|
-
msdeploy do |msdeploy|
|
121
|
-
msdeploy.deploy_package = "spec/support/TestSolution/TestSolution.MSDeploy/TestSolution.MSDeploy/obj/Debug/Package"
|
122
|
-
msdeploy.noop = true
|
123
|
-
end
|
124
|
-
|
125
|
-
desc "XUnit Test Runner Example"
|
126
|
-
xunit do |xunit|
|
127
|
-
xunit.command = "spec/support/Tools/XUnit-v1.5/xunit.console.exe"
|
128
|
-
xunit.assembly = "spec/support/CodeCoverage/xunit/assemblies/TestSolution.XUnitTests.dll"
|
129
|
-
end
|
130
|
-
|
131
|
-
desc "Exec Task Example"
|
132
|
-
exec do |exec|
|
133
|
-
exec.command = 'hostname'
|
134
|
-
end
|
135
|
-
|
136
|
-
desc "Mono \ xBuild Example"
|
137
|
-
mono do |xbuild|
|
138
|
-
xbuild.properties :configuration => :release, :platform => 'Any CPU'
|
139
|
-
xbuild.targets :clean, :build
|
140
|
-
xbuild.solution = "spec/support/TestSolution/TestSolution.sln"
|
141
|
-
end
|
142
|
-
|
143
|
-
desc "FluentMigrator Test Runner Example"
|
144
|
-
fluentmigrator do |migrator|
|
145
|
-
db_file = "#{ENV['TEMP']}/fluentmigrator.sqlite3"
|
146
|
-
File.delete(db_file) if File.exist?(db_file)
|
147
|
-
|
148
|
-
migrator.command = "spec/support/Tools/FluentMigrator-0.9/Migrate.exe"
|
149
|
-
migrator.target = "spec/support/FluentMigrator/TestSolution.FluentMigrator.dll"
|
150
|
-
migrator.provider = "sqlite"
|
151
|
-
migrator.connection = "Data Source=#{db_file};"
|
152
|
-
end
|
153
|
-
|
154
|
-
end
|
data/spec/README.md
DELETED
data/spec/albacoremodel_spec.rb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'albacore/albacoretask'
|
3
|
-
|
4
|
-
class ModelTest
|
5
|
-
include Albacore::Task
|
6
|
-
attr_accessor :foo, :bar
|
7
|
-
attr_hash :a_hash
|
8
|
-
attr_array :a_array
|
9
|
-
end
|
10
|
-
|
11
|
-
class NamedTaskExample
|
12
|
-
TaskName = [:namedtask, :anothername]
|
13
|
-
include Albacore::Task
|
14
|
-
end
|
15
|
-
|
16
|
-
describe "when updating object attributes with a valid set of hash keys" do
|
17
|
-
before :each do
|
18
|
-
@model = ModelTest.new
|
19
|
-
@model << {:foo => "test", :bar => "whatever"}
|
20
|
-
end
|
21
|
-
|
22
|
-
it "should set the attributes correctly" do
|
23
|
-
@model.foo.should == "test"
|
24
|
-
@model.bar.should == "whatever"
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
describe "when updating an object attributes with an invalid hash key" do
|
29
|
-
before :each do
|
30
|
-
@model = ModelTest.new
|
31
|
-
str = StringIO.new
|
32
|
-
@model.log_device = str
|
33
|
-
@model << {:something => "broken"}
|
34
|
-
@log = str.string
|
35
|
-
end
|
36
|
-
|
37
|
-
it "should warn about the attribute not being found" do
|
38
|
-
@log.should include("something is not a settable attribute on ModelTest")
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe "when an class includes albacoretask" do
|
43
|
-
it "should create a rake task for that class" do
|
44
|
-
respond_to?(:modeltest).should be_true
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
describe "when an albacoretask class specifies task names" do
|
49
|
-
it "should create a task with the specified names" do
|
50
|
-
respond_to?(:namedtask).should be_true
|
51
|
-
respond_to?(:anothername).should be_true
|
52
|
-
end
|
53
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'support/assemblyinfotester'
|
3
|
-
require 'albacore/assemblyinfo'
|
4
|
-
|
5
|
-
shared_context "StringIO logging" do
|
6
|
-
before :all do
|
7
|
-
@strio = StringIO.new
|
8
|
-
end
|
9
|
-
|
10
|
-
def logwith_strio task, level = :diagnostic
|
11
|
-
task.log_device = @strio
|
12
|
-
task.log_level = level
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
shared_context "asminfo task" do
|
17
|
-
|
18
|
-
include_context "StringIO logging"
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@tester = AssemblyInfoTester.new
|
22
|
-
@asm = AssemblyInfo.new
|
23
|
-
logwith_strio @asm
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
shared_context "language engines" do
|
28
|
-
|
29
|
-
include_context "asminfo task"
|
30
|
-
|
31
|
-
before :all do
|
32
|
-
@asm.namespaces 'My.Name.Space', 'Another.Namespace.GoesHere'
|
33
|
-
end
|
34
|
-
|
35
|
-
def using_engine engine
|
36
|
-
@tester.lang_engine = @asm.lang_engine = engine
|
37
|
-
end
|
38
|
-
|
39
|
-
end
|
40
|
-
|
41
|
-
shared_context "specifying custom attributes" do
|
42
|
-
|
43
|
-
include_context "asminfo task"
|
44
|
-
|
45
|
-
before :all do
|
46
|
-
@asm.custom_attributes :CustomAttribute => "custom attribute data",
|
47
|
-
:AnotherAttribute => "more data here"
|
48
|
-
end
|
49
|
-
|
50
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
51
|
-
|
52
|
-
end
|
data/spec/assemblyinfo_spec.rb
DELETED
@@ -1,459 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'support/assemblyinfotester'
|
3
|
-
require 'albacore/assemblyinfo'
|
4
|
-
require 'assemblyinfo_contexts'
|
5
|
-
# have a look in the above file to see what spec types are in this file
|
6
|
-
|
7
|
-
describe AssemblyInfo, "when generating an assembly info file" do
|
8
|
-
|
9
|
-
include_context "asminfo task"
|
10
|
-
|
11
|
-
before :all do
|
12
|
-
@tester.build_and_read_assemblyinfo_file @asm
|
13
|
-
end
|
14
|
-
|
15
|
-
subject { @strio.string }
|
16
|
-
|
17
|
-
it "should log the name of the output file" do
|
18
|
-
subject.downcase.should include(@tester.assemblyinfo_file.downcase)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
describe AssemblyInfo, "when generating an assembly info file in verbose mode" do
|
23
|
-
|
24
|
-
include_context "asminfo task"
|
25
|
-
|
26
|
-
before :all do
|
27
|
-
@asm.version = @tester.version
|
28
|
-
logwith_strio @asm, :verbose
|
29
|
-
@tester.build_and_read_assemblyinfo_file @asm
|
30
|
-
end
|
31
|
-
|
32
|
-
subject { @strio.string }
|
33
|
-
|
34
|
-
it "should log the name of the output file" do
|
35
|
-
subject.downcase.should include(@tester.assemblyinfo_file.downcase)
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
describe AssemblyInfo, "when generating an assembly info file without an output file specified" do
|
40
|
-
|
41
|
-
include_context "asminfo task"
|
42
|
-
|
43
|
-
before :all do
|
44
|
-
@asm.extend(FailPatch)
|
45
|
-
@asm.execute
|
46
|
-
end
|
47
|
-
|
48
|
-
subject { @strio.string }
|
49
|
-
|
50
|
-
it "should log an error message saying the output file is required" do
|
51
|
-
subject.should include("output_file cannot be nil")
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
{ :no => { :engine => nil, :lang => "no", :start_token => "[", :end_token => "]"},
|
56
|
-
:cs => { :engine => CSharpEngine.new, :lang => "the C#", :start_token => "[", :end_token => "]" },
|
57
|
-
:vb => { :engine => VbNetEngine.new, :lang => "the VB.Net", :start_token => "<", :end_token => ">", :assignment => ":=" },
|
58
|
-
:fs => { :engine => FSharpEngine.new, :lang => "the F#", :start_token => "[<", :end_token => ">]" },
|
59
|
-
:cpp=> { :engine => CppCliEngine.new, :lang => "the C++", :start_token => "[", :end_token => "]" }
|
60
|
-
}.each do |key, settings|
|
61
|
-
|
62
|
-
s = settings[:start_token]
|
63
|
-
e = settings[:end_token]
|
64
|
-
a = settings[:assignment] || '='
|
65
|
-
|
66
|
-
describe AssemblyInfo, "when specifying a custom attribute with no data and using #{settings[:lang]} language specification" do
|
67
|
-
|
68
|
-
include_context "asminfo task"
|
69
|
-
|
70
|
-
before :all do
|
71
|
-
@tester.lang_engine = @asm.lang_engine = settings[:engine]
|
72
|
-
@asm.custom_attributes :NoArgsAttribute => nil
|
73
|
-
end
|
74
|
-
|
75
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
76
|
-
|
77
|
-
it "should.execute the attribute with an empty argument list" do
|
78
|
-
subject.scan(%Q|#{s}assembly: NoArgsAttribute()#{e}|).length.should == 1
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
describe AssemblyInfo, "when specifying an attribute with non-string data and using #{settings[:lang]} language specification" do
|
83
|
-
|
84
|
-
include_context "asminfo task"
|
85
|
-
|
86
|
-
before :all do
|
87
|
-
@tester.lang_engine = @asm.lang_engine = settings[:engine]
|
88
|
-
@asm.custom_attributes :NonStringAttribute => true
|
89
|
-
end
|
90
|
-
|
91
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
92
|
-
|
93
|
-
it "should.execute the attribute data without quotes" do
|
94
|
-
subject.scan(%Q|#{s}assembly: NonStringAttribute(true)#{e}|).length.should == 1
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
describe AssemblyInfo, "when specifying an attribute with multiple parameters and using #{settings[:lang]} language specification" do
|
99
|
-
|
100
|
-
include_context "asminfo task"
|
101
|
-
|
102
|
-
before :all do
|
103
|
-
@tester.lang_engine = @asm.lang_engine = settings[:engine]
|
104
|
-
@asm.custom_attributes :MultipleParameterAttribute => [true, 1, "abc"]
|
105
|
-
end
|
106
|
-
|
107
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
108
|
-
|
109
|
-
it "should create the attribute correctly" do
|
110
|
-
subject.scan(%Q|#{s}assembly: MultipleParameterAttribute(true, 1, "abc")#{e}|).length.should == 1
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
describe AssemblyInfo, "when specifying an attribute with named parameters and using #{settings[:lang]} language specification" do
|
115
|
-
|
116
|
-
include_context "asminfo task"
|
117
|
-
|
118
|
-
before :all do
|
119
|
-
@tester.lang_engine = @asm.lang_engine = settings[:engine]
|
120
|
-
@asm.custom_attributes :NamedParameterAttribute => {:arg1 => "abc", :arg2 => false}
|
121
|
-
end
|
122
|
-
|
123
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
124
|
-
|
125
|
-
it "should create the attribute correctly" do
|
126
|
-
subject.scan(%Q|#{s}assembly: NamedParameterAttribute(arg1 #{a} "abc", arg2 #{a} false)#{e}|).length.should == 1
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
describe AssemblyInfo, "when specifying an attribute with multiple and named parameters and using #{settings[:lang]} language specification" do
|
131
|
-
|
132
|
-
include_context "asminfo task"
|
133
|
-
|
134
|
-
before :all do
|
135
|
-
@tester.lang_engine = @asm.lang_engine = settings[:engine]
|
136
|
-
@asm.custom_attributes :UberParameterAttribute => [true, 1, "abc", {:arg1 => "abc", :arg2 => false}]
|
137
|
-
end
|
138
|
-
|
139
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
140
|
-
|
141
|
-
it "should create the attribute correctly" do
|
142
|
-
subject.scan(%Q|#{s}assembly: UberParameterAttribute(true, 1, "abc", arg1 #{a} "abc", arg2 #{a} false)#{e}|).length.should == 1
|
143
|
-
end
|
144
|
-
end
|
145
|
-
|
146
|
-
end
|
147
|
-
|
148
|
-
describe FSharpEngine, "when generating assembly info" do
|
149
|
-
|
150
|
-
include_context "language engines"
|
151
|
-
|
152
|
-
before :all do
|
153
|
-
using_engine FSharpEngine.new
|
154
|
-
end
|
155
|
-
|
156
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
157
|
-
|
158
|
-
it "should output a module definition" do
|
159
|
-
subject.scan('module AssemblyInfo').length.should == 1
|
160
|
-
end
|
161
|
-
|
162
|
-
it "should output '()' at the bottom" do
|
163
|
-
subject.scan('()').length.should == 1
|
164
|
-
end
|
165
|
-
|
166
|
-
end
|
167
|
-
|
168
|
-
describe FSharpEngine, "when setting language attribute" do
|
169
|
-
|
170
|
-
include_context "language engines"
|
171
|
-
|
172
|
-
before :all do
|
173
|
-
@tester.language = @asm.language = "F#"
|
174
|
-
end
|
175
|
-
|
176
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
177
|
-
|
178
|
-
it "should use the system.reflection namespace" do
|
179
|
-
subject.scan(%Q|open System.Reflection|).length.should == 1
|
180
|
-
end
|
181
|
-
|
182
|
-
it "should not contain the assembly title" do
|
183
|
-
subject.scan(%Q|[assembly: AssemblyTitle("#{@tester.title}")]|).should be_empty
|
184
|
-
end
|
185
|
-
|
186
|
-
it "should output a module definition" do
|
187
|
-
subject.scan('module AssemblyInfo').length.should == 1
|
188
|
-
end
|
189
|
-
|
190
|
-
it "should output '()' at the bottom" do
|
191
|
-
subject.scan('()').length.should == 1
|
192
|
-
end
|
193
|
-
|
194
|
-
end
|
195
|
-
|
196
|
-
{ :no => { :engine => nil, :lang => "no", :start_token => "[", :end_token => "]", :using => "using " },
|
197
|
-
:cs => { :engine => CSharpEngine.new, :lang => "the C#", :start_token => "[", :end_token => "]", :using => "using " },
|
198
|
-
:vb => { :engine => VbNetEngine.new, :lang => "the VB.Net", :start_token => "<", :end_token => ">", :using => "Imports ", :statement_terminator => "" },
|
199
|
-
:fs => { :engine => FSharpEngine.new, :lang => "the F#", :start_token => "[<", :end_token => ">]", :using => "open ", :statement_terminator => "" },
|
200
|
-
:cpp=> { :engine => CppCliEngine.new, :lang => "the C++", :start_token => "[", :end_token => "]", :using => "using namespace ", :nsdelim => "::" }
|
201
|
-
}.each do |key, settings|
|
202
|
-
|
203
|
-
describe AssemblyInfo, "when generating an assembly info file with the built in attributes and #{settings[:lang]} language specified" do
|
204
|
-
|
205
|
-
include_context "language engines"
|
206
|
-
|
207
|
-
before :all do
|
208
|
-
@asm.product_name = @tester.product_name
|
209
|
-
@asm.version = @tester.version
|
210
|
-
@asm.title = @tester.title
|
211
|
-
@asm.description = @tester.description
|
212
|
-
@asm.copyright = @tester.copyright
|
213
|
-
@asm.com_visible = @tester.com_visible
|
214
|
-
@asm.com_guid = @tester.com_guid
|
215
|
-
@asm.file_version = @tester.file_version
|
216
|
-
@asm.informational_version = @tester.informational_version
|
217
|
-
@asm.trademark = @tester.trademark
|
218
|
-
@asm.company_name = @tester.company_name
|
219
|
-
|
220
|
-
using_engine settings[:engine] unless settings[:engine].nil?
|
221
|
-
end
|
222
|
-
|
223
|
-
let(:s) { settings[:start_token] }
|
224
|
-
let(:e) { settings[:end_token] }
|
225
|
-
let(:using) { settings[:using] }
|
226
|
-
let(:d) { settings[:nsdelim] || '.' }
|
227
|
-
let(:t) { settings[:statement_terminator] || ';'}
|
228
|
-
|
229
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
230
|
-
|
231
|
-
it "should use the system.reflection namespace" do
|
232
|
-
subject.scan(%Q|#{using}System#{d}Reflection#{t}|).length.should == 1
|
233
|
-
end
|
234
|
-
|
235
|
-
it "should use the system.runtime.interopservices namespace" do
|
236
|
-
subject.scan(%Q|#{using}System#{d}Runtime#{d}InteropServices#{t}|).length.should == 1
|
237
|
-
end
|
238
|
-
|
239
|
-
it "should use custom namespaces" do
|
240
|
-
subject.scan(%Q|#{using}My#{d}Name#{d}Space#{t}|).length.should == 1
|
241
|
-
end
|
242
|
-
|
243
|
-
it "shold be using the other custom namespace, too" do
|
244
|
-
subject.scan(%Q|#{using}Another#{d}Namespace#{d}GoesHere#{t}|).length.should == 1
|
245
|
-
end
|
246
|
-
|
247
|
-
it "should contain the specified version information" do
|
248
|
-
subject.scan(%Q|#{s}assembly: AssemblyVersion("#{@tester.version}")#{e}|).length.should == 1
|
249
|
-
end
|
250
|
-
|
251
|
-
it "should contain the assembly title" do
|
252
|
-
subject.scan(%Q|#{s}assembly: AssemblyTitle("#{@tester.title}")#{e}|).length.should == 1
|
253
|
-
end
|
254
|
-
|
255
|
-
it "should contain the assembly description" do
|
256
|
-
subject.scan(%Q|#{s}assembly: AssemblyDescription("#{@tester.description}")#{e}|).length.should == 1
|
257
|
-
end
|
258
|
-
|
259
|
-
it "should contain the copyright information" do
|
260
|
-
subject.scan(%Q|#{s}assembly: AssemblyCopyright("#{@tester.copyright}")#{e}|).length.should == 1
|
261
|
-
end
|
262
|
-
|
263
|
-
it "should contain the com visible information" do
|
264
|
-
subject.scan(%Q|#{s}assembly: ComVisible(#{@tester.com_visible})#{e}|).length.should == 1
|
265
|
-
subject.scan(%Q|#{s}assembly: Guid("#{@tester.com_guid}")#{e}|).length.should == 1
|
266
|
-
end
|
267
|
-
|
268
|
-
it "should contain the company name information" do
|
269
|
-
subject.scan(%Q|#{s}assembly: AssemblyCompany("#{@tester.company_name}")#{e}|).length.should == 1
|
270
|
-
end
|
271
|
-
|
272
|
-
it "should contain the product information" do
|
273
|
-
subject.scan(%Q|#{s}assembly: AssemblyProduct("#{@tester.product_name}")#{e}|).length.should == 1
|
274
|
-
end
|
275
|
-
|
276
|
-
it "should contain the file version information" do
|
277
|
-
subject.scan(%Q|#{s}assembly: AssemblyFileVersion("#{@tester.file_version}")#{e}|).length.should == 1
|
278
|
-
end
|
279
|
-
|
280
|
-
it "should contain the trademark information" do
|
281
|
-
subject.scan(%Q|#{s}assembly: AssemblyTrademark("#{@tester.trademark}")#{e}|).length.should == 1
|
282
|
-
end
|
283
|
-
|
284
|
-
it "should contain the informational version information" do
|
285
|
-
subject.scan(%Q|#{s}assembly: AssemblyInformationalVersion("#{@tester.informational_version}")#{e}|).length.should == 1
|
286
|
-
end
|
287
|
-
end
|
288
|
-
end
|
289
|
-
|
290
|
-
describe AssemblyInfo, "when generating an assembly info file with no attributes provided" do
|
291
|
-
include_context "asminfo task"
|
292
|
-
|
293
|
-
subject do
|
294
|
-
@tester.build_and_read_assemblyinfo_file @asm
|
295
|
-
end
|
296
|
-
|
297
|
-
it "should not contain the specified version information" do
|
298
|
-
subject.scan(%Q|[assembly: AssemblyVersion("#{@tester.version}")]|).should be_empty
|
299
|
-
end
|
300
|
-
|
301
|
-
it "should not contain the assembly title" do
|
302
|
-
subject.scan(%Q|[assembly: AssemblyTitle("#{@tester.title}")]|).should be_empty
|
303
|
-
end
|
304
|
-
|
305
|
-
it "should not contain the assembly description" do
|
306
|
-
subject.scan(%Q|[assembly: AssemblyDescription("#{@tester.description}")]|).should be_empty
|
307
|
-
end
|
308
|
-
|
309
|
-
it "should not contain the copyright information" do
|
310
|
-
subject.scan(%Q|[assembly: AssemblyCopyright("#{@tester.copyright}")]|).should be_empty
|
311
|
-
end
|
312
|
-
|
313
|
-
it "should not contain the com visible information" do
|
314
|
-
subject.scan(%Q|[assembly: ComVisible(#{@tester.com_visible})]|).should be_empty
|
315
|
-
subject.scan(%Q|[assembly: Guid("#{@tester.com_guid}")]|).should be_empty
|
316
|
-
end
|
317
|
-
|
318
|
-
it "should not contain the company name information" do
|
319
|
-
subject.scan(%Q|[assembly: AssemblyCompany("#{@tester.company_name}")]|).should be_empty
|
320
|
-
end
|
321
|
-
|
322
|
-
it "should not contain the product information" do
|
323
|
-
subject.scan(%Q|[assembly: AssemblyProduct("#{@tester.product_name}")]|).should be_empty
|
324
|
-
end
|
325
|
-
|
326
|
-
it "should not contain the file version information" do
|
327
|
-
subject.scan(%Q|[assembly: AssemblyFileVersion("#{@tester.file_version}")]|).should be_empty
|
328
|
-
end
|
329
|
-
|
330
|
-
it "should not contain the trademark information" do
|
331
|
-
subject.scan(%Q|[assembly: AssemblyTrademark("#{@tester.trademark}")]|).should be_empty
|
332
|
-
end
|
333
|
-
|
334
|
-
it "should not contain the informational version information" do
|
335
|
-
subject.scan(%Q|[assembly: AssemblyInformationalVersion("#{@tester.informational_version}")]|).should be_empty
|
336
|
-
end
|
337
|
-
end
|
338
|
-
|
339
|
-
describe AssemblyInfo, "when configuring the assembly info generator with a yaml file" do
|
340
|
-
before :all do
|
341
|
-
@asm = AssemblyInfo.new
|
342
|
-
@asm.configure(AssemblyInfoTester.new.yaml_file)
|
343
|
-
end
|
344
|
-
|
345
|
-
it "should set the values for the provided attributes" do
|
346
|
-
@asm.version.should == "0.0.1"
|
347
|
-
@asm.company_name.should == "some company name"
|
348
|
-
end
|
349
|
-
end
|
350
|
-
|
351
|
-
describe AssemblyInfo, "when assembly info configuration is provided" do
|
352
|
-
let :asm do
|
353
|
-
Albacore.configure do |config|
|
354
|
-
config.assemblyinfo do |asm|
|
355
|
-
asm.company_name = "foo"
|
356
|
-
asm.version = "bar"
|
357
|
-
end
|
358
|
-
end
|
359
|
-
AssemblyInfo.new
|
360
|
-
end
|
361
|
-
it "should use the supplied info" do
|
362
|
-
asm.company_name.should == "foo"
|
363
|
-
asm.version.should == "bar"
|
364
|
-
end
|
365
|
-
end
|
366
|
-
|
367
|
-
describe AssemblyInfo, "when specifying custom data" do
|
368
|
-
|
369
|
-
include_context "asminfo task"
|
370
|
-
|
371
|
-
before :all do
|
372
|
-
@asm.custom_data "// foo", "// bar"
|
373
|
-
end
|
374
|
-
|
375
|
-
subject{ @tester.build_and_read_assemblyinfo_file @asm }
|
376
|
-
|
377
|
-
it "should write data unmodified to the output" do
|
378
|
-
subject.scan('// foo').length.should == 1
|
379
|
-
subject.scan('// bar').length.should == 1
|
380
|
-
end
|
381
|
-
end
|
382
|
-
|
383
|
-
describe AssemblyInfo, "when an input file is provided" do
|
384
|
-
|
385
|
-
include_context "asminfo task"
|
386
|
-
|
387
|
-
before :all do
|
388
|
-
@asm.version = @tester.version
|
389
|
-
@asm.file_version = @tester.file_version
|
390
|
-
@asm.namespaces "My.Custom.Namespace"
|
391
|
-
@asm.custom_attributes :CustomAttribute => nil
|
392
|
-
@asm.custom_data "// foo", "// baz"
|
393
|
-
|
394
|
-
# make it use existing file
|
395
|
-
@tester.use_input_file
|
396
|
-
end
|
397
|
-
|
398
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
399
|
-
|
400
|
-
it "should contain correct version attribute" do
|
401
|
-
subject.scan(%Q|[assembly: AssemblyVersion("#{@tester.version}")]|).length.should == 1
|
402
|
-
end
|
403
|
-
|
404
|
-
it "shoud leave comment untouched" do
|
405
|
-
subject.scan(%Q|// A comment we want to see maintained|).length.should == 1
|
406
|
-
end
|
407
|
-
|
408
|
-
it "should introduce a new fileversion attribute" do
|
409
|
-
subject.scan(%Q|[assembly: AssemblyFileVersion("#{@tester.file_version}")]|).length.should == 1
|
410
|
-
end
|
411
|
-
|
412
|
-
it "should still leave custom data that's already in there intact" do
|
413
|
-
subject.scan(%Q|// foo|).length.should == 1
|
414
|
-
end
|
415
|
-
|
416
|
-
it "should add custom data that's still missing" do
|
417
|
-
subject.scan(%Q|// baz|).length.should == 1
|
418
|
-
end
|
419
|
-
|
420
|
-
it "should add namespaces to the top of the file" do
|
421
|
-
# Top of file is assumed to be before the first attribute. Comments are ignored.
|
422
|
-
s = subject.split($/)
|
423
|
-
first_attr_line = s.index { |l| l =~ /^\[/ }
|
424
|
-
s.index(%Q|using My.Custom.Namespace;|).should be < first_attr_line
|
425
|
-
s.index(%Q|using System.Reflection;|).should be < first_attr_line
|
426
|
-
s.index(%Q|using System.Runtime.InteropServices;|).should be < first_attr_line
|
427
|
-
end
|
428
|
-
|
429
|
-
it "should not duplicate namespaces" do
|
430
|
-
subject.scan(%Q|using My.Custom.Namespace;|).length.should == 1
|
431
|
-
subject.scan(%Q|using System.Reflection;|).length.should == 1
|
432
|
-
subject.scan(%Q|using System.Runtime.InteropServices;|).length.should == 1
|
433
|
-
end
|
434
|
-
|
435
|
-
it "should update existing custom attributes" do
|
436
|
-
subject.scan(%Q|[assembly: CustomAttribute()]|).length.should == 1
|
437
|
-
subject.scan(%Q|[assembly: CustomAttribute(12345)]|).length.should == 0
|
438
|
-
end
|
439
|
-
end
|
440
|
-
|
441
|
-
describe AssemblyInfo, "when an input file is provided with no attributes" do
|
442
|
-
|
443
|
-
include_context "asminfo task"
|
444
|
-
|
445
|
-
before :all do
|
446
|
-
@asm.company_name = nil
|
447
|
-
@asm.version = nil
|
448
|
-
|
449
|
-
# make it use existing file
|
450
|
-
@tester.use_input_file
|
451
|
-
end
|
452
|
-
|
453
|
-
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
454
|
-
|
455
|
-
# will give a false-positive if input file has no blank lines at the bottom
|
456
|
-
it "should output one blank line at the bottom" do
|
457
|
-
subject.scan(/[^\n]\n\z/).length.should == 1
|
458
|
-
end
|
459
|
-
end
|