Releases: RevolutionAnalytics/quickcheck
Releases · RevolutionAnalytics/quickcheck
3.5.0
3.4.0
Improvements
- rewrite of
rcharacter
for speed and more intuitive semantics - flatten the acceptable values for some data generator options for the sake of simplicity
- better parametrization of
named
andrnamed
avoids coupling withrcharacter
- restricted
expect
to only the necessary options, added defaults and arg completion
Fixes
- fix a bug that disabled
qc.option
andqc.options
in read mode - brought documentation up-to-date
- resolve some stubborn complaints by R CMD check for a clean build
3.3.0
- package-level coverage information now browsable in shiny app,
no.coverage
renamedcoverage
, more appropriate to the new display - seeding of tests improved to re-seed when any of the functions under test is changed. Prevents developers from coding against specific selection of test cases: new code implies new test cases.
repro
gets a new argumentassertion
to test a new assertion against old test cases -- typically needed only when working on the assertion itself.- New argument
about
fortest
to declare which function the test is intended to be about. Default guesses correctly in most simple situations, but should not be trusted blindly. See also new functiontest.set
- Argument
cover
to functiontest
allows to specify which function we want coverage information about (only one for now). Also displayed in shiny app. - Argument
i
torepro
renamedwhich
for clarity, now defaults to smallest failing test case. - Function
test.set
allows to group related tests together and produces a report where each function name is followed by a list of assertions about that function; can be seen as a spec for the function when tests are extensive.
3.2.0
- new
named
andrnamed
functions to provide named vector generation. - new
forall
function to define assertions while being more readable and conveying developer intent - test-by-test coverage analysis
-repro
accepts also a filename where test report data can be found - better messages
3.1.0
Thorough overhaul of generators, new coverage tool and more
- distributions are now better parametrized, interface is uniform, defaults more user friendly
- function
no.coverage
suggests which code needs more testing - ... which allowed us to bring the coverage for
quickcheck
itself to 90%, with numerous bugs biting the dust - system of package options, allows to alter behavior of existing tests to increase or decrease the severity of testing and its emphasis on one or another data structure, without changing the actual tests
- LHS based random seeding for enhanced independence of tests with almost unaffected reproducibility of errors
- sequential evaluation of assertion arguments makes implementing simple dependencies trivial, complex ones possible
- improved test report contains information for each run, including timings
- deep internal refactor for future maintainability, more consistency and general programming happiness.
quickcheck 3.0.0
First release for general use. Provides random data generators and functions for testing assertions on random data and reproducing failures. 3.x series will not observe backward compatibility, which will start from 4.x.