Class: IronHammer::Projects::TestProject

Inherits:
GenericProject show all
Defined in:
lib/iron_hammer/projects/test_project.rb

Instance Attribute Summary collapse

Attributes inherited from GenericProject

#csproj, #name, #path

Instance Method Summary collapse

Methods inherited from GenericProject

#artifacts, #assembly_info, #assembly_name, #deliverables, #dependencies, #dependencies_with_projects, #package, #path_to_binaries, #project_references, #version, #version=

Constructor Details

#initialize(params = {}) ⇒ TestProject

Returns a new instance of TestProject.



9
10
11
12
13
14
# File 'lib/iron_hammer/projects/test_project.rb', line 9

def initialize params = {}
  params[:name] ||= "#{ params[:project] || params[:solution] }.Tests"
  @dll    = "#{params[:dll]}.dll" if params[:dll]
  @config = params[:config]   || IronHammer::Defaults::TEST_CONFIG
  super(params)
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



7
8
9
# File 'lib/iron_hammer/projects/test_project.rb', line 7

def config
  @config
end

Instance Method Details

#container(configuration) ⇒ Object



19
20
21
# File 'lib/iron_hammer/projects/test_project.rb', line 19

def container configuration
  [@path, 'bin', configuration, dll].patheticalize
end

#dllObject



16
17
18
# File 'lib/iron_hammer/projects/test_project.rb', line 16

def dll
  @dll ||= "#{assembly_name}.dll"
end

#results_fileObject



23
24
25
# File 'lib/iron_hammer/projects/test_project.rb', line 23

def results_file
  ['TestResults', 'TestResults.trx'].patheticalize
end