Class: BradyW::JsTest

Inherits:
BaseTask
  • Object
show all
Defined in:
lib/jstest.rb

Overview

Executes Javascript tests using Google’s JS Test. By default, the task outputs test results in plain text to stdout.

Instance Attribute Summary collapse

Attributes inherited from BaseTask

#name, #unless

Instance Attribute Details

#browsers=(value) ⇒ Object

Required List of browser paths to run the test on. (surrounded in quotes on Windows)



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

def browsers=(value)
  @browsers = value
end

#filesObject

Required Which Javascript files should be passed on to JS Test driver?



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

def files
  @files
end

#jarpath=(value) ⇒ Object

Where is the Test driver JAR located (defaults to “lib/”)



26
27
28
# File 'lib/jstest.rb', line 26

def jarpath=(value)
  @jarpath = value
end

#outpathObject

Optional If XML output is enabled, what directory should it go to (default is current)



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

def outpath
  @outpath
end

#port=(value) ⇒ Object

Optional Which port should the Test Driver Server run on (defaults to 9876)



29
30
31
# File 'lib/jstest.rb', line 29

def port=(value)
  @port = value
end

#server=(value) ⇒ Object

Optional Where should the server be running? Default is localhost, which causes the server to launch when this task is run. If you specify another server here, then this task will NOT launch a server and will instead only run the tests.



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

def server=(value)
  @server = value
end

#version=(value) ⇒ Object

Optional Google JS Test Driver in use (defaults to 1.2.1)



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

def version=(value)
  @version = value
end

#xmloutput=(value) ⇒ Object

Optional Should XML output be enabled? By default the task looks for the CCNetProject environment variable to decide this



23
24
25
# File 'lib/jstest.rb', line 23

def xmloutput=(value)
  @xmloutput = value
end