jschaf / esup

ESUP - Emacs Start Up Profiler
398 stars 22 forks source link

Migrate tests to use buttercup #77

Closed sergeyklay closed 4 years ago

sergeyklay commented 4 years ago

% make test
Running 25 specs.

The esup-child-run during performing
  loads file (0.66ms)
  handles empty file (0.30ms)
  counts gc (20.20ms)
  uses load-path (0.80ms)
  steps into requires (0.62ms)
  handles dynamic docstring (0.47ms)
  respects require level of 1 (0.59ms)
  respects require level of 2 (0.61ms)
  handles require with sexp filename (0.52ms)
  doesn't step into already required feature (0.89ms)
  advises require (0.94ms)
  advises load (0.97ms)

Calling esup-results-equal-p to compare esup-result objects
  equal for empty lists (2.64ms)
  equal for ojects with a single element (0.14ms)
  equal for objects with three elements (0.28ms)
  equal when ignoring :gc-time (0.12ms)
  NOT equal when :gc-time are mismatch (0.19ms)
  NOT equal for objects with different elements (0.18ms)

Calling esup-results-single-equal-p to compare esup-result objects
  eaqual when ignoring slots are absent (0.13ms)
  equal when ignoring :gc-time (0.11ms)
  NOT equal when sexps are mismatch (I) (0.17ms)
  NOT equal when sexps are mismatch (II) (0.17ms)
  NOT equal when :gc-time is mismatch (0.18ms)

Making esup-result objects
  create the same object with NO extra args (0.14ms)
  create the same object with extra args (0.13ms)

Ran 25 specs, 0 failed, in 33.12ms.
codecov-io commented 4 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@4e5bf7d). Click here to learn what that means. The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #77   +/-   ##
=========================================
  Coverage          ?   36.17%           
=========================================
  Files             ?        2           
  Lines             ?      387           
  Branches          ?        0           
=========================================
  Hits              ?      140           
  Misses            ?      247           
  Partials          ?        0           
sergeyklay commented 4 years ago

Implemented

/cc @jschaf

jschaf commented 4 years ago

Nice work! Good to see code coverage in the mix.