projects
/
erlang-estap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e62c07
)
Added calling estap_file module in bin/estap.
author
Stanislaw Klekot
<dozzie@jarowit.net>
Sun, 14 Jun 2015 20:32:39 +0000
(22:32 +0200)
committer
Stanislaw Klekot
<dozzie@jarowit.net>
Sun, 14 Jun 2015 20:32:39 +0000
(22:32 +0200)
bin/estap
patch
|
blob
|
history
diff --git
a/bin/estap
b/bin/estap
index
115f7cb
..
83485b4
100755
(executable)
--- a/
bin/estap
+++ b/
bin/estap
@@
-8,7
+8,9
@@
main(["--help"]) ->
io:fwrite("Usage: ~s filename~n", [escript:script_name()]);
main([File]) ->
- 'TODO'.
+ {ok, {Module, Forms}} = estap_file:read_file(File, []),
+ {ok, {Plan, Tests}} = estap_file:load_code(Forms),
+ io:fwrite("plan: ~p~ntests: ~p~n", [Plan, Tests]).
%%----------------------------------------------------------------------------
%% vim:ft=erlang