albacore 0.2.0.preview1 → 0.2.0.preview2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/README.markdown +7 -2
  2. data/VERSION +1 -1
  3. data/install_dependencies.rb +1 -1
  4. data/lib/albacore.rb +6 -17
  5. data/lib/albacore/albacoretask.rb +43 -0
  6. data/lib/albacore/assemblyinfo.rb +10 -7
  7. data/lib/albacore/config/assemblyinfoconfig.rb +4 -12
  8. data/lib/albacore/config/config.rb +16 -8
  9. data/lib/albacore/config/cscconfig.rb +2 -7
  10. data/lib/albacore/config/docuconfig.rb +3 -5
  11. data/lib/albacore/config/execconfig.rb +4 -11
  12. data/lib/albacore/config/msbuildconfig.rb +2 -5
  13. data/lib/albacore/config/mspectestrunnerconfig.rb +15 -0
  14. data/lib/albacore/config/nantconfig.rb +4 -11
  15. data/lib/albacore/config/ncoverconsoleconfig.rb +4 -11
  16. data/lib/albacore/config/ncoverreportconfig.rb +4 -11
  17. data/lib/albacore/config/ndependconfig.rb +4 -11
  18. data/lib/albacore/config/netversion.rb +0 -2
  19. data/lib/albacore/config/nunittestrunnerconfig.rb +14 -0
  20. data/lib/albacore/config/specflowreportconfig.rb +2 -5
  21. data/lib/albacore/config/sqlcmdconfig.rb +4 -11
  22. data/lib/albacore/config/unzipconfig.rb +4 -11
  23. data/lib/albacore/config/xbuildconfig.rb +4 -11
  24. data/lib/albacore/config/xunittestrunnerconfig.rb +15 -0
  25. data/lib/albacore/config/zipdirectoryconfig.rb +15 -0
  26. data/lib/albacore/csc.rb +31 -5
  27. data/lib/albacore/docu.rb +2 -3
  28. data/lib/albacore/exec.rb +3 -5
  29. data/lib/albacore/msbuild.rb +3 -3
  30. data/lib/albacore/mspectestrunner.rb +5 -6
  31. data/lib/albacore/nant.rb +4 -6
  32. data/lib/albacore/ncoverconsole.rb +4 -6
  33. data/lib/albacore/ncoverreport.rb +4 -6
  34. data/lib/albacore/ncoverreports/codecoveragebase.rb +2 -2
  35. data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +2 -2
  36. data/lib/albacore/ncoverreports/fullcoveragereport.rb +0 -8
  37. data/lib/albacore/ncoverreports/reportfilterbase.rb +2 -2
  38. data/lib/albacore/ncoverreports/summaryreport.rb +0 -4
  39. data/lib/albacore/ndepend.rb +4 -6
  40. data/lib/albacore/nunittestrunner.rb +4 -5
  41. data/lib/albacore/specflowreport.rb +2 -2
  42. data/lib/albacore/sqlcmd.rb +33 -11
  43. data/lib/albacore/support/createtask.rb +30 -0
  44. data/lib/albacore/support/runcommand.rb +21 -30
  45. data/lib/albacore/support/updateattributes.rb +13 -0
  46. data/lib/albacore/unzip.rb +3 -5
  47. data/lib/albacore/xbuild.rb +5 -6
  48. data/lib/albacore/xunittestrunner.rb +4 -5
  49. data/lib/albacore/zipdirectory.rb +5 -6
  50. data/rakefile.rb +7 -8
  51. data/spec/albacoremodel_spec.rb +20 -2
  52. data/spec/assemblyinfo_spec.rb +27 -14
  53. data/spec/config_spec.rb +17 -2
  54. data/spec/createtask_spec.rb +51 -28
  55. data/spec/csc_spec.rb +135 -3
  56. data/spec/docu_spec.rb +11 -14
  57. data/spec/exec_spec.rb +1 -1
  58. data/spec/msbuild_spec.rb +9 -9
  59. data/spec/nant_spec.rb +4 -4
  60. data/spec/ncoverconsole_spec.rb +13 -13
  61. data/spec/ncoverreport_spec.rb +17 -17
  62. data/spec/ndepend_spec.rb +6 -6
  63. data/spec/runcommand_spec.rb +22 -3
  64. data/spec/sqlcmd_spec.rb +154 -12
  65. data/spec/support/assemblyinfotester.rb +1 -1
  66. data/spec/support/spec_helper.rb +2 -2
  67. data/spec/yamlconfig_spec.rb +3 -3
  68. data/spec/zip_spec.rb +4 -4
  69. metadata +32 -119
  70. data/lib/albacore/albacoremodel.rb +0 -28
  71. data/lib/albacore/config/mspecconfig.rb +0 -21
  72. data/lib/albacore/config/nunitconfig.rb +0 -20
  73. data/lib/albacore/config/xunitconfig.rb +0 -22
  74. data/lib/albacore/config/zipconfig.rb +0 -22
  75. data/lib/rake/assemblyinfotask.rb +0 -3
  76. data/lib/rake/csctask.rb +0 -3
  77. data/lib/rake/docutask.rb +0 -3
  78. data/lib/rake/exectask.rb +0 -3
  79. data/lib/rake/msbuildtask.rb +0 -3
  80. data/lib/rake/mspectask.rb +0 -3
  81. data/lib/rake/nanttask.rb +0 -3
  82. data/lib/rake/ncoverconsoletask.rb +0 -3
  83. data/lib/rake/ncoverreporttask.rb +0 -3
  84. data/lib/rake/ndependtask.rb +0 -3
  85. data/lib/rake/nunittask.rb +0 -3
  86. data/lib/rake/specflowreporttask.rb +0 -3
  87. data/lib/rake/sqlcmdtask.rb +0 -3
  88. data/lib/rake/support/albacoretask.rb +0 -30
  89. data/lib/rake/support/createtask.rb +0 -21
  90. data/lib/rake/unziptask.rb +0 -3
  91. data/lib/rake/xbuildtask.rb +0 -7
  92. data/lib/rake/xunittask.rb +0 -3
  93. data/lib/rake/ziptask.rb +0 -3
  94. data/spec/assemblyinfotask_spec.rb +0 -32
  95. data/spec/csctask_spec.rb +0 -1
  96. data/spec/docutask_spec.rb +0 -52
  97. data/spec/exectask_spec.rb +0 -46
  98. data/spec/msbuildtask_spec.rb +0 -46
  99. data/spec/mspectask_spec.rb +0 -46
  100. data/spec/nanttask_spec.rb +0 -46
  101. data/spec/ncoverconsoletask_spec.rb +0 -46
  102. data/spec/ncoverreporttask_spec.rb +0 -46
  103. data/spec/ndependtask_spec.rb +0 -46
  104. data/spec/nunittask_spec.rb +0 -46
  105. data/spec/spec.opts +0 -1
  106. data/spec/specflowreporttask_spec.rb +0 -48
  107. data/spec/sqlcmdtask_spec.rb +0 -32
  108. data/spec/support/AssemblyInfo/assemblyinfo.yml +0 -2
  109. data/spec/support/CodeCoverage/mspec/assemblies/Machine.Specifications.NUnit.dll +0 -0
  110. data/spec/support/CodeCoverage/mspec/assemblies/Machine.Specifications.dll +0 -0
  111. data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.MSpecTests.dll +0 -0
  112. data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.dll +0 -0
  113. data/spec/support/CodeCoverage/mspec/assemblies/nunit.framework.dll +0 -0
  114. data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.Tests.dll +0 -0
  115. data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.dll +0 -0
  116. data/spec/support/CodeCoverage/nunit/assemblies/nunit.framework.dll +0 -0
  117. data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.Tests.dll +0 -0
  118. data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.dll +0 -0
  119. data/spec/support/CodeCoverage/nunit/assemblies/with spaces/nunit.framework.dll +0 -0
  120. data/spec/support/CodeCoverage/nunit/failing_assemblies/TestSolution.FailingTests.dll +0 -0
  121. data/spec/support/CodeCoverage/nunit/failing_assemblies/nunit.framework.dll +0 -0
  122. data/spec/support/CodeCoverage/report/coverage.xml +0 -4578
  123. data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.XUnitTests.dll +0 -0
  124. data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.dll +0 -0
  125. data/spec/support/CodeCoverage/xunit/assemblies/xunit.dll +0 -0
  126. data/spec/support/CodeCoverage/xunit/assemblies/xunit.xml +0 -2306
  127. data/spec/support/SpecFlow/TechTalk.SpecFlow.dll +0 -0
  128. data/spec/support/SpecFlow/TestSolution.SpecFlow.dll +0 -0
  129. data/spec/support/SpecFlow/TestSolution.SpecFlow.pdb +0 -0
  130. data/spec/support/SpecFlow/TestSolution.dll +0 -0
  131. data/spec/support/SpecFlow/TestSolution.pdb +0 -0
  132. data/spec/support/SpecFlow/nunit.framework.dll +0 -0
  133. data/spec/support/TestSolution/NDependProject.xml +0 -315
  134. data/spec/support/TestSolution/TestSolution.5.0.ReSharper.user +0 -27
  135. data/spec/support/TestSolution/TestSolution.FailingTests/FailingTestFixture.cs +0 -19
  136. data/spec/support/TestSolution/TestSolution.FailingTests/Properties/AssemblyInfo.cs +0 -36
  137. data/spec/support/TestSolution/TestSolution.FailingTests/TestSolution.FailingTests.csproj +0 -63
  138. data/spec/support/TestSolution/TestSolution.MSpecTests/Properties/AssemblyInfo.cs +0 -36
  139. data/spec/support/TestSolution/TestSolution.MSpecTests/SomeSpecTest.cs +0 -18
  140. data/spec/support/TestSolution/TestSolution.MSpecTests/TestSolution.MSpecTests.csproj +0 -77
  141. data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature +0 -8
  142. data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature.cs +0 -73
  143. data/spec/support/TestSolution/TestSolution.SpecFlow/Properties/AssemblyInfo.cs +0 -36
  144. data/spec/support/TestSolution/TestSolution.SpecFlow/StepDefinition.cs +0 -30
  145. data/spec/support/TestSolution/TestSolution.SpecFlow/TestSolution.SpecFlow.csproj +0 -84
  146. data/spec/support/TestSolution/TestSolution.Tests/Properties/AssemblyInfo.cs +0 -36
  147. data/spec/support/TestSolution/TestSolution.Tests/SomeTestFixture.cs +0 -23
  148. data/spec/support/TestSolution/TestSolution.Tests/TestSolution.Tests.csproj +0 -69
  149. data/spec/support/TestSolution/TestSolution.XUnitTests/Class1.cs +0 -19
  150. data/spec/support/TestSolution/TestSolution.XUnitTests/FailingTestFixture.cs +0 -14
  151. data/spec/support/TestSolution/TestSolution.XUnitTests/Properties/AssemblyInfo.cs +0 -36
  152. data/spec/support/TestSolution/TestSolution.XUnitTests/TestSolution.XUnitTests.csproj +0 -70
  153. data/spec/support/TestSolution/TestSolution.build +0 -25
  154. data/spec/support/TestSolution/TestSolution.sln +0 -50
  155. data/spec/support/TestSolution/TestSolution/Class1.cs +0 -17
  156. data/spec/support/TestSolution/TestSolution/Properties/AssemblyInfo.cs +0 -36
  157. data/spec/support/TestSolution/TestSolution/TestSolution.csproj +0 -59
  158. data/spec/support/csc/File1.cs +0 -9
  159. data/spec/support/csc/File2.cs +0 -9
  160. data/spec/support/csc/output/ignorethis.txt +0 -1
  161. data/spec/support/test.yml +0 -4
  162. data/spec/support/yamlconfig/msbuild.yml +0 -5
  163. data/spec/support/yamlconfig/yaml_autoconfig_test.yml +0 -1
  164. data/spec/support/zip/files/subfolder/sub file.txt +0 -1
  165. data/spec/support/zip/files/testfile.txt +0 -1
  166. data/spec/xunittask_spec.rb +0 -32
  167. data/spec/ziptask_spec.rb +0 -33
