konveyor / tackle-test-generator-core

Apache License 2.0
28 stars 21 forks source link

Optionally generate test cases from failing sequences #108

Closed rachelt44 closed 2 years ago

rachelt44 commented 3 years ago

Is your feature request related to a problem? Please describe.

Currently failing sequences are always discarded, however in some cases they may actually reveal issues in the code

Describe the solution you'd like

Optionally generate junit test cases from failing sequences, with exception handling code and assertions that check for the raised exception. We should probably come up with a heuristic in which cases it makes sense to generate such sequences and in which cases these are most probably false failures.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

rachelt44 commented 2 years ago

A first heuristic is whether the thrown exception appears in the throws statement of the method declaration

rachelt44 commented 2 years ago

Implemented and merged via PR: https://github.com/konveyor/tackle-test-generator-core/pull/131