WEKO3
アイテム
Test Case Generation for Python Libraries Using Dependent Projects' Test-Suites
http://hdl.handle.net/10061/0002000727
http://hdl.handle.net/10061/0002000727fa99efc1-a4d4-4093-a77b-214be281a27c
| 名前 / ファイル | ライセンス | アクション |
|---|---|---|
|
Download is available from 2026/8/16.
|
|
| アイテムタイプ | 会議発表論文 / Conference Paper(1) | |||||||
|---|---|---|---|---|---|---|---|---|
| 公開日 | 2024-12-20 | |||||||
| タイトル | ||||||||
| タイトル | Test Case Generation for Python Libraries Using Dependent Projects' Test-Suites | |||||||
| 言語 | ||||||||
| 言語 | eng | |||||||
| キーワード | ||||||||
| 主題Scheme | Other | |||||||
| 主題 | Automated Test Generation | |||||||
| キーワード | ||||||||
| 主題Scheme | Other | |||||||
| 主題 | Dynamic Analysis | |||||||
| キーワード | ||||||||
| 主題Scheme | Other | |||||||
| 主題 | Python | |||||||
| 資源タイプ | ||||||||
| 資源タイプ | conference paper | |||||||
| アクセス権 | ||||||||
| アクセス権 | embargoed access | |||||||
| 著者 |
Morisaki, Keita
× Morisaki, Keita
× 嶋利, 一真× 石尾, 隆× 松本, 健一 |
|||||||
| 抄録 | ||||||||
| 内容記述タイプ | Abstract | |||||||
| 内容記述 | Software developers often leverage open-source libraries to efficiently develop their own software. The reliance on popular libraries makes libraries' quality increasingly important. Although most modern libraries have their own tests to maintain quality, these tests are not perfect, and writing effective tests can be challenging and time-consuming. Automatic test generation techniques have been studied to help generate effective tests with less effort, however, automatic test generation for dynamically typed languages, such as Python, is challenging due to the absence of type information. This paper proposes a test case generation method for Python libraries. By instrumenting both the target library and a project that is dependent on the library, we collect execution traces including what data is passed to the library, and what data is returned from the library during the test execution of the dependent project. These traces are then used to reconstruct how the library is used in practice, enabling the generation of test cases that closely reflect real-world usage of the library. We evaluate the proposed method on three open-source Python libraries, each with three dependent projects by measuring line coverage of the generated test cases along with the original test cases in the library. The proposed method achieved test coverage improvements for all target libraries. The evaluation result suggests that the proposed method can generate effective test cases for Python libraries. | |||||||
| 書誌情報 |
en : 2024 IEEE International Conference on Software Analysis, Evolution and Reengineering - Companion (SANER-C) p. 167-174, 発行日 2024-08-15 |
|||||||
| 会議情報 | ||||||||
| 会議名 | 2024 IEEE International Conference on Software Analysis, Evolution and Reengineering - Companion (SANER-C) | |||||||
| 開始年 | 2024 | |||||||
| 開始月 | 03 | |||||||
| 開始日 | 12 | |||||||
| 終了年 | 2024 | |||||||
| 終了月 | 03 | |||||||
| 終了日 | 12 | |||||||
| 開催地 | Rovaniemi | |||||||
| 開催国 | FIN | |||||||
| 出版者 | ||||||||
| 出版者 | IEEE | |||||||
| 出版者版DOI | ||||||||
| 関連タイプ | isVersionOf | |||||||
| 識別子タイプ | DOI | |||||||
| 関連識別子 | https://doi.org/10.1109/SANER-C62648.2024.00029 | |||||||
| 出版者版URI | ||||||||
| 関連タイプ | isVersionOf | |||||||
| 識別子タイプ | URI | |||||||
| 関連識別子 | https://ieeexplore.ieee.org/document/10621691 | |||||||
| 権利 | ||||||||
| 権利情報 | $00A92024 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. 出版社許諾条件により、本文は2026年8月16日以降に公開 | |||||||
| 著者版フラグ | ||||||||
| 出版タイプ | AM | |||||||