ePrints.FRI - University of Ljubljana, Faculty of Computer and Information Science

The development of domain-specific language for generation of Mocha tests

Uroš Zaletelj (2017) The development of domain-specific language for generation of Mocha tests. EngD thesis.

Download (391Kb)


    The aim of the diploma thesis is to present development and implementation of domain-specific language that enables a faster and mostly easier writing of Mocha tests. Domain-specific languages are minor computer languages that mainly focus on problems in a particular application domain. For developing a solution, the Node.js environment for JavaScript computer language is used. Our testing environment will be Mocha, the most frequently used environment for JavaScript platform. A tester will use a simplified solution in Mocha environment. The main requirements for domain-specific language development are the simplified testing as we eliminate unnecessary code and improve the printing of results. In the Introduction, we will briefly describe technologies for which tests are meant, present a problem that needs to be solved, and expectations after the finished thesis. The second chapter will introduce characteristics of domain-specific languages. We expose basic characteristics and we divide them into groups. Moreover, we present technologies used for the development of DSL. The third chapter describes the primary problem and explains why certain technologies were used, as well as their advantages in disadvantages. Furthermore, we will present basic cornerstones required for construction of DSL. The fourth chapter presents usage and activities of our language on a real project. We briefly describe the project and the process of testing. In the last chapter we present final conclusions, emphasizing the fact the newly created language is much more efficient at test writing. We present the possibilities of further development of the language as well.

    Item Type: Thesis (EngD thesis)
    Keywords: testing, Mocha, domain-specific languages, Node.js
    Number of Pages: 38
    Language of Content: Slovenian
    Mentor / Comentors:
    Name and SurnameIDFunction
    viš. pred. dr. Igor Rožanc278Mentor
    Link to COBISS: http://www.cobiss.si/scripts/cobiss?command=search&base=51012&select=(ID=1537471683)
    Institution: University of Ljubljana
    Department: Faculty of Computer and Information Science
    Item ID: 3872
    Date Deposited: 11 Jul 2017 11:16
    Last Modified: 18 Jul 2017 11:07
    URI: http://eprints.fri.uni-lj.si/id/eprint/3872

    Actions (login required)

    View Item