Class: BradyW::Nunit

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

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



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

def arch=(value)
  @arch = value
end

#errors=(value) ⇒ Object

Optional Where should test errors be stored? Default is console



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

def errors=(value)
  @errors = value
end

#filesObject

Required Files/assemblies to test



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

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



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

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



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

def labels=(value)
  @labels = value
end

#output=(value) ⇒ Object

Optional Where should test output be stored? Default is console



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

def output=(value)
  @output = value
end

#path=(value) ⇒ Object

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



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

def path=(value)
  @path = value
end

#testsObject

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



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

def tests
  @tests
end

#timeout=(value) ⇒ Object

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



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

def timeout=(value)
  @timeout = value
end

#version=(value) ⇒ Object

Optional Version of NUnit in use, defaults to 2.6.2



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

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



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

def xml_output=(value)
  @xml_output = value
end