Class: FluentCommandBuilder::NUnit::V25::NUnit

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/nunit_25.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, input_files = nil) ⇒ NUnit

Returns a new instance of NUnit.



24
25
26
27
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 24

def initialize(underlying_builder, input_files=nil)
  super underlying_builder
  @b.append " #{@b.format input_files}" unless input_files.nil?
end

Instance Method Details

#config(config) {|@b| ... } ⇒ Object

Yields:

  • (@b)


48
49
50
51
52
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 48

def config(config)
  @b.append " -config:#{@b.format config}"
  yield @b if block_given?
  self
end

#domain(domain) {|@b| ... } ⇒ Object

Yields:

  • (@b)


103
104
105
106
107
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 103

def domain(domain)
  @b.append " -domain:#{@b.format domain}"
  yield @b if block_given?
  self
end

#err(file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


73
74
75
76
77
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 73

def err(file)
  @b.append " -err:#{@b.format file}"
  yield @b if block_given?
  self
end

#exclude(category) {|@b| ... } ⇒ Object

Yields:

  • (@b)


93
94
95
96
97
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 93

def exclude(category)
  @b.append " -exclude:#{@b.format category}"
  yield @b if block_given?
  self
end

#fixture(fixture) {|@b| ... } ⇒ Object

Yields:

  • (@b)


33
34
35
36
37
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 33

def fixture(fixture)
  @b.append " -fixture:#{@b.format fixture}"
  yield @b if block_given?
  self
end

#framework(framework) {|@b| ... } ⇒ Object

Yields:

  • (@b)


108
109
110
111
112
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 108

def framework(framework)
  @b.append " -framework:#{@b.format framework}"
  yield @b if block_given?
  self
end

#help {|@b| ... } ⇒ Object

Yields:

  • (@b)


143
144
145
146
147
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 143

def help
  @b.append ' -help'
  yield @b if block_given?
  self
end

#include(category) {|@b| ... } ⇒ Object

Yields:

  • (@b)


88
89
90
91
92
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 88

def include(category)
  @b.append " -include:#{@b.format category}"
  yield @b if block_given?
  self
end

#input_files(input_files) {|@b| ... } ⇒ Object

Yields:

  • (@b)


28
29
30
31
32
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 28

def input_files(input_files)
  @b.append " #{@b.format input_files}"
  yield @b if block_given?
  self
end

#labels {|@b| ... } ⇒ Object

Yields:

  • (@b)


78
79
80
81
82
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 78

def labels
  @b.append ' -labels'
  yield @b if block_given?
  self
end

#load(fixture) {|@b| ... } ⇒ Object

Yields:

  • (@b)


38
39
40
41
42
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 38

def load(fixture)
  @b.append " -load:#{@b.format fixture}"
  yield @b if block_given?
  self
end

#no_dots {|@b| ... } ⇒ Object

Yields:

  • (@b)


138
139
140
141
142
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 138

def no_dots
  @b.append ' -noDots'
  yield @b if block_given?
  self
end

#no_logo {|@b| ... } ⇒ Object

Yields:

  • (@b)


133
134
135
136
137
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 133

def 
  @b.append ' -noLogo'
  yield @b if block_given?
  self
end

#no_shadow {|@b| ... } ⇒ Object

Yields:

  • (@b)


113
114
115
116
117
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 113

def no_shadow
  @b.append ' -noShadow'
  yield @b if block_given?
  self
end

#no_thread {|@b| ... } ⇒ Object

Yields:

  • (@b)


118
119
120
121
122
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 118

def no_thread
  @b.append ' -noThread'
  yield @b if block_given?
  self
end

#out(file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


68
69
70
71
72
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 68

def out(file)
  @b.append " -out:#{@b.format file}"
  yield @b if block_given?
  self
end

#output(file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


63
64
65
66
67
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 63

def output(file)
  @b.append " -output:#{@b.format file}"
  yield @b if block_given?
  self
end

#process(process) {|@b| ... } ⇒ Object

Yields:

  • (@b)


98
99
100
101
102
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 98

def process(process)
  @b.append " -process:#{@b.format process}"
  yield @b if block_given?
  self
end

#run(test) {|@b| ... } ⇒ Object

Yields:

  • (@b)


43
44
45
46
47
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 43

def run(test)
  @b.append " -run:#{@b.format test}"
  yield @b if block_given?
  self
end

#timeout(timeout) {|@b| ... } ⇒ Object

Yields:

  • (@b)


123
124
125
126
127
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 123

def timeout(timeout)
  @b.append " -timeout:#{@b.format timeout}"
  yield @b if block_given?
  self
end

#trace(level) {|@b| ... } ⇒ Object

Yields:

  • (@b)


83
84
85
86
87
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 83

def trace(level)
  @b.append " -trace:#{@b.format level}"
  yield @b if block_given?
  self
end

#wait {|@b| ... } ⇒ Object

Yields:

  • (@b)


128
129
130
131
132
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 128

def wait
  @b.append ' -wait'
  yield @b if block_given?
  self
end

#xml(file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


53
54
55
56
57
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 53

def xml(file)
  @b.append " -xml:#{@b.format file}"
  yield @b if block_given?
  self
end

#xml_console {|@b| ... } ⇒ Object

Yields:

  • (@b)


58
59
60
61
62
# File 'lib/fluent_command_builder/command_builders/nunit_25.rb', line 58

def xml_console
  @b.append ' -xmlConsole'
  yield @b if block_given?
  self
end