erlang-eunit: optionally run code coverage analysis during eunit tests

Klas Johansson klas.johansson@REDACTED
Thu May 27 23:01:20 CEST 2010


Hi,

This patch adds code coverage analysis support to the EUnit
additions for Emacs that I contributed last year.

    erlang-eunit: Optionally run code coverage analysis during eunit tests

    Add a number of features to the emacs mode which make it easier to
    work with eunit test cases while keeping track of code coverage.

    * C-cC-ec:
      Compile the module under test for code coverage analysis, run tests
      and show the results of the coverage analysis in a new buffer.

    * C-c-C-ev:
      Compile the current module for code coverage analysis.

    * C-cC-ea:
      Show the results of the coverage analysis in a new buffer.

Since Chris Bernard added some features recently [1] to
erlang-eunit.el and our changes overlap a bit, I chose to base my
changes on his branch.  This was before his changes were merged
into 'pu'.  I hope that's OK.

    git fetch git://github.com/klajo/otp.git
emacs-eunit-with-cover-from-run-current-test


Cheers,
Klas


More information about the erlang-patches mailing list