Turkish Journal of Computer and Mathematics Education
Journal license

Journal

Turkish Journal of Computer and Mathematics Education


Volume
& Issue

Volume 12, Issue 3


Published
on

April 5, 2021


Pages

2100-2105


DOI

Article

nCODET: A Tool For Novice Developer To Detect Untestable Code


Authors

Saiful Bahri Hisamudin* Affiliation:
Faculty of Computer Science and Information Technology, Universiti Putra Malaysia 43400, Serdang, Selangor Darul Ehsan
, Salmi Baharom Affiliation:
Universiti Putra Malaysia, Selangor, Malaysia
and Jamilah Din Affiliation:
Universiti Putra Malaysia, Selangor, Malaysia


Abstract

Uncontrollability is troublesome for unit testing. It causes a non-deterministic behavior where the same input can produce different results based on different executions. The non-deterministic characteristic makes it impossible to test the internal logic of a method because it suffers from tight coupling, a single responsibility principle violation, being an untestable code, being non-reusable or hard to maintain. This paper describes a tool, namely the non-deterministic Code Detection Tool (nCODET) that aims to assist novice developers to write testable codes by avoiding the non-deterministic characteristic in their codes. Our research focuses on the unit testability of classes; particularly the effort involved in constructing unit test cases.


Keywords

testable code, testability, non-deterministic code, controllability


Citation

Hisamudin, S. B., Baharom, S., & Din, J. (2021). Ncodet: A tool for novice developer to detect untestable code. Turkish Journal of Computer and Mathematics Education, 12(3), 2100–2105.

Published by: Engineering Journals

Engineering Journals Logo