Skip to content

Commit

Permalink
Minor configuration refinements.
Browse files Browse the repository at this point in the history
  • Loading branch information
walter-weinmann committed Feb 10, 2017
1 parent baaf57f commit 79c55ee
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 43 deletions.
27 changes: 14 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
*.dot
/_build
/erl_crash.dump
/rebar.lock
/src/oclexer.erl
/src/oclexer_legacy.erl
/src/ocparse.erl
/src/ocparse_legacy.erl
/test/*.beam
/test/generic_*.legacy
/test/generic_*.tst
/test/generic_*_SUITE.erl
/test/wwe.*
_build
erl_crash.dump
rebar.lock
src/oclexer.dot
src/oclexer.erl
src/oclexer_legacy.dot
src/oclexer_legacy.erl
src/ocparse.erl
src/ocparse_legacy.erl
test/*.beam
test/generic_*.legacy
test/generic_*.tst
test/generic_*_SUITE.erl
test/wwe.*
10 changes: 6 additions & 4 deletions cover.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{level, details}.
{incl_app, ocparse, details}.
{excl_mods, ocparse, [app_SUITE]}.
{incl_dirs_r, ["src"]}.
{src_dirs, ocparse, ["src"]}.
{excl_mods, [
oclexer,
oclexer_legacy,
ocparse,
ocparse_legacy
]}.
17 changes: 6 additions & 11 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{cover_enabled, true}.
{cover_excl_mods, [
oclexer,
oclexer_legacy,
ocparse,
ocparse_legacy
]}.

{ct_cover, true}.
{ct_verbose, true}.
Expand All @@ -17,17 +23,6 @@
{skip_deps, true},
verbose
]}.
{eunit_exclude_deps, true}.

{profiles, [
{prod, [
{erl_opts, [no_debug_info,
warnings_as_errors]}
]},
{test, [
{erl_opts, [debug_info]}
]}
]}.

{xref_checks, [
deprecated_functions,
Expand Down
11 changes: 2 additions & 9 deletions src/ocparse.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,10 @@
{mod, {ocparse, []}},
{modules,
[
generate_test_data,
oclexer,
oclexer_legacy,
ocparse,
ocparse_fold,
ocparse_fold_legacy,
ocparse_legacy,
octest,
octest_legacy
ocparse_legacy
]
},
{vsn, "1.2.4"}
{vsn, "1.2.6"}
]
}.
12 changes: 6 additions & 6 deletions test/ocparse_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ test_cypher(_TestGroup, Test, Logs) ->
throw({error, "Error catch ?assertEqual(ParseTree, NPTree)"})
end,
?D4("~n ~p~n", [ParseTree]);
{lex_error, Error} ->
{lex_error, _Error} ->
?D_("Failed lex_error : Test ~n > ~p", [Test]),
?D_("Failed lex_error : Error~n > ~p", [Error]),
?assertEqual(ok, Error);
{parse_error, {Error, _Tokens}} ->
?D_("Failed lex_error : Error~n > ~p", [_Error]),
?assertEqual(ok, _Error);
{parse_error, {_Error, _Tokens}} ->
?D_("Failed parse_error : Test ~n > ~p", [Test]),
?D_("Failed parse_error : Error ~n > ~p", [Error]),
?D_("Failed parse_error : Error ~n > ~p", [_Error]),
?D_("Failed parse_error : Tokens~n > ~p", [_Tokens]),
?assertEqual(ok, Error)
?assertEqual(ok, _Error)
end.

0 comments on commit 79c55ee

Please sign in to comment.