caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Test coverage of generated lexers/parsers
@ 2016-03-06 19:53 Vincent Jacques
  2016-03-06 22:53 ` Gabriel Scherer
  0 siblings, 1 reply; 5+ messages in thread
From: Vincent Jacques @ 2016-03-06 19:53 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 838 bytes --]

Hello,

Does somebody have experience measuring test coverage of generated
lexers/parsers?

I'm using ocamllex/ocamlyacc [1] (but I can switch to Menhir [2]) to
generate a lexer/parser. In my tests, I simply check that some input
strings give the ASTs I expect.

I usually use Bisect [3] to make sure that my tests cover the code I
intended to cover, but in that configuration, Bisect is lost between the
.mll/.mly files and the generated .ml files and produces useless reports.

How would you measure test coverage in that case?

Thanks,

[1] http://caml.inria.fr/pub/docs/manual-ocaml/lexyacc.html
[2] http://gallium.inria.fr/~fpottier/menhir/
[3] http://bisect.x9c.fr/
-- 
Vincent Jacques
http://vincent-jacques.net

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème"
            Devise Shadock

[-- Attachment #2: Type: text/html, Size: 1278 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-08 12:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-06 19:53 [Caml-list] Test coverage of generated lexers/parsers Vincent Jacques
2016-03-06 22:53 ` Gabriel Scherer
2016-03-06 22:59   ` Anton Bachin
2016-03-07  8:20     ` Vincent Jacques
2016-03-08 12:43   ` François Pottier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).