• Title/Summary/Keyword: unit testing

Search Result 609, Processing Time 0.033 seconds

Effort Analysis of Unit Testing Conducted by Non-Developer of Source Code (원개발자 부재에 따른 원시코드 기반의 단위테스트 노력 분석)

  • Yoon, Hoijin
    • Journal of Information Technology Services
    • /
    • v.11 no.4
    • /
    • pp.251-262
    • /
    • 2012
  • Unit testing is one of the test levels, which tests an individual unit or a group of related units. Recently, in Agile Development or Safety-critical System Development, the unit testing plays an important role for the qualities. According to the definition of unit testing, it is supposed to be done by the developers of units. That is because test models for the unit testing refers to the structure of units, and others but its original developers hardly can understand the structures. However, in practice, unit testing is often asked to be done without the original developers. For example, it is when faults are revealed in customer sites and the development team does not exit any more. In this case, instead of original developers, other developers or test engineers take a product and test it. The unit testing done by a non-developer, who is not the original developer, would cause some difficulties or cause more cost. In this paper, we tests an open source, JTopas, as a non-developer, with building test models, implementing test codes, and executing test cases. To fit this experiment to practical testing situations, we designed it based on the practices of unit testing, which were surveyed through SPIN(Software Process Improvement Network). This paper analyzes which part of unit testing done by non-developers needs more effort compared to the unit testing done by original developers. And it concludes that Agile Development contributes on reducing the extra effort caused by non-developers, since it implements test codes first before developing source code. That means all the units have already included their own tests code when they are released.

A Study of Unit Testing Frameworks on Open Source C++ (오픈 소스 C++에서의 유닛 테스팅 프레임워크에 관한 고찰)

  • Heo, Seok-Yeol;Sohn, Young-Ho
    • Convergence Security Journal
    • /
    • v.13 no.4
    • /
    • pp.33-39
    • /
    • 2013
  • Unit testing is proved to be vital for a successful software development process. Modern languages, such as Python, Java and C#, have a great support and tools for unit testing. But when it comes to C++, there are a big number of C++ frameworks available [List], and it becomes hard to make a choice of unit testing framework to use. This paper presents a survey of open source C++ unit testing frameworks by dividing open source C++ unit testing frameworks into two groups: frameworks with an integrated test runner and frameworks with a separate test runner.

Development of a robust bench-scale testing unit for low-pressure membranes used in water treatment

  • Huang, Haiou;Schwab, Kellogg;Jacangelo, Joseph G.
    • Membrane and Water Treatment
    • /
    • v.2 no.2
    • /
    • pp.121-136
    • /
    • 2011
  • A bench-scale test has recently been proposed as a predictive tool to minimize the scope of pilot-scale testing or to optimize the operation of full-scale membrane filtration systems. Consequently, a bench-scale testing unit was developed for this purpose and systematically evaluated in this study. This unit was capable of accommodating commercially available, low pressure, hollow fiber (LPHF) membranes with various configurations for testing under conditions comparable to real-world applications. Reproducibility of this unit in assessing membrane fouling and microbial removal efficiency of LPHF membranes was tested and statistically comparable results were obtained. This unit serves as a useful apparatus for academic researchers and utilities to evaluate the performance of LPHF membranes used for water treatment.

Test Assertion Language for Unit Test : Design and Implementation (단위 테스트를 위한 테스트 어서션 언어 설계 및 도구 구현)

  • Shin, Woo-Chang
    • Journal of Information Technology Services
    • /
    • v.10 no.4
    • /
    • pp.205-218
    • /
    • 2011
  • Unit testing which is the first task to perform software testing has a major impact on reducing s/w development cost and improving s/w quality. In order to make unit testing become the formal procedure rather than ad-hoc tasks performed by developer, the language-neutral measures are necessary in the programming which is able to specify the test cases. This paper presents a test assertion language for the language-neutral specification of the test cases. The suggested language is based on the ISO/IEC 24709-1, but it supports object oriented features and can describe test cases for unit testing. The test cases that are specified by the language can be used for generating test oracle source codes by test oracle generation tools.

A Study on the Testing Method of IEC 61850 based Merging Unit (IEC 61850 기반 디지털 변전시스템의 머징유닛 시험방법에 관한 연구)

  • Lee, Nam-Ho;Jang, Byung-Tae
    • Journal of the Korean Institute of Illuminating and Electrical Installation Engineers
    • /
    • v.23 no.8
    • /
    • pp.41-47
    • /
    • 2009
  • The power IT project "Development of Prototype for Advanced Substation Automation System based on the Digital Control Technology", is going on how to perform the verification of a IEC 61850 based Merging Unit for development of the full Substation Automation system from station bus to process bus. the testing method that this paper suggests, is including the conformance testing of IEC 61850 communication services and transmission functions of digital sampled values such as current and voltage, and referring to IEC 61850 conformance testing of IED. And finally, the paper shows a test system for the Merging Unit.

