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
2a362c51
...
2a362c51abb5e70fcababf78cb91bc4561e4b433
authored
2012-10-27 22:29:04 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed single selftests were executed twice
1 parent
dc4eea0d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
2a362c5
...
...
@@ -275,12 +275,8 @@ function bootstrap(global) {
}
else
if
(
phantom
.
casperArgs
.
get
(
0
)
===
"selftest"
)
{
phantom
.
casperScript
=
fs
.
absolute
(
fs
.
pathJoin
(
phantom
.
casperPath
,
'tests'
,
'run.js'
));
phantom
.
casperSelfTest
=
true
;
phantom
.
casperArgs
.
options
.
includes
=
fs
.
pathJoin
(
phantom
.
casperPath
,
'tests'
,
'selftest.js'
);
if
(
phantom
.
casperArgs
.
args
.
length
>
1
)
{
// we want a single test file
phantom
.
casperArgs
.
args
.
push
(
fs
.
pathJoin
(
phantom
.
casperPath
,
phantom
.
casperArgs
.
get
(
1
)));
}
else
{
// run the whole casperjs test suite
//phantom.casperArgs.options.includes = fs.pathJoin(phantom.casperPath, 'tests', 'selftest.js');
if
(
phantom
.
casperArgs
.
args
.
length
<=
1
)
{
phantom
.
casperArgs
.
args
.
push
(
fs
.
pathJoin
(
phantom
.
casperPath
,
'tests'
,
'suites'
));
}
phantom
.
casperArgs
.
drop
(
"selftest"
);
...
...
Please
register
or
sign in
to post a comment