Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
72f46162
...
72f461629cb0d241b07d288af9ba2d42bee96cea
authored
2013-11-20 20:34:39 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refs #546 - even better 1.1 strategy for storing successes/failures
1 parent
fb304b7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
docs/modules/tester.rst
docs/modules/tester.rst
View file @
72f4616
...
...
@@ -785,7 +785,13 @@ That will give something like this:
.. note::
In CasperJS 1.1, you can retrieve test failure records by simply accessing `tester.currentSuite.failures`.
In CasperJS 1.1, you can store test successes by recording them listening to the tester ``pass`` event::
var failures = [];
casper.test.on("fail", function(failure) {
failures.push(failure);
});
``getPasses()``
-------------------------------------------------------------------------------
...
...
@@ -826,7 +832,13 @@ That will give something like this::
.. note::
In CasperJS 1.1, you can retrieve test success records by simply accessing `tester.currentSuite.passes`.
In CasperJS 1.1, you can store test successes by recording them listening to the tester ``pass`` event::
var successes = [];
casper.test.on("pass", function(success) {
successes.push(success);
});
``info()``
-------------------------------------------------------------------------------
...
...
Please
register
or
sign in
to post a comment