caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [qcheck] shrinking counterexamples on exception
@ 2016-06-30 12:11 Christoph Höger
  2016-06-30 12:15 ` Simon Cruanes
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Höger @ 2016-06-30 12:11 UTC (permalink / raw)
  To: caml users

Dear all,

I am running property based tests using qcheck on some transformation
code. The tests fail with an exception (which is somewhat expected) but
I cannot easily debug the problem since the counterexample is still
quite large. In case of a violated assertion, shrinking works just fine.
I am running the test using

QCheck.Test.check_exn mytest

is there a test-runner that shrinks a counterexample in case of an
exception?

thanks,

Christoph


-- 
Christoph Höger

Technische Universität Berlin
Fakultät IV - Elektrotechnik und Informatik
Übersetzerbau und Programmiersprachen

Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin

Tel.: +49 (30) 314-24890
E-Mail: christoph.hoeger@tu-berlin.de

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

* Re: [Caml-list] [qcheck] shrinking counterexamples on exception
  2016-06-30 12:11 [Caml-list] [qcheck] shrinking counterexamples on exception Christoph Höger
@ 2016-06-30 12:15 ` Simon Cruanes
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Cruanes @ 2016-06-30 12:15 UTC (permalink / raw)
  To: Christoph Höger; +Cc: caml users

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

Hi Christoph,

Please report on https://github.com/vincent-hugot/iTeML/issues !
Right now there is no shrinking on exceptions but it should be
possible (and reasonable) indeed.

-- 
Simon Cruanes

http://weusepgp.info/
key 49AA62B6, fingerprint 949F EB87 8F06 59C6 D7D3  7D8D 4AC0 1D08 49AA 62B6

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2016-06-30 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-30 12:11 [Caml-list] [qcheck] shrinking counterexamples on exception Christoph Höger
2016-06-30 12:15 ` Simon Cruanes

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).