@@ -3,10 +3,10 @@ require 'albacore/support/openstruct'
3
3
 
4
4
  module Configuration
5
5
  module SpecFlowReport
6
- @specflowreportconfig = OpenStruct.new.extend(OpenStructToHash)
6
+ include Albacore::Configuration
7
7
 
8
8
  def self.specflowreportconfig
9
- @specflowreportconfig
9
+ @specflowreportconfig ||= OpenStruct.new.extend(OpenStructToHash)
10
10
  end
11
11
 
12
12
  def specflowreport
@@ -22,6 +22,3 @@ module Configuration
22
22
  end
23
23
  end
24
24
 
25
- class Albacore::Configuration
26
- include Configuration::SpecFlowReport
27
- end
@@ -3,20 +3,13 @@ require 'albacore/support/openstruct'
3
3
 
4
4
  module Configuration
5
5
  module SQLCmd
6
- @sqlcmdconfig = OpenStruct.new.extend(OpenStructToHash)
7
-
8
- def self.sqlcmdconfig
9
- @sqlcmdconfig
10
- end
6
+ include Albacore::Configuration
11
7
 
12
8
  def sqlcmd
13
- config = SQLCmd.sqlcmdconfig
14
- yield(config) if block_given?
15
- config
9
+ @sqlcmdconfig ||= OpenStruct.new.extend(OpenStructToHash)
10
+ yield(@sqlcmdconfig) if block_given?
11
+ @sqlcmdconfig
16
12
  end
