Proposal: Database Engine for D

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 4 10:18:35 PST 2016


On Mon, 2016-01-04 at 13:09 +0000, John Colvin via Digitalmars-d wrote:
> 
[…]
> not sure when I'd use that though...

At a trivial level that nonetheless leads to functionality that can be
used more sensibly, think of testing factorial. You want property-based 
testing, but also you want a (well usually two) table of examples.

Python via pytest.mark.parametrize does the latter very well.
Hypothesis does the former. Spock enables both very easily.

It is know that the tests for the Java driver to MongoDB relies on
table-driven and property-based testing, mostly using Spock.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160104/3a566315/attachment.sig>


More information about the Digitalmars-d mailing list