Develop 3.1 eqc (#339)

* Add EQC profile

Don't run EQC tests, unless specifically requested e.g. `./rebar3 as eqc eunit --module=leveled_eqc`

* Remove eqc_cover parse_transform

Causes a compilation issue with the assertException in leveled_runner

* Allow EQC test to compile

EQC only works on OTP 22 for now, but other tests should still work on OTP 22 and OTP 24

* Add more complex statem based eqc test

* Add check for eqc profile
This commit is contained in:
Martin Sumner 2021-05-26 17:40:09 +01:00 committed by GitHub
parent 46ebc6f8ff
commit 2cb87f3a6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1742 additions and 4 deletions

View file

@ -805,6 +805,12 @@ wrap_runner(FoldAction, AfterAction) ->
-ifdef(TEST).
%% Note in OTP 22 we see a compile error with the assertException if using the
%% eqc_cover parse_transform. This test is excluded in the eqc profle, due to
%% this error
-ifdef(EQC).
throw_test() ->
StoppedFolder =
fun() ->
@ -823,6 +829,7 @@ throw_test() ->
?assertException(throw, stop_fold,
wrap_runner(StoppedFolder, AfterAction)).
-endif.
-endif.