Mid Sweden University

miun.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Ramverk för enhetstestning: För en eventuell kurs på Mittuniversitetet
Mid Sweden University, Faculty of Science, Technology and Media, Department of Information Systems and Technology.
2022 (Swedish)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [sv]

I dagens digitala samhälle är tester på applikationer och kodbaser ett vanligt förekommande fenomen. Tester utförs på flera företag både manuellt och automatiskt och vill gärna rekrytera personer med kunskap inom testning. Mittuniversitetet i Sundsvall har ännu inga kurser för testning men det skulle vara passande för studenter att bli introducerade till detta redan tidigt när de läser ett program. Syftet med denna studie har varit att identifiera ett passande ramverk för kurser om testning på universitet. För att kunna genomföra studien utfördes en kvalitativ litteraturstudie om testning. Sedan valdes två stycken ramverk anpassade för enhetstestning utifrån en kravspecifikation. De utvalda ramverken var JUnit 5 och TestNG. Ramverken testades utifrån dess användbarhet, funktionalitet och effektivitet genom att köra tester mot en befintlig chattapplikation. Vidare utfördes användartest för att undersöka ramverkens lämplighet för användning under en universitetskurs där målgruppen hade olika erfarenheter och datorvana. Resultatet visade på att JUnit 5 var bättre när det kom till användning, dokumentation och lämplighet för en kurs på universitet. Rekommendationen är att JUnit 5 passar till att använda i en kurs på universitet. Det rekommenderas också att universitet bör introducera kurser med testning så att studenten naturligt implementerar ett iterativt förhållningssätt till programmering samt blir mer förberedd inför arbetslivet.

Abstract [en]

In today’s digital society, testing of applications and code bases is a common phenomenon. Testing are performed on several companies, both manually and automatically, and would like to recruit people with knowledge about testing. Mid Sweden University in Sundsvall does not yet have courses about testing but it would be appropriate for students to be introduced to this early on while they study a program. The purpose with this study has been to identify a suitable framework for university courses about testing. In order to be able to carry out the study, a qualitative literature study on testing was performed to gather information. Furthermore two framework were selected that was adapted for unit testing and based on a requirements specification. The chosen frameworks were JUnit 5 and TestNG. The frameworks were tested based on their usability, functionality and efficiency by running tests against an existing chat application. Furthermore, user tests were performed to examine the suitability of the frameworks for use during a university course where the target group have different experiences and computer skills. The result showed that JUnit 5 was better when it came to usability, documentation and suitability for a course at a university. The recommendation is that JUnit 5 is suitable for a course at a university. It’s also recommended that the university should introduce courses with testing so that the student naturally implements an iterative approach to programming and become more prepared for working with programming and development.

Place, publisher, year, edition, pages
2022. , p. 58
Keywords [en]
Unit test, JUnit 5, Unit test for a course in university
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:miun:diva-45304Local ID: DT-V22-G3-028OAI: oai:DiVA.org:miun-45304DiVA, id: diva2:1674971
Subject / course
Computer Engineering DT1
Educational program
Computer Science TDATG 180 higher education credits
Supervisors
Examiners
Available from: 2022-06-22 Created: 2022-06-22 Last updated: 2025-09-25Bibliographically approved

Open Access in DiVA

fulltext(871 kB)238 downloads
File information
File name FULLTEXT01.pdfFile size 871 kBChecksum SHA-512
d76b1aeb53fce680e14a2fdefc8efbe425f6b83ecbb51ff096fb68db7b1798ddedbf44c560540ed9721449a5cbdb94e1790e61870e1e03d9d8636a185c5cbb31
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Dahlgren, Robin
By organisation
Department of Information Systems and Technology
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 240 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 310 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf