[ruby-cvs:66948] mame:r59770 (trunk): Measure the test coverage without SimpleCov

mame at ruby-lang.org mame at ruby-lang.org
Fri Sep 8 00:40:29 JST 2017

mame	2017-09-08 00:40:29 +0900 (Fri, 08 Sep 2017)

  New Revision: 59770


    Measure the test coverage without SimpleCov
    Now `make test-all COVERAGE=true` measures the test coverage by using
    `coverage.so` directly, and visualize the result by simplecov-html.
    There has been some problems in coverage measurement with SimpleCov.
    (They are not SimpleCov's fault, though.)
    (1) It is difficult to extract the measured data as a machine-readable
    format, such as Marshal.  I want to visualize the coverage data with
    other coverage tools, such as LCOV and Cobertura.
    (I know we can use SimpleCov's formatter mechanism, but I don't want
    to depend upon SimpleCov so much.)
    (2) SimpleCov seems to miss some coverage data.  For example,
    `lib/cgi.rb` and `lib/ostruct.rb` are dropped.  I don't know why.
    (3) I have a plan to enhance `coverage.so` with branch coverage.
    It would be difficult to continue to only use SimpleCov as is.
    This is the most important reason.

  Added files:
  Modified files:

More information about the ruby-cvs mailing list