17
13
  end
18
14
  end
19
15
 
20
- class Albacore::Configuration
21
- include Configuration::SQLCmd
22
- end
@@ -3,20 +3,13 @@ require 'albacore/support/openstruct'
3
3
 
4
4
  module Configuration
5
5
  module Unzip
6
- @unzipconfig = OpenStruct.new.extend(OpenStructToHash)
7
-
8
- def self.unzipconfig
9
- @unzipconfig
10
- end
6
+ include Albacore::Configuration
11
7
 
12
8
  def unzip
13
- config = Unzip.unzipconfig
14
- yield(config) if block_given?
15
- config
9
+ @unzipconfig ||= OpenStruct.new.extend(OpenStructToHash)
10
+ yield(@unzipconfig) if block_given?
11
+ @unzipconfig
16
12
  end
17
13
  end
18
14
  end
19
15
 
20
- class Albacore::Configuration
21
- include Configuration::Unzip
22
- end
@@ -3,20 +3,13 @@ require 'albacore/support/openstruct'
3
3
 
4
4
  module Configuration
5
5
  module XBuild
6
- @xbuildconfig = OpenStruct.new.extend(OpenStructToHash)
7
-
8
- def self.xbuildconfig
9
- @xbuildconfig
10
- end
6
+ include Albacore::Configuration
11
7
 
12
8
  def xbuild
13
- config = XBuild.xbuildconfig
14
- yield(config) if block_given?
15
- config
9
+ @xbuildconfig ||= OpenStruct.new.extend(OpenStructToHash)
10
+ yield(@xbuildconfig) if block_given?
11
+ @xbuildconfig
16
12
  end
17
13
  end
18
14
  end
19
15
 
20
- class Albacore::Configuration
21
- include Configuration::XBuild
22
- end
@@ -0,0 +1,15 @@
1
+ require 'ostruct'
2
+ require 'albacore/support/openstruct'
3
+
4
+ module Configuration
5
+ module XUnit
6
+ include Albacore::Configuration
7
+
8
+ def xunit
9
+ @xunitconfig ||= OpenStruct.new.extend(OpenStructToHash)
10
+ yield(@xunitconfig) if block_given?
11
+ @xunitconfig
12
+ end
13
+ end
14
+ end
15
+
@@ -0,0 +1,15 @@
1
+ require 'ostruct'
2
+ require 'albacore/support/openstruct'
3
+
4
+ module Configuration
5
+ module Zip
6
+ include Albacore::Configuration
7
+
8
+ def zip
9
+ @zipconfig ||= OpenStruct.new.extend(OpenStructToHash)
10
+ yield(@zipconfig) if block_given?
11
+ @zipconfig
12
+ end
13
+ end
14
+ end
15
+
@@ -1,26 +1,32 @@
1
- require 'albacore/albacoremodel'
1
+ require 'albacore/albacoretask'
2
2
  require 'albacore/config/cscconfig'
