scholarly journals Implementasi Unit Testing menggunakan metode Test-First Development

MULTINETICS ◽  
2021 ◽  
Vol 7 (1) ◽  
pp. 37-47
Author(s):  
Muhamamd Agung Rizkyana ◽  
Yunanto Yunanto ◽  
Yoga Yoga ◽  
Septian Rheno Widianto

Tuntutan untuk dapat terus bersaing dan berkualitas di era distriupsi saat ini menjadi tantangan khususnya pengembangan perangkat lunak. Untuk menjawab tantangan tersebut salah satu metodologi pengembangan yang berkembang dan banyak diimplementasikan adalah Agile. Metodologi Agile memungkinkan perangkat lunak untuk dapat segera diluncurkan. Namun, kecapatan saja tidak cukup untuk dapat menjaga sebuah perangkat lunak atau aplikasi dapat diterima dengan baik oleh pengguna. Kualitas dari perangkat lunak adalah hal penting, karena kesesuaian dengan kebutuhan pengguna menunjukan kualitas perangkat lunak tersebut sehingga timbul keterikatan antara pengguna dan aplikasi. Salah satu metode pada Agile yang menjamin hal tersebut adalah Test-Driven Development (TDD). TDD mempunyai beberapa teknik dalam praktisnya, pada penelitian ini menggunakan Test-First Development (TFD). Teknik TFD digunakan untuk menjadi panduan pengujian unit (Unit Testing) pada aplikasi penyedia data dengan arsitektur REST API. Tujuan dari penelitian ini adalah menunjukan langkah - langkah sistematis implementasi TDD sesuai konsep dan teori pada suatu studi kasus.

Author(s):  
Sunardi Sunardi ◽  
Imam Riadi ◽  
Pradana Ananda Raharja

Pengujian pada perangkat lunak dibutuhkan sebagai jaminan mutu terhadap kemampuan perangkat lunak. Perangkat lunak diterapkan pada pekerjaan yang nyata tanpa memiliki kendala terhadap kinerja dalam memberikan perintah, memproses perintah hingga memperoleh hasil dari pemrosesan sesuai dengan tujuan pengembangan. Pengujian unit Application Programming Interface (API) pada web service fokus sebagai upaya untuk menguji kemampuan pada tiap unit. Unit yang diuji secara spesifik akan digabungkan dengan unit lain hingga menjadi suatu sistem terintegrasi. Aplikasi mobile membutuhkan dukungan API sebagai penghubung dengan basis data, dimana aplikasi mobile dengan basis data tersebut tidak saling berhubungan secara langsung. Tampilan antarmuka pada aplikasi mobile hanya difokuskan sebagai interaksi visual antara pengguna dengan sistem. Sistem yang diberi perintah akan merespon dengan umpan balik yang dihubungkan melalui perantara dan merespon kembali melalui perantara dan dikembalikan dalam bentuk visual melalui antaramuka. Pengujian pada tiap unit sistem menggunakan proses Test-Driven Development (TDD) untuk menguji tiap fungsi. Perancangan dan pembangunan web service pada aplikasi e-voting memerlukan pengujian sehingga dalam penerapanya dapat digunakan sesuai dengan spesifikasi yang telah dirancanakan tanpa menimbulkan bug atau error yang dapat menganggu kinerja sistem. API yang telah diuji dan berinteraksi dengan antarmuka dapat melakukan proses data pemilih, validasi data pemilih dan pemilihan. Sistem ini juga telah diuji dengan metode System Usability Scale dengan skor total 69,02. Testing on the software is needed to guarantee its capabilities. So software in real condition wouldn’t have any deflect with the performance to providing wich in line with the goal of development. Testing the Application Programming Interface (API) unit on the web service is an effort to testing the performance of each unit. Specifically tested unit will be combined with other units to become an integrated system. A Mobile application requires API support as the connector to a database, which not directly related to mobile application. The user-interface in mobile application only act as a visual interaction between the user and the system. The commanded system will respond through feedback which connected into a connector and gives the response back through the connector and returns in visual form through an interface. Test-Driven Development (TTD) was used in testing each system unit. Designing and building web service on e-voting application requires testing so that application can be used properly without causing bugs or errors that can interface system performance. Approved APIs are able to process voter data, validate voter data and election. The system also tested with “System Usability Scale” method which gains 69,02 total score.


2016 ◽  
Author(s):  
Gopal Sarma ◽  
Travis W Jacobs ◽  
Mark D Watts ◽  
S. Vahid Ghayoomie ◽  
Stephen D Larson ◽  
...  

The growth of the software industry has gone hand in hand with the development of tools and cultural practices for ensuring the reliability of complex pieces of software. These tools and practices are now acknowledged to be essential to the management of modern software. As computational models and methods have become increasingly common in the biological sciences, it is important to examine how these practices can accelerate biological software development and improve research quality. In this article, we give a focused case study of our experience with the practices of unit testing and test-driven development in OpenWorm, an open-science project aimed at modeling Caenorhabditis elegans. We identify and discuss the challenges of incorporating test-driven development into a heterogeneous, data-driven project, as well as the role of model validation tests, a category of tests unique to software which expresses scientific models.


2015 ◽  
pp. 77-95
Author(s):  
Buddy James ◽  
Lori Lalonde

2016 ◽  
Author(s):  
Giuseppe Scanniello ◽  
Simone Romano ◽  
Davide Fucci ◽  
Burak Turhan ◽  
Natalia Juristo

We have conducted a qualitative investigation on test-driven development (TDD) with focus groups in order to develop insights on the opinions of developers using TDD regarding the unintuitive process involved, its claimed effects, as well as the context factors that can facilitate (or hinder) its application. In particular, we conducted two focus group sessions: one with professional developers and another with Master students in Computer Science at the University of Basilicata. We used thematic analysis template (TAT) method for iden- tifying patterns, themes, and interpretations in the gathered data. The application of this qualitative method allowed us to obtain a number of results that can provide directions for future research. Our main results can be summarized as follows: (i) applying TDD without knowing advanced unit testing techniques can be difficult; (ii) refactoring (one of the phases of TDD) is not done as often as the process re- quires; (iii) there is a need for live feedback to let developers understand if TDD is being applied correctly; and (iv) the usefulness of TDD hinges on task and domain to which it is applied to.


2015 ◽  
Author(s):  
Giuseppe Scanniello ◽  
Simone Romano ◽  
Davide Fucci ◽  
Burak Turhan ◽  
Natalia Juristo

We have conducted a qualitative investigation on test-driven development (TDD) with focus groups in order to develop insights on the opinions of developers using TDD regarding the unintuitive process involved, its claimed effects, as well as the context factors that can facilitate (or hinder) its application. In particular, we conducted two focus group sessions: one with professional developers and another with Master students in Computer Science at the University of Basilicata. We used thematic analysis template (TAT) method for iden- tifying patterns, themes, and interpretations in the gathered data. The application of this qualitative method allowed us to obtain a number of results that can provide directions for future research. Our main results can be summarized as follows: (i) applying TDD without knowing advanced unit testing techniques can be difficult; (ii) refactoring (one of the phases of TDD) is not done as often as the process re- quires; (iii) there is a need for live feedback to let developers understand if TDD is being applied correctly; and (iv) the usefulness of TDD hinges on task and domain to which it is applied to.


Author(s):  
Gopal Sarma ◽  
Travis W Jacobs ◽  
Mark D Watts ◽  
S. Vahid Ghayoomie ◽  
Stephen D Larson ◽  
...  

The growth of the software industry has gone hand in hand with the development of tools and cultural practices for ensuring the reliability of complex pieces of software. These tools and practices are now acknowledged to be essential to the management of modern software. As computational models and methods have become increasingly common in the biological sciences, it is important to examine how these practices can accelerate biological software development and improve research quality. In this article, we give a focused case study of our experience with the practices of unit testing and test-driven development in OpenWorm, an open-science project aimed at modeling Caenorhabditis elegans. We identify and discuss the challenges of incorporating test-driven development into a heterogeneous, data-driven project, as well as the role of model validation tests, a category of tests unique to software which expresses scientific models.


2015 ◽  
Author(s):  
Gopal Sarma ◽  
Travis W Jacobs ◽  
Mark D Watts ◽  
Vahid Ghayoomi ◽  
Richard C Gerkin ◽  
...  

The growth of the software industry has gone hand in hand with the development of tools and cultural practices for ensuring the reliability of complex pieces of software. These tools and practices are now acknowledged to be essential to the management of modern software. As computational models and methods have become increasingly common in the biological sciences, it is important to examine how these practices can accelerate biological software development and improve research quality. In this article, we give a focused case study of our experience with the practices of unit testing and test-driven development in OpenWorm, an open-science project aimed at modeling Caenorhabditis elegans. We identify and discuss the challenges of incorporating test-driven development into a heterogeneous, data-driven project, as well as the role of model validation tests, a category of tests unique to software which expresses scientific models.


Sign in / Sign up

Export Citation Format

Share Document