From test cases to FSMs: Augmented test-driven development and property inference
Paper in proceeding, 2010

This paper uses the inference of finite state machines from EUnit test suites for Erlang programs to make two contributions. First, we show that the inferred FSMs provide feedback on the adequacy of the test suite that is developed incrementally during the test-driven development of a system. This is novel because the feedback we give is independent of the implementation of the system. Secondly, we use FSM inference to develop Quick Check properties for testing state-based systems. This has the effect of transforming a fixed set of tests into a property which can be tested using randomly generated data, substantially widening the coverage and scope of the tests.

QuickCheck

Property

Test-driven development

Unit test

EUnit

Finite-state machine

Erlang

Inference

TDD

Author

Thomas Arts

Chalmers, Computer Science and Engineering (Chalmers), Software Engineering (Chalmers)

S. Thompson

Proceedings of the ACM SIGPLAN International Conference on Functional Programming, ICFP; 9th ACM SIGPLAN Erlang Workshop, Erlang 2010, Co-located with ICFP'10; Baltimore, MD; 30 September 2010 through 30 September 2010

1-12
978-14503-0253-1 (ISBN)

Subject Categories

Computer and Information Science

ISBN

978-14503-0253-1

More information

Created

10/6/2017