3
3
  require 'albacore/support/supportlinux'
4
4
 
5
5
  class CSC
6
- include AlbacoreModel
6
+ include AlbacoreTask
7
7
  include RunCommand
8
8
  include Configuration::CSC
9
9
  include SupportsLinuxEnvironment
10
10
 
11
- attr_accessor :output, :target
12
- attr_array :compile, :references
11
+ attr_accessor :output, :target, :optimize, :debug, :doc
12
+ attr_array :compile, :references, :resources, :define
13
13
 
14
14
  def initialize
15
+ @optimize = false
15
16
  super()
16
17
  update_attributes csc.to_hash
17
18
  end
18
19
 
19
20
  def execute
20
21
  params = []
22
+ params << @references.map{|r| format_reference(r)} unless @references.nil?
23
+ params << @resources.map{|r| format_resource(r)} unless @resources.nil?
21
24
  params << "\"/out:#{@output}\"" unless @output.nil?
22
25
  params << "/target:#{@target}" unless @target.nil?
23
- params << @references.map{|r| format_reference(r)} unless @references.nil?
26
+ params << "/optimize+" if @optimize
27
+ params << get_debug_param unless @debug.nil?
28
+ params << "/doc:#{@doc}" unless @doc.nil?
29
+ params << get_define_params unless @define.nil?
24
30
  params << @compile.map{|f| format_path(f)} unless @compile.nil?
25
31
 
26
32
  result = run_command "CSC", params
@@ -28,4 +34,24 @@ class CSC
28
34
  failure_message = 'CSC Failed. See Build Log For Detail'
29
35
  fail_with_message failure_message if !result
30
36
  end
37
+
38
+ def get_define_params
39
+ symbols = @define.join(";")
40
+ "/define:#{symbols}"
41
+ end
42
+
43
+ def get_debug_param
44
+ case @debug
45
+ when true
46
+ "/debug"
47
+ when :full
48
+ "/debug:full"
49
+ when :pdbonly
50
+ "/debug:pdbonly"
51
+ end
52
+ end
53
+
54
+ def format_resource(resource)
55
+ "/res:#{resource}"
56
+ end
31
57
  end
@@ -1,8 +1,7 @@
1
- require 'albacore/albacoremodel'
2
- require 'albacore/config/docuconfig'
1
+ require 'albacore/albacoretask'
3
2
 
4
3
  class Docu
5
- include AlbacoreModel
4
+ include AlbacoreTask
6
5
  include RunCommand
7
6
  include Configuration::Docu
8
7
 
@@ -1,14 +1,12 @@
1
- require 'albacore/albacoremodel'
2
- require 'albacore/config/execconfig'
1
+ require 'albacore/albacoretask'
3
2
 
4
3
  class Exec
5
- include AlbacoreModel
4
+ include AlbacoreTask
6
5
  include RunCommand
