Class: BradyW::Nunit

Inherits:
BaseTask
  • Object
show all
Includes:
Dotframeworksymbolhelp
Defined in:
lib/nunit.rb

Constant Summary collapse

PROGRAM_FILES_DIR =
"C:/Program Files (x86)"

Instance Attribute Summary collapse

Attributes inherited from BaseTask

#name, #unless

Method Summary

Methods included from Dotframeworksymbolhelp

#convertToNumber

Instance Attribute Details

#arch=(value) ⇒ Object

Optional Should :x86 or :anycpu archiecture be used? Default is :anycpu



40
41
42
# File 'lib/nunit.rb', line 40

def arch=(value)
  @arch = value
end

#errors=(value) ⇒ Object

Optional Where should test errors be stored? Default is console



37
38
39
# File 'lib/nunit.rb', line 37

def errors=(value)
  @errors = value
end

#filesObject

Required Files/assemblies to test



10
11
12
# File 'lib/nunit.rb', line 10

def files
  @files
end

#framework_version=(value) ⇒ Object

Optional What version of the .NET framework to use for the tests? :v2_0, :v3_5, :v4_0, :v4_5, defaults to :v4_5



16
17
18
# File 'lib/nunit.rb', line 16

def framework_version=(value)
  @framework_version = value
end

#labels=(value) ⇒ Object

Optional Should labels be printed in the test output, default is :include_labels, can also say :exclude_labels



31
32
33
# File 'lib/nunit.rb', line 31

def labels=(value)
  @labels = value
end

#output=(value) ⇒ Object

Optional Where should test output be stored? Default is console



34
35
36
# File 'lib/nunit.rb', line 34

def output=(value)
  @output = value
end

#pathObject

Optional Full path of nunit-console.exe, defaults to C:Program Files (x86)NUnit $#versionbinnunit-console.exe



19
20
21
# File 'lib/nunit.rb', line 19

def path
  @path
end

#testsObject

Optional Which tests should be run (specify namespace+class), can be multiple, defaults to all in class



25
26
27
# File 'lib/nunit.rb', line 25

def tests
  @tests
end

#timeout=(value) ⇒ Object

Optional Timeout for each test case in milliseconds, by default the timeout is 35 seconds



22
23
24
# File 'lib/nunit.rb', line 22

def timeout=(value)
  @timeout = value
end

#version=(value) ⇒ Object

Optional Version of NUnit in use, defaults to 2.6.2



13
14
15
# File 'lib/nunit.rb', line 13

def version=(value)
  @version = value
end

#xml_output=(value) ⇒ Object

Optional Should XML be outputted? By default the answer is no, but set this to :enabled if you want XML output



28
29
30
# File 'lib/nunit.rb', line 28

def xml_output=(value)
  @xml_output = value
end