Saved in:
| Main Authors: | , , , , |
|---|---|
| Format: | Preprint |
| Published: |
2023
|
| Subjects: | |
| Online Access: | https://arxiv.org/abs/2307.15527 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1866911747894411264 |
|---|---|
| author | Duque-Torres, Alejandra Klammer, Claus Pfahl, Dietmar Fischer, Stefan Ramler, Rudolf |
| author_facet | Duque-Torres, Alejandra Klammer, Claus Pfahl, Dietmar Fischer, Stefan Ramler, Rudolf |
| contents | Regression testing is crucial in ensuring that pure code refactoring does not adversely affect existing software functionality, but it can be expensive, accounting for half the cost of software maintenance. Automated test case generation reduces effort but may generate weak test suites. Test amplification is a promising solution that enhances tests by generating additional or improving existing ones, increasing test coverage, but it faces the test oracle problem. To address this, we propose a test oracle derivation approach that uses object state data produced during System Under Test (SUT) test execution to amplify regression test oracles. The approach monitors the object state during test execution and compares it to the previous version to detect any changes in relation to the SUT's intended behaviour. Our preliminary evaluation shows that the proposed approach can enhance the detection of behaviour changes substantially, providing initial evidence of its effectiveness. |
| format | Preprint |
| id |
arxiv_https___arxiv_org_abs_2307_15527 |
| institution | arXiv |
| publishDate | 2023 |
| record_format | arxiv |
| spellingShingle | Towards Automatic Generation of Amplified Regression Test Oracles Duque-Torres, Alejandra Klammer, Claus Pfahl, Dietmar Fischer, Stefan Ramler, Rudolf Software Engineering D.2 Regression testing is crucial in ensuring that pure code refactoring does not adversely affect existing software functionality, but it can be expensive, accounting for half the cost of software maintenance. Automated test case generation reduces effort but may generate weak test suites. Test amplification is a promising solution that enhances tests by generating additional or improving existing ones, increasing test coverage, but it faces the test oracle problem. To address this, we propose a test oracle derivation approach that uses object state data produced during System Under Test (SUT) test execution to amplify regression test oracles. The approach monitors the object state during test execution and compares it to the previous version to detect any changes in relation to the SUT's intended behaviour. Our preliminary evaluation shows that the proposed approach can enhance the detection of behaviour changes substantially, providing initial evidence of its effectiveness. |
| title | Towards Automatic Generation of Amplified Regression Test Oracles |
| topic | Software Engineering D.2 |
| url | https://arxiv.org/abs/2307.15527 |