7
- include Configuration::Exec
8
6
 
9
7
  def initialize
10
8
  super()
11
- update_attributes exec.to_hash
9
+ update_attributes Albacore.configuration.exec.to_hash
12
10
  end
13
11
 
14
12
  def execute
@@ -1,8 +1,8 @@
1
- require 'albacore/albacoremodel'
1
+ require 'albacore/albacoretask'
2
2
  require 'albacore/config/msbuildconfig.rb'
3
3
 
4
4
  class MSBuild
5
- include AlbacoreModel
5
+ include AlbacoreTask
6
6
  include RunCommand
7
7
  include Configuration::MSBuild
8
8
 
@@ -15,7 +15,7 @@ class MSBuild
15
15
  update_attributes msbuild.to_hash
16
16
  end
17
17
 
18
- def build
18
+ def execute
19
19
  build_solution(@solution)
20
20
  end
21
21
 
@@ -1,10 +1,9 @@
1
- require 'albacore/albacoremodel'
2
- require 'albacore/config/mspecconfig'
1
+ require 'albacore/albacoretask'
3
2
 
4
3
  class MSpecTestRunner
5
- include AlbacoreModel
4
+ TaskName = :mspec
5
+ include AlbacoreTask
6
6
  include RunCommand
7
- include Configuration::MSpec
8
7
 
9
8
  attr_accessor :html_output
10
9
  attr_array :assemblies, :options
@@ -12,7 +11,7 @@ class MSpecTestRunner
12
11
  def initialize(command=nil)
13
12
  @assemblies=[]
14
13
  super()
15
- update_attributes mspec.to_hash
14
+ update_attributes Albacore.configuration.mspec.to_hash
16
15
  @command = command unless command.nil?
17
16
  end
18
17
 
@@ -22,7 +21,7 @@ class MSpecTestRunner
22
21
  command << get_command_parameters
23
22
  cmd = command.join(" ")
24
23
  @logger.debug "Build MSpec Test Runner Command Line: " + cmd
25
- return cmd
24
+ return cmd
26
25
  end
27
26
 
28
27
  def get_command_parameters
@@ -1,10 +1,8 @@
1
- require 'albacore/albacoremodel'
2
- require 'albacore/config/nantconfig'
1
+ require 'albacore/albacoretask'
3
2
 
4
3
  class NAnt
5
- include AlbacoreModel
4
+ include AlbacoreTask
6
5
  include RunCommand
7
- include Configuration::NAnt
8
6
 
9
7
  attr_accessor :build_file
10
8
  attr_array :targets
@@ -12,10 +10,10 @@ class NAnt
12
10
 
13
11
  def initialize
14
12
  super()
15
- update_attributes nant.to_hash
13
+ update_attributes Albacore.configuration.nant.to_hash
16
14
  end
17
15
 
18
- def run
16
+ def execute
19
17
  command_parameters = []
20
18
  command_parameters << "-buildfile:#{@build_file}" unless @build_file.nil?
21
19
  command_parameters << "#{build_properties}" unless @properties.nil?
@@ -1,10 +1,8 @@
1
- require 'albacore/albacoremodel'
2
- require 'albacore/config/ncoverconsoleconfig'
1
+ require 'albacore/albacoretask'
3
2
 
4
3
  class NCoverConsole
5
- include AlbacoreModel
4
+ include AlbacoreTask
6
5
  include RunCommand
7
- include Configuration::NCoverConsole
8
6
 
9
7
  attr_accessor :testrunner
10
8
  attr_array :cover_assemblies, :exclude_assemblies, :coverage, :exclude_attributes
@@ -18,14 +16,14 @@ class NCoverConsole
18
16
  @exclude_attributes = []
19
17
  @coverage = []
20
18
  super()
21
- update_attributes ncoverconsole.to_hash
19
+ update_attributes Albacore.configuration.ncoverconsole.to_hash
22
20
  end
23
21
 
