common-test

Cover report from Common Test when using rebar

懵懂的女人 提交于 2019-12-11 03:28:31
问题 I have an Erlang application that uses Rebar, and has tests written using Common Test. I'd like to see the test coverage report for these tests, so I included the following line in my rebar.config file: {cover_enabled, true}. However, the "Coverage log" link in the Common Test report just leads to a page that says "Cover tool is not used". How can I get it to use the cover tool and give me a cover report when running the tests? 回答1: The cover_enabled setting in rebar.config is necessary but

Lager calls failing during Common Test test runs

雨燕双飞 提交于 2019-12-07 07:23:37
问题 I decided to setup lager in my Erlang project. I am using erlang.mk, so I added ERLC_OPTS = +'{parse_transform, lager_transform}' to my Makefile. I can run make all and compile the modules without errors. I can also start an erl console and run the application containing the modules using lager. No errors are generated and lager logs messages during the console session. It seems as though everything is fine (this is the first time I have used lager). But, when I run Common Test, the lager