home
/
code
/
hope.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fa24061
)
Fix hope_result test grouping.
author
Siraaj Khandkar
<siraaj@khandkar.net>
Thu, 11 Dec 2014 20:42:43 +0000
(15:42 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Thu, 11 Dec 2014 20:42:43 +0000
(15:42 -0500)
test/hope_result_SUITE.erl
patch
|
blob
|
blame
|
history
diff --git
a/test/hope_result_SUITE.erl
b/test/hope_result_SUITE.erl
index
4f16b64
..
a49d451
100644
(file)
--- a/
test/hope_result_SUITE.erl
+++ b/
test/hope_result_SUITE.erl
@@
-1,5
+1,6
@@
-module(hope_result_SUITE).
-module(hope_result_SUITE).
+%% TODO: Import only what is used.
-include_lib("proper/include/proper.hrl").
%% Callbacks
-include_lib("proper/include/proper.hrl").
%% Callbacks
@@
-19,6
+20,7
@@
-define(GROUP_PIPE, result_pipe).
-define(GROUP_PIPE, result_pipe).
+-define(GROUP_SPEC, result_spec).
%% ============================================================================
%% ============================================================================
@@
-26,17
+28,25
@@
%% ============================================================================
all() ->
%% ============================================================================
all() ->
- [{group, ?GROUP_PIPE}].
+ [ {group, ?GROUP_PIPE}
+ , {group, ?GROUP_SPEC}
+ ].
groups() ->
groups() ->
- Tests =
+
Pipe
Tests =
[ t_pipe_ok
, t_pipe_error
[ t_pipe_ok
, t_pipe_error
- , t_hope_result_specs
+ ],
+ SpecTests =
+ [ t_hope_result_specs
],
Properties = [parallel],
],
Properties = [parallel],
- [{?GROUP_PIPE, Properties, Tests}].
+ [ {?GROUP_PIPE, Properties, PipeTests}
+ , {?GROUP_SPEC, Properties, SpecTests}
+ ].
+init_per_group(?GROUP_SPEC, Cfg) ->
+ Cfg;
init_per_group(?GROUP_PIPE, Cfg) ->
Steps =
[ fun (0) -> {ok, 1}; (X) -> {error, X} end
init_per_group(?GROUP_PIPE, Cfg) ->
Steps =
[ fun (0) -> {ok, 1}; (X) -> {error, X} end
@@
-45,6
+55,8
@@
init_per_group(?GROUP_PIPE, Cfg) ->
],
hope_kv_list:set(Cfg, steps, Steps).
],
hope_kv_list:set(Cfg, steps, Steps).
+end_per_group(?GROUP_SPEC, _Cfg) ->
+ ok;
end_per_group(?GROUP_PIPE, _Cfg) ->
ok.
end_per_group(?GROUP_PIPE, _Cfg) ->
ok.
This page took
0.02204 seconds
and
4
git commands to generate.