AML14 / tratto

2 stars 1 forks source link

Experiment Remove Oracles #66

Closed ezackr closed 8 months ago

ezackr commented 1 year ago

NOTE: Please review the original pull request "Experiment Setup" (https://github.com/AML14/tratto/pull/65) before this pull request. This pull request builds a part of the functionality from the pipeline outlined by the aforementioned pull request.

This pull request implements the functionality of removing oracles from Java test files. We use this functionality to create test prefixes, which may be used by a test oracle generator. This is 1 of 2 functionalities in TestUtils, and a key step in the experimental pipeline.

We test the functionality using a diverse example test class, ExampleTest.java, with various examples of normal assertion and exceptional oracles.

For now, we implement FileUtils by copy-pasting the implementation from the main Tratto project. This will be updated as https://github.com/AML14/tratto/pull/41 is updated.