24
22
  def no_registration
25
23
  @register_dll = false
26
24
  end
27
25
 
28
- def run
26
+ def execute
29
27
  return unless check_for_testrunner
30
28
 
31
29
  command_parameters = []
@@ -1,11 +1,9 @@
1
1
  Dir.glob(File.join(File.expand_path(File.dirname(__FILE__)), 'ncoverreports/*.rb')).each {|f| require f }
2
- require 'albacore/albacoremodel'
3
- require 'albacore/config/ncoverreportconfig'
2
+ require 'albacore/albacoretask'
4
3
 
5
4
  class NCoverReport
6
- include AlbacoreModel
5
+ include AlbacoreTask
7
6
  include RunCommand
8
- include Configuration::NCoverReport
9
7
 
10
8
  attr_array :coverage_files, :reports, :required_coverage, :filters
11
9
 
@@ -15,10 +13,10 @@ class NCoverReport
15
13
  @required_coverage = []
16
14
  @filters = []
17
15
  super()
18
- update_attributes ncoverreport.to_hash
16
+ update_attributes Albacore.configuration.ncoverreport.to_hash
19
17
  end
20
18
 
21
- def run
19
+ def execute
22
20
  return unless check_command
23
21
 
24
22
  command_parameters = []
@@ -1,8 +1,8 @@
1
- require 'albacore/albacoremodel'
1
+ require 'albacore/support/updateattributes'
2
2
 
3
3
  module NCover
4
4
  class CodeCoverageBase
5
- include AlbacoreModel
5
+ include UpdateAttributes
6
6
 
7
7
  attr_accessor :coverage_type, :minimum, :item_type
8
8
 
@@ -1,8 +1,8 @@
1
- require 'albacore/albacoremodel'
1
+ require 'albacore/support/updateattributes'
2
2
 
3
3
  module NCover
4
4
  class CyclomaticComplexity
5
- include AlbacoreModel
5
+ include UpdateAttributes
6
6
 
7
7
  attr_accessor :maximum, :item_type
8
8
 
@@ -1,15 +1,7 @@
1
- require 'albacore/albacoremodel'
2
-
3
1
  module NCover
4
2
  class FullCoverageReport
5
- include AlbacoreModel
6
-
7
3
  attr_accessor :output_path
8
4
 
9
- def initialize
10
- super()
11
- end
12
-
13
5
  def report_type
14
6
  :FullCoverageReport
15
7
  end
@@ -1,8 +1,8 @@
1
- require 'albacore/albacoremodel'
1
+ require 'albacore/support/updateattributes'
2
2
 
3
3
  module NCover
4
4
  class ReportFilterBase
5
- include AlbacoreModel
5
+ include UpdateAttributes
6
6
 
7
7
  attr_accessor :filter, :filter_type, :item_type, :is_regex
8
8
 
@@ -1,9 +1,5 @@
1
- require 'albacore/albacoremodel'
2
-
3
1
  module NCover
4
2
  class SummaryReport
5
- include AlbacoreModel
6
-
7
3
  attr_accessor :output_path
8
4
 
9
5
  def initialize
@@ -1,19 +1,17 @@
1
- require 'albacore/albacoremodel'
2
- require 'albacore/config/ndependconfig'
1
+ require 'albacore/albacoretask'
3
2
 
4
3
  class NDepend
5
- include AlbacoreModel
4
+ include AlbacoreTask
6
5
  include RunCommand
7
- include Configuration::NDepend
8
6
 
9
7
  attr_accessor :project_file
10
8
 
11
9
  def initialize()
12
10
  super()
13
- update_attributes ndepend.to_hash
11
+ update_attributes Albacore.configuration.ndepend.to_hash
14
12
  end
15
13
 
16
- def run
14
+ def execute
17
15
  return unless check_command
18
16
  result = run_command @command, create_parameters.join(" ")
19
17
  failure_message = 'Command Failed. See Build Log For Detail'