Skip to content

Commit

Permalink
Invoke cover in a correct fashion to generate HTML output
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Jensen committed Oct 2, 2013
1 parent 34600f0 commit 7d20407
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .coverignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
inputs.js
jalangi_tmp/inputs.js
../node_modules/
../src/js/InputManager.js
node_modules/
Expand Down
2 changes: 1 addition & 1 deletion src/python/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def rerunall(filee, jalangi=util.DEFAULT_INSTALL):
if jalangi.coverage():
time.sleep(2)
os.system("cover combine")
os.system("cover report")
os.system("cover report html")
shutil.copy("cover_html/index.html","../jalangi/out/out.html")
for x in glob.glob("cover_html/*.*"):
shutil.copy(x, "../jalangi/out/".format(x))
Expand Down
2 changes: 1 addition & 1 deletion src/python/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def run_node_script(script, *args, **kwargs):
else:
cmd = []
if jal.coverage():
cmd = cmd + ["cover", "run"]
cmd = cmd + ["cover", "-i", os.path.join(jal.get_home(),".coverignore"), "run"]
cmd = cmd + ([find_node()] if not jal.coverage() else [])
with NamedTemporaryFile() as f:
try:
Expand Down

0 comments on commit 7d20407

Please sign in to comment.