Class: IronHammer::Projects::TestProject
- Inherits:
-
GenericProject
- Object
- GenericProject
- IronHammer::Projects::TestProject
- Defined in:
- lib/iron_hammer/projects/test_project.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Attributes inherited from GenericProject
Instance Method Summary collapse
- #container(configuration) ⇒ Object
- #dll ⇒ Object
-
#initialize(params = {}) ⇒ TestProject
constructor
A new instance of TestProject.
- #results_file ⇒ Object
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
#config ⇒ Object
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 |
#dll ⇒ Object
16 17 18 |
# File 'lib/iron_hammer/projects/test_project.rb', line 16 def dll @dll ||= "#{assembly_name}.dll" end |
#results_file ⇒ Object
23 24 25 |
# File 'lib/iron_hammer/projects/test_project.rb', line 23 def results_file ['TestResults', 'TestResults.trx'].patheticalize end |