FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/test/index.js at master · dawnsgithub/nodegit · GitHub
dawnsgithub
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
test
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (22 loc) · 675 Bytes
Breadcrumbs
nodegit
/
test
/
index.js
Copy path
File metadata and controls
27 lines (22 loc) · 675 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var
fork
=
require
(
"child_process"
)
.
fork
;
var
path
=
require
(
"path"
)
;
var
bin
=
"./node_modules/.bin/istanbul"
;
var
cov
=
"cover --report=lcov --dir=test/coverage/js _mocha --"
.
split
(
" "
)
;
if
(
process
.
platform
===
'win32'
)
{
bin
=
"./node_modules/mocha/bin/mocha"
;
cov
=
[
]
;
}
var
args
=
cov
.
concat
(
[
"test/runner"
,
"test/tests"
,
"--expose-gc"
,
"--timeout"
,
"15000"
]
)
;
if
(
!
process
.
env
.
APPVEYOR
&&
!
process
.
env
.
TRAVIS
)
{
var
local
=
path
.
join
.
bind
(
path
,
__dirname
)
;
var
dummyPath
=
local
(
"home"
)
;
process
.
env
.
HOME
=
dummyPath
;
process
.
env
.
USERPROFILE
=
dummyPath
;
}
fork
(
bin
,
args
,
{
cwd
:
path
.
join
(
__dirname
,
"../"
)
}
)
.
on
(
"close"
,
process
.
exit
)
;
Back
|
FazBrowse Home
|
New Git URL