all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: m h <sesquile@gmail.com>
To: emacs-devel@gnu.org
Subject: code coverage mode?
Date: Thu, 22 Oct 2009 01:25:22 -0600	[thread overview]
Message-ID: <e36b84ee0910220025w22506572j10daa81edd122c23@mail.gmail.com> (raw)

Hey all-

I'm implementing emacs support for code coverage tools in python.

I've currently got some code [0], that will show coverage data in two ways:

* flymake mode
* compile mode

I like the flymake style, yet I still want to really use flymake for
how it was intended.  (Plus I don't want to be re-running coverage
analysis on every change, since it only really changes when you
instrument the code.  Also if you edit the code then your coverage
data is probably stale (unless you're clever about it, which I'm not)
So I guess in that way it's more like compile mode).  I'm not a lisper
by any means, I'm hacking stuff together here.  But if this were
python then I'd create a subclass of flymake and use that for
coverage, while still using the former for its normal use (syntax
checking).

My recent work has been a simple test finder.  The idea being that you
are working on a function and want to see what kind of coverage you
have for that function.  So you invoke the run-function-tests (or
something similar) and it will run only tests that invoke that
function directly and report coverage on that.  View the results,
tweak the tests to get more coverage.  Rinse, repeat....

So I figure before I go off and hack a kludgey solution, I thought I'd
ask the experts if they have any ideas or suggestions.  It'd be cooler
to implement it the "right way" if others (other languages) could take
advantage of it and use it as well.

thoughts?  Does anyone here care about coverage?  What features would they want?

(if this is OT kindly redirect me to the correct place :))

thanks much!

-matt

0 - http://github.com/mattharrison/pycoverage.el




             reply	other threads:[~2009-10-22  7:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-22  7:25 m h [this message]
2009-10-22 15:48 ` code coverage mode? Stefan Monnier
2009-10-22 16:17   ` m h

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e36b84ee0910220025w22506572j10daa81edd122c23@mail.gmail.com \
    --to=sesquile@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.