ramsay-t / Smother

Extended code coverage metrics for Erlang.
36 stars 9 forks source link

NEW Basic escriptize support #6

Closed quiquepaz closed 10 years ago

quiquepaz commented 10 years ago
quiquepaz commented 10 years ago

@ramsay-t Is this of any interest for you? Should I mail you to discuss the approach?

ramsay-t commented 10 years ago

Its certainly interesting! I haven't seen ascriptive before (but then I'm pretty new to rebar...) but something that would allow me to form a catch process to smother compile -> run tests -> generate output in sensible ways would be great.

I'm currently in the middle of a fairly drastic overhaul of the way Smother generates reports, since it was a pretty dodgy hack in the prototype.

Let me know if Smother is useful to you; its still part of an EU funded research project, so feedback is really valuable!

quiquepaz commented 10 years ago

Smother is definitely nice, and I'm happy to hear about the report generation being reworked. So that's your positive feedback. On the negative side, I haven't been able to make it work with the preprocess option (although I haven't look deeply into it).

In short, this PR provides you with 2 things:

-ifdef(TEST).
-export([...]).
-endif.

... for testing unexported functions, since the TEST macro is automatically defined when you use rebar eunit.