An Evaluation of Testing Frameworks for Beginners inJavaScript Programming : An evaluation of testing frameworks with beginners in mind

Detta är en Kandidat-uppsats från KTH/Skolan för elektroteknik och datavetenskap (EECS)

Sammanfattning: Software testing is an essential part of any development, ensuring the validity and verification of projects. As the usage and footprint of JavaScript expand, new testing frameworks in its community have made statements about being the best overall solution using minimal intervention from developers. The statements from these frameworks about being the greatest can make it difficult for JavaScript beginners to pick a framework that could affect current and future projects. By comparing different types of frameworks and establishing a guideline for others to do the same, it becomes easier for beginners and others to choose a framework according to their own required needs. The overall method uses Mario Bunge’s scientific method via stages, which helps validate the thesis as scientific. Research, empirical data from a qualitative, and objective data from a survey decide the criteria, their priority (to determine their impact and hierarchy), what frameworks to include, and how to compare them. The frameworks Jest, AVA, and Node TAP are compared based on the main criteria of simplicity, documentation, features, and their sub-criteria. Evaluating the frameworks and ranking their performance in each criterion was done through an experiment conducted on a pre-made website without any testing included. The analytic hierarchy process is the primary method used to combine the information gathered and output a result. It makes it possible to create a priority hierarchy for each criterion and subsequently makes it possible to evaluate the choices available on their fulfillment of those criteria. One of these choices will eventually be an overall more suitable fit as the optimal framework for the research question. Combining the survey and experiment data into the analytic hierarchy process revealed that Jest fit the previous criteria better than AVA and Node TAP because of Jest’s better learning curve and Stack overflow presence. AVA was just behind in those areas, while Node TAP had a poor fit for all sub-criteria compared to the other two. AVA’s almost similar evaluation to Jest shows how the open-source community and small development teams can keep up with solutions from big corporations.

  HÄR KAN DU HÄMTA UPPSATSEN I FULLTEXT. (följ länken till nästa sida)