The University of Sheffield
Department of Computer Science

Daniel Shreeve Undergraduate Dissertation 2016/17

AutoRSpec: Automatically generate RSpec test cases for model validation in Ruby on Rails

Supervised by G.Fraser

Abstract

Software Testing benefits the development and maintenance of a system by increasing quality and reliability. Software Testing also contributes around half of the cost of producing a system. Automating part or whole of this process reduces the cost whilst maintaining the benefits. The aim of this project is to produce a system that automatically generates RSpec test cases for model validation in Ruby on Rails. The tests will be generated from a formal database specification that the user has defined using the system. A file can be generated and inserted into the user's application and run as though they had been written by the user. The time taken to insert the necessary information should be less than the time taken to write the tests manually, otherwise the user will not benefit.