@@ -37,9 +37,19 @@ init_rebar_state(Config, Name) ->
3737 [{apps , AppsDir }, {checkouts , CheckoutsDir }, {state , State } | Config ].
3838
3939% % @doc Takes common test config, a rebar config ([] if empty), a command to
40- % % run ("install_deps", "compile", etc.), and a list of expected applications
41- % % and/or dependencies to be present, and verifies whether they are all in
42- % % place.
40+ % % run ("install_deps", "compile", etc.), and the expected term to check.
41+ % %
42+ % % The expected term can be one of
43+ % %
44+ % % - `{ok, ExpectationList}`: The expectation list is matched in the manner
45+ % % described below, using "*" for the profile.
46+ % % - `{ok, ExpectationList, ProfileUsed}`: The expectation list is matched
47+ % % in the manner described below for the given profile.
48+ % % - `{error, Reason}`: We assert that the error matches the expected reason.
49+ % % - `return`: No assertion is made.
50+ % %
51+ % % The expectation list is a list of expected applications and/or dependencies
52+ % % to be present, and verifies whether they are all in place.
4353% %
4454% % The expectation list takes elements of the form:
4555% % - `{app, Name :: string()}': checks that the app is properly built.
@@ -49,6 +59,7 @@ init_rebar_state(Config, Name) ->
4959% % has been fetched, and that a given version has been chosen. Useful to
5060% % test for conflict resolution. Also ignores the build status of the
5161% % dependency.
62+ % % - See `CONTRIBUTING.md` for more.
5263% %
5364% % This function assumes `init_rebar_state/1-2' has run before, in order to
5465% % fetch the `apps' and `state' values from the CT config.
0 commit comments