Sets values from nested element config
Sets values from nested element config
.
Sets value from nested element excludes
Sets value from nested element excludes
.
The excludes
attribute has been deprecated and will be removed in a future version of ScalaTest.
Please use the tagsToExclude
attribute instead.
Sets value from nested element includes
Sets value from nested element includes
.
The includes
attribute has been deprecated and will be removed in a future version of ScalaTest.
Please use the tagsToInclude
attribute instead.
Sets value from nested element jvmarg
Sets value from nested element jvmarg
.
Sets value from nested element membersonly
Sets value from nested element membersonly
.
Sets values from nested element property
Sets values from nested element property
.
The property
attribute has been deprecated and will be removed in a future version of ScalaTest.
Please use the config
attribute instead.
Sets value from nested element reporter
Sets value from nested element reporter
.
Sets value from nested element runpath
Sets value from nested element runpath
.
Sets value from nested element runpathurl
Sets value from nested element runpathurl
.
Sets value from nested element suite
Sets value from nested element suite
.
Sets value from nested element excludes
Sets value from nested element excludes
.
Sets value from nested element tagsToInclude
Sets value from nested element tagsToInclude
.
Sets value from nested element testngsuites
Sets value from nested element testngsuites
.
Sets value from nested element wildcard
Sets value from nested element wildcard
.
This method creates and returns a copy of the receiver object
This method creates and returns a copy of the receiver object.
The default implementation of the clone
method is platform dependent.
This method is used to compare the receiver object (this
)
with the argument object (arg0
) for equivalence
This method is used to compare the receiver object (this
)
with the argument object (arg0
) for equivalence.
The default implementations of this method is an equivalence relation:
x
of type Any
,
x.equals(x)
should return true
.x
and y
of type
Any
, x.equals(y)
should return true
if and only
if y.equals(x)
returns true
.x
, y
, and z
of type AnyRef
if x.equals(y)
returns true
and
y.equals(z)
returns
true
, then x.equals(z)
should return true
.
If you override this method, you should verify that
your implementation remains an equivalence relation.
Additionally, when overriding this method it is often necessary to
override hashCode
to ensure that objects that are
"equal" (o1.equals(o2)
returns true
)
hash to the same Int
(o1.hashCode.equals(o2.hashCode)
).
the object to compare against this object for equality.
true
if the receiver object is equivalent to the argument; false
otherwise.
Executes the task
Executes the task.
Returns a hash code value for the object
Returns a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash
codes (o1.hashCode.equals(o2.hashCode)
) yet not be
equal (o1.equals(o2)
returns false
). A
degenerate implementation could always return 0
.
However, it is required that if two objects are equal
(o1.equals(o2)
returns true
) that they
have identical hash codes
(o1.hashCode.equals(o2.hashCode)
). Therefore, when
overriding this method, be sure to verify that the behavior is
consistent with the equals
method.
Sets value of the concurrent
attribute
Sets value of the concurrent
attribute.
Note: The concurrent
attribute has been deprecated and will be removed in a future version of ScalaTest.
Please use the parallel
attribute instead.
Sets value of the fork
attribute
Sets value of the fork
attribute.
Sets value of the haltonfailure
attribute
Sets value of the haltonfailure
attribute.
Sets value of the maxmemory
attribute
Sets value of the maxmemory
attribute.
Sets value of membersonly
attribute
Sets value of membersonly
attribute.
Sets value of the numthreads
attribute
Sets value of the numthreads
attribute.
Sets value of the parallel
attribute
Sets value of the parallel
attribute.
Sets value of the runpath
attribute
Sets value of the runpath
attribute.
Sets value of suite
attribute
Sets value of suite
attribute.
Sets value of the testngsuites
attribute
Sets value of the testngsuites
attribute.
Sets value of wildcard
attribute
Sets value of wildcard
attribute.
Returns a string representation of the object
Returns a string representation of the object.
The default representation is platform dependent.
An ant task to run ScalaTest. Instructions on how to specify various options are below. See the scaladocs for the
Runner
class for a description of what each of the options does.To use the ScalaTest ant task, you must first define it in your ant file using
taskdef
. Here's an example:Once defined, you use the task by specifying information in a
scalatest
element:You can place key value pairs into the
configMap
using nested<config>
elements, like this:You can specify a runpath using either a
runpath
attribute and/or nested<runpath>
elements, using standard ant path notation:or
To add a URL to your runpath, use a
<runpathurl>
element (since ant paths don't support URLs):You can specify reporters using nested
<reporter>
elements, where thetype
attribute must be one of the following:graphic
file
junitxml
stdout
stderr
reporterclass
Each may include a
config
attribute to specify the reporter configuration. Typesfile
,junitxml
andreporterclass
require additional attributesfilename
,directory
, andclassname
, respectively:Specify tags to include and/or exclude using
<tagsToInclude>
and<tagsToExclude>
elements, like this:To specify suites to run, use either a
suite
attribute or nested<suite>
elements:or
To specify suites using members-only or wildcard package names, use either the
membersonly
orwildcard
attributes, or nested<membersonly>
or<wildcard>
elements:or
or
Use attribute
parallel="true"
to specify parallel execution of suites. (If theparallel
attribute is left out or set to false, suites will be executed sequentially by one thread.) Whenparallel
is true, you can include an optionalnumthreads
attribute to specify the number of threads to be created in thread pool (e.g.,numthreads="10"
).Use attribute
haltonfailure="true"
to cause ant to fail the build if there's a test failure.Use attribute
fork="true"
to cause ant to run the tests in a separate process.When
fork
istrue
, attributemaxmemory
may be used to specify the maximum memory size that will be passed to the forked jvm. For example, the following setting will cause"-Xmx1280M"
to be passed to the java command used to run the tests.When
fork
is true, nested<jvmarg>
elements may be used to pass additional arguments to the forked jvm. For example, if you are running into 'PermGen space' memory errors, you could add the followingjvmarg
to bump up the JVM'sMaxPermSize
value: