Change search
ReferencesLink to record
Permanent link

Direct link
Unit Testing with TDD in JavaScript
Norwegian University of Science and Technology, Faculty of Information Technology, Mathematics and Electrical Engineering, Department of Computer and Information Science.
2011 (English)MasteroppgaveStudent thesis
Abstract [en]

JavaScript has gained increased usage and attention the last years, but development and testing methods is still lagging behind. To mitigate some of these issues, this thesis brings together unit testing and JavaScript, using test-driven development as a methodology. Through exploration of these topics, the differentiators in a unit testing framework are considered. Existing frameworks are also discussed and how the terminology in JavaScript differs from traditional xUnit family frameworks. By creating and running a set of four test cases, both the general and unique features of JavaScript are tested in hand-picked frameworks, which were decided through an evaluation process. One of the contributions is based on this; a recommendation for a minimum set of test library features for a JavaScript unit testing framework. Various factors were found to differentiate the frameworks, and so the thesis also provides a Discovery test case to emphasize some of these aspects. This test case provides practitioners with a quick option for learning a new framework. The set of test cases can be applied to new frameworks to assess their functionality. As the thesis explores an area with little current research, suggestions for further work present several topics, ranging from system level JavaScript testing to quantitative studies building on the set of test cases.

Place, publisher, year, edition, pages
Institutt for datateknikk og informasjonsvitenskap , 2011. , 188 p.
Keyword [no]
ntnudaim:6323, MTDT datateknikk, Program- og informasjonssystemer
URN: urn:nbn:no:ntnu:diva-14263Local ID: ntnudaim:6323OAI: diva2:450286
Available from: 2011-10-20 Created: 2011-10-20

Open Access in DiVA

fulltext(2532 kB)1842 downloads
File information
File name FULLTEXT01.pdfFile size 2532 kBChecksum SHA-512
Type fulltextMimetype application/pdf
cover(47 kB)38 downloads
File information
File name COVER01.pdfFile size 47 kBChecksum SHA-512
Type coverMimetype application/pdf
attachment(87 kB)25 downloads
File information
File name ATTACHMENT01.zipFile size 87 kBChecksum SHA-512
Type attachmentMimetype application/zip

By organisation
Department of Computer and Information Science

Search outside of DiVA

GoogleGoogle Scholar
Total: 1842 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

Total: 131 hits
ReferencesLink to record
Permanent link

Direct link