Abstract
To advance Java programming educations, we have developed the Java programming learning assistant system (JPLAS) that can verify the correctness of the code from a student automatically using the test-driven development (TDD) method. Then, to register a new assignment in JPLAS, teachers are required to write the test code in addition to the reference source code. Unfortunately, most teachers at schools are not accustomed to writing test codes. In this paper, we propose a test code generation tool that automatically generates the test cases from the reference source code by extracting the outputs for given inputs using functions in JUnit. As assignments for Java novice students, the code that contains standard inputs/outputs is emphasized. For evaluation, we collected 97 codes containing standard inputs/outputs from Java programming text books or Web sites. The experimental result has shown that the proposed tool correctly generated the test codes for them except for one code using a random generator.
Original language | English |
---|---|
Title of host publication | Proceedings - 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017 |
Publisher | Institute of Electrical and Electronics Engineers Inc. |
Pages | 51-56 |
Number of pages | 6 |
ISBN (Electronic) | 9781509060283 |
DOIs | |
Publication status | Published - May 5 2017 |
Event | 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017 - Taipei, Taiwan, Province of China Duration: Mar 27 2017 → Mar 29 2017 |
Other
Other | 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017 |
---|---|
Country/Territory | Taiwan, Province of China |
City | Taipei |
Period | 3/27/17 → 3/29/17 |
Keywords
- Automatic generation
- Java programming
- JPLAS
- JUnit
- Test case
- Test code
ASJC Scopus subject areas
- Engineering(all)