Skip to content

Property-based unit tests #662

Open
Open
@lsf37

Description

@lsf37

The current unit testing in JFlex is a bit thin, mostly because the cost/benefit ratio of writing those single test cases is fairly low.

We should use property-based unit tests, at least for the different set implementations in JFlex, as well as partitions and other mathematical objects that have nicely statable properties. These would automate the test object construction, and let us specify the contracts for those objects in a way that gains some actual assurance about implementation correctness.

juni-quickcheck (https://github.com/pholser/junit-quickcheck) looks like it would be usable for the job.

Metadata

Metadata

Labels

taskProcess taskstestingAdding tests or test infrastructure.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions