Class: BradyW::JsTest
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
-
#browsers ⇒ Object
writeonly
Required List of browser paths to run the test on.
-
#files ⇒ Object
Required Which Javascript files should be passed on to JS Test driver?.
-
#jarpath ⇒ Object
writeonly
Where is the Test driver JAR located (defaults to “lib/”).
-
#outpath ⇒ Object
Optional If XML output is enabled, what directory should it go to (default is current).
-
#port ⇒ Object
writeonly
Optional Which port should the Test Driver Server run on (defaults to 9876).
-
#server ⇒ Object
writeonly
Optional Where should the server be running? Default is localhost, which causes the server to launch when this task is run.
-
#version ⇒ Object
writeonly
Optional Google JS Test Driver in use (defaults to 1.2.1).
-
#xmloutput ⇒ Object
writeonly
Optional Should XML output be enabled? By default the task looks for the CCNetProject environment variable to decide this.
Attributes inherited from BaseTask
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 |
#files ⇒ Object
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 |
#outpath ⇒ Object
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 |