changed
hex_metadata.config
|
@@ -24,4 +24,4 @@
|
24
24
|
[{<<"app">>,<<"proper">>},
|
25
25
|
{<<"optional">>,false},
|
26
26
|
{<<"requirement">>,<<"~>1.3.0">>}]}]}.
|
27
|
- {<<"version">>,<<"0.5.0">>}.
|
27
|
+ {<<"version">>,<<"0.6.0">>}.
|
changed
include/snabbkaffe.hrl
|
@@ -29,7 +29,7 @@
|
29
29
|
|
30
30
|
-define(tp(Level, Kind, Evt),
|
31
31
|
(fun() ->
|
32
|
- ?maybe_crash(Evt #{kind => Kind}),
|
32
|
+ ?maybe_crash(Evt #{?snk_kind => Kind}),
|
33
33
|
snabbkaffe_collector:tp(Kind, Evt)
|
34
34
|
end)()).
|
35
35
|
|
|
@@ -115,7 +115,6 @@
|
115
115
|
"dumb" -> [nocolors];
|
116
116
|
_ -> []
|
117
117
|
end,
|
118
|
- __SnkPrint = fun(Fmt, Args) -> ?log(notice, Fmt, Args) end,
|
119
118
|
__SnkRet = proper:quickcheck(
|
120
119
|
?TIMEOUT( __SnkTimeout
|
121
120
|
, begin
|
|
@@ -124,7 +123,7 @@
|
124
123
|
end)
|
125
124
|
, [ {numtests, __SnkNumtests}
|
126
125
|
, {max_size, __SnkMaxSize}
|
127
|
- , {on_output, __SnkPrint}
|
126
|
+ , {on_output, fun snabbkaffe:proper_printout/2}
|
128
127
|
] ++ __SnkColors
|
129
128
|
),
|
130
129
|
case __SnkRet of
|
changed
src/snabbkaffe.app.src
|
@@ -1,6 +1,6 @@
|
1
1
|
{application,snabbkaffe,
|
2
2
|
[{description,"Simple trace-based testing framework"},
|
3
|
- {vsn,"0.5.0"},
|
3
|
+ {vsn,"0.6.0"},
|
4
4
|
{registered,[]},
|
5
5
|
{applications,[kernel,stdlib,hut]},
|
6
6
|
{env,[]},
|
changed
src/snabbkaffe.erl
|
@@ -25,6 +25,7 @@
|
25
25
|
, fix_ct_logging/0
|
26
26
|
, splitl/2
|
27
27
|
, splitr/2
|
28
|
+ , proper_printout/2
|
28
29
|
]).
|
29
30
|
|
30
31
|
-export([ events_of_kind/2
|
|
@@ -237,6 +238,14 @@ run(Config, Run, Check) ->
|
237
238
|
{error, {run_stage_failed, EC, Error, Stack}}
|
238
239
|
end.
|
239
240
|
|
241
|
+ -spec proper_printout(string(), list()) -> _.
|
242
|
+ proper_printout(Char, []) when Char =:= ".";
|
243
|
+ Char =:= "x";
|
244
|
+ Char =:= "!" ->
|
245
|
+ io:put_chars(standard_error, Char);
|
246
|
+ proper_printout(Fmt, Args) ->
|
247
|
+ ?log(notice, Fmt, Args).
|
248
|
+
|
240
249
|
%%====================================================================
|
241
250
|
%% List manipulation functions
|
242
251
|
%%====================================================================
|