Locally Powerful Unit-Root Test (국소적 강력 단위근 검정)

  • Choi, Bo-Seung;Woo, Jin-Uk;Park, You-Sung
    • Communications for Statistical Applications and Methods
    • /
    • v.15 no.4
    • /
    • pp.531-542
    • /
    • 2008
  • The unit root test is the major tool for determining whether we use differencing or detrending to eliminate the trend from time series data. Dickey-Fuller test (Dickey and Fuller, 1979) has the low power of test when the sample size is small or the true coefficient of AR(1) process is almost unit root and the Bayesian unit root test has complicated testing procedure. We propose a new unit root testing procedure, which mixed Bayesian approach with the traditional testing procedure. Using simulation studies, our approach showed locally higher powers than Dickey-Fuller test when the sample size is small or the time series has almost unit root and simpler procedure than Bayesian unit root test procedure. Proposed testing procedure can be applied to the time series data that are not observed as process with unit root.

CHANGES OF SOFTWARE UNIT TESTING TOOL - ATTOL TO TESTRT

  • Paek, Su-Hyun;Kang, Soo-Yeon;Yang, Koon-Ho;Choi, Seong-Bong
    • Proceedings of the KSRS Conference
    • /
    • 2008.10a
    • /
    • pp.84-87
    • /
    • 2008
  • ATTOL is a software unit testing tool produced by the ATTOL Testware SA in France. It automates the entire software unit testing process: test plan template and test program generation, test program execution, test result analysis and test report generation. ATTOL is suited for the development of embedded software as it allows programmers to operate in native and cross development environments. Particularly, it is used for the development of the flight software which is embedded in the Communication Ocean Meteorological Satellite (COMS). As the flight software is mission-critical, it requires the strict software quality and high testing constraints. The flight software of COMS is verified by ATTOL in native and cross platforms. In 2002, ATTOL was taken over by the IDM Rational Software and has been supplied with the name of Test RealTime (TestRT). The test process of TestRT becomes different from that of ATTOL as TestRT provides the new functionalities that were absent from ATTOL. TestRT provides the new features in the test script language, as well. In this paper, we compare the test process of ATTOL to TestRT With an example of COMS and explain what has been changed in the test script language.

  • PDF

A Method of Integration Testing for Federation using Mock Object Patterns (모형 객체 패턴을 이용한 Federation 통합시험 방법)

  • Shim, Jun-Yong;Lee, Young-Heon;Lee, Seung-Young;Kim, Seh-Hwan
    • Journal of the Korea Society for Simulation
    • /
    • v.20 no.4
    • /
    • pp.41-48
    • /
    • 2011
  • The act of writing a unit test is more an act of design than of verification. It is also more an act of documentation than of verification. The act of writing a unit test closes a remarkable number of feedback loops, the least of which is the one pertaining to verification of function. Unit testing is a fundamental practice in Extreme Programming, but most non-trivial code is difficult to test in isolation. Normal unit testing is hard because It is trying to test the code from outside. On the other hand, developing unit tests with Mock Objects leads to stronger tests and to better structure of both domain and test code. In this paper, I first describe how Mock Objects are used for unit testing of federation integration. Then I describe the benefits and costs of Mock Objects when writing unit tests and code. Finally I describe a design of Mock federate for using Mock objects.

Adaptive Random Testing for Integrated System based on Output Distribution Estimation (통합 시스템을 위한 출력 분포 기반 적응적 랜덤 테스팅)

  • Shin, Seung-Hun;Park, Seung-Kyu;Choi, Kyung-Hee;Jung, Ki-Hyun
    • Journal of the Korea Society for Simulation
    • /
    • v.20 no.3
    • /
    • pp.19-28
    • /
    • 2011
  • Adaptive Random Testing (ART) aims to enhance the performance of pure random testing by detecting failure region in a software. The ART algorithm generates effective test cases which requires less number of test cases than that of pure random testing. However, all ART algorithms currently proposed are designed for the tests of monolithic system or unit level. In case of integrated system tests, ART approaches do not achieve same performances as those of ARTs applied to the unit or monolithic system. In this paper, we propose an extended ART algorithm which can be applied to the integrated system testing environment without degradation of performance. The proposed approach investigates an input distribution of the unit under a test with limited number of seed input data and generates information to be used to resizing input domain partitions. The simulation results show that our approach in an integration environment could achieve similar level of performance as an ART is applied to a unit testing. Results also show resilient effectiveness for various failure rates.

Building Test Codes for Unit Test Automation of Java Programs (단위 테스트 자동화를 위한 자바 프로그램 테스트 코드 구축)

  • Yoon, Hoijin
    • Journal of Software Engineering Society
    • /
    • v.23 no.4
    • /
    • pp.141-149
    • /
    • 2010
  • Agile development is mentioned a lot by developers these days. XP or Scrum is one of the popular development processes, and it says that unit test automation would drive an agile development successful. The success of unit test automation depends on how well to compare an execution result to its own expected result. that is why this paper focuses on the comparison part. This paper introduces how to build test codes for unit testing, and then concludes with mentioning two considerations of unit testing automation. First, test codes for void-typed methods need Mock Framework to monitor their behavior. Second, the comparison of execution results and expected results is hard to implement in case of testing void-typed methods. We check every sentences of a test path to decide if the testing is fail or pass.

  • PDF