Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Enable code coverage for eunit + bindingtester
The EUnit coverage is on by default. The bindingtester can be enabled by defining the COVER_ENABLED environment variable. It writes to the same directory that EUnit does; namely "_build/test/cover/" if ERL_LIBS is defined to point to the "test" profile for erlfdb (as it should be for code coverage analysis). For example: COVER_ENABLED=1 ERL_LIBS=_build/test/lib/erlfdb /usr/src/foundationdb/bindings/bindingtester/bindingtester.py erlang --test-name api --instruction-prefix api --num-ops 10000 We could try to be a little smarter here and align to rebar3's config options, but I didn't bother with that for now.
- Loading branch information