From Test Cases to FSMs: Augmented Test-driven Development and Property Inference

被引:0
作者
Arts, Thomas [1 ]
Thompson, Simon [1 ]
机构
[1] Chalmers Quviq AB, Gothenburg, Sweden
来源
ERLANG 2010: PROCEEDINGS OF THE 2010 ACM SIGPLAN, ERLANG WORKSHOP | 2010年
关键词
TDD; test-driven development; Erlang; EUnit; unit test; QuickCheck; property; inference; finite-state machine;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:1 / 12
页数:12
相关论文
共 23 条
[1]  
[Anonymous], SCI COMPUTER PROGRAM
[2]  
[Anonymous], Wrangler
[3]  
ARTS T, 2006, P 5 ACM SIGPLAN ERL
[4]  
ARTZI S, 2006, M TOOS 2006 1 WORKSH
[5]  
Astels D., 2003, TEST DRIVEN DEV PRAC
[6]  
Beck K., 2003, Test Driven Development: By Example
[7]  
CARLSSON R, EUNIT LIGHTWEIGHT UN
[8]  
CARLSSON R, 2006, P 5 ACM SIGPLAN ERL
[9]  
Cesarini F., 2009, ERLANG PROGRAMMING
[10]  
Claessen K., 2000, P 5 ACM SIGPLAN INT