Uppsats
Creating a Unit Testing Application Prototype for JavaScript
Kandidat-uppsats
KTH/Skolan för elektroteknik och datavetenskap (EECS)
Publicerad: 2022
Språk: Engelska
Sammanfattning
Testing is an integral part of software development with the goal of verifying a system’s requirements. One of the most commonly used methods for verifying code is unit testing. If done properly, unit testing can guarantee the intended functionality of a code unit. Furthermore, sufficiently tested code provides dependents with a level of trust in the code’s abilities. The unit testing process has several flaws; it is difficult to identify which code must be tested; and it is challenging to maintain tests pertaining to inconstant systems. Automatic test case generation tools are a common alternative to writing tests manually. However, these tools often focus on high code coverage, but produce flaky and unreliable tests. The goal of this thesis is to develop a prototype for a unit testing application that facilitates unit test creation and maintenance for JavaScript. Using code analysis metrics, the application aims to give developers an aid in deciding what code units to test. In order to construct this prototype, a literature study was conducted, focused on unit testing and code metrics. After having constructed the prototype, a user study, in the form of an interview, was conducted in order to evaluate its usefulness. Results from the user study shows that the application could be beneficial for people with limited experience in unit testing. However, in order to determine the effectiveness of various code analysis metrics, a more thorough study would be needed.
Information
- Författare
- Björkman, Mårten, Bergqvist, Jonathan
- Lärosäte / institution
- KTH/Skolan för elektroteknik och datavetenskap (EECS)
- Publiceringsdatum
- 2022
- Uppsatstyp
- Kandidat-uppsats
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Kandidat-uppsats, KTH/Skolan för elektroteknik och datavetenskap (EECS)
Tang, Melisa, Wang, Kevin
Publicerad: 2025
Kandidat-uppsats, Linköpings universitet/Programvara och system
Lindholm, Marcus, Wåhlberg, Alina, Hänström, Anton
Publicerad: 2024
Kandidat-uppsats, Jönköping University/JTH, Avdelningen för datateknik och informatik
Jamal, Hawkar, Elkilany, Khalid
Publicerad: 2024
Kandidat-uppsats
Brun, Erica, Häggström, Ellionore
Publicerad: 2024
Kandidat-uppsats, Karlstads universitet/Handelshögskolan (from 2013)
Madrén, Daniel
Publicerad: 2024
Kandidat-uppsats, Mittuniversitetet/Institutionen för data- och elektroteknik (2023-)
Maeedi, Adam
Publicerad: 2024