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
e62a620e
...
e62a620e82b187154ff78327a46e099f9061c851
authored
2013-02-24 11:43:28 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added clitest for a complete suite
1 parent
c190a0d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
tests/clitests/runtests.py
tests/clitests/runtests.py
View file @
e62a620
...
...
@@ -121,5 +121,33 @@ class CasperExecTest(unittest.TestCase):
'1 failed.'
,
],
failing
=
True
)
@timeout
(
60
)
def
test_full_suite
(
self
):
folder_path
=
os
.
path
.
join
(
TEST_ROOT
,
'tester'
)
failing_script
=
os
.
path
.
join
(
folder_path
,
'failing.js'
)
passsing_script
=
os
.
path
.
join
(
folder_path
,
'passing.js'
)
mytest_script
=
os
.
path
.
join
(
folder_path
,
'mytest.js'
)
self
.
assertCommandOutputContains
(
'test '
+
folder_path
,
[
'Test file:
%
s'
%
failing_script
,
'# true'
,
'FAIL Subject is strictly true'
,
'# type: assert'
,
'# file:
%
s:3'
%
failing_script
,
'# code: test.assert(false);'
,
'# subject: false'
,
'Test file:
%
s'
%
mytest_script
,
'PASS ok1'
,
'PASS ok2'
,
'PASS ok3'
,
'Test file:
%
s'
%
passsing_script
,
'# true'
,
'PASS Subject is strictly true'
,
'FAIL 5 tests executed'
,
'4 passed'
,
'1 failed'
,
'Details for the 1 failed test:'
,
'assert: Subject is strictly true'
,
],
failing
=
True
)
if
__name__
==
'__main__'
:
unittest
.
main
()
...
...
Please
register
or
sign in
to post a comment