Commit aa36c40
Changed files (7)
product
application
application.tests
product/application/application.csproj
@@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
+ <OutputPath>..\..\artifacts\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
product/application.tests/application.tests.csproj
@@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>tests</RootNamespace>
- <AssemblyName>simple.migrations.tests</AssemblyName>
+ <AssemblyName>application.tests</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
build_utilities.rb
@@ -105,19 +105,19 @@ class MbUnitRunner
@compile_target = items.fetch(:compile_target, 'debug')
@category_to_exclude = items.fetch(:category_to_exclude, 'missing')
@show_report = items.fetch(:show_report, false)
- @report_type = items.fetch(:report_type,'XML')
+ @report_type = items.fetch(:report_type,'XML')
end
def execute_tests(assemblies)
Dir.mkdir @test_results_dir unless exists?(@test_results_dir)
assemblies.each do |assem|
- sh build_command_line_for(assem)
+ sh build_command_line_for(assem)
end
end
def build_command_line_for(assembly)
- file = File.expand_path("#{@source_dir}/#{assembly}/bin/#{@compile_target}/#{assembly}.dll")
+ file = File.expand_path("#{@source_dir}/#{assembly}/bin/#{@compile_target}/#{assembly}.dll")
"#{@mbunit_dir}/mbunit.cons.exe #{file} /rt:#{@report_type} /rnf:#{assembly}.dll-results /rf:#{@test_results_dir} #{'/sr' if @show_report} /ec:#{@category_to_exclude}"
end
end
project.csproj
@@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
+ <OutputPath>artifacts\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
project.rb
@@ -14,7 +14,8 @@ class Project
end
def self.tests_dir
- @tests_dir = "test.#{self.name}"
+ #@tests_dir = "test.#{self.name}"
+ @tests_dir = "application.tests"
end
def self.startup_config
rakefile.rb
@@ -63,6 +63,14 @@ task :test, :category_to_exclude, :needs => [:compile] do |t,args|
runner.execute_tests ["#{Project.tests_dir}"]
end
+task :info do
+ puts "project name: " + Project.name
+ puts "project tests dir: " + Project.tests_dir
+ puts "project startup dir: " + Project.startup_dir
+ puts "project startup config: " + Project.startup_config
+ puts "project startup extension: " + Project.startup_extension
+end
+
task :run_test_report => [:test] do
runner = BDDDocRunner.new
runner.run(File.join('product',"#{Project.tests_dir}",'bin','debug',"#{Project.tests_dir}.dll"))
solution.sln
@@ -14,7 +14,6 @@ Global
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7F1E8D19-B4D4-40E6-939B-3601CAD82366}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {7F1E8D19-B4D4-40E6-939B-3601CAD82366}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F1E8D19-B4D4-40E6-939B-3601CAD82366}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F1E8D19-B4D4-40E6-939B-3601CAD82366}.Release|Any CPU.Build.0 = Release|Any CPU
{5106142C-D444-4D6A-A73F-CA823CE38101}.Debug|Any CPU.ActiveCfg = Debug|Any CPU