ls1intum / Ares

The Artemis Java Test Sandbox. A JUnit 5 Extension for Easy and Secure Artemis Java Testing
https://ls1intum.github.io/Ares/
MIT License
18 stars 7 forks source link

Generate separated structural tests #253

Open walamana opened 2 years ago

walamana commented 2 years ago

Is your feature request related to a problem? Please describe. Currently, the structural tests only generate one test case per class, that combines every constructor/attribute/method. If only one is not properly implemented, the whole test would fail. This makes it hard to give good feedback on a UML diagram on Artemis. If one attribute/method is not existing or wrongly implemented, the student could not easily see, where the issue lies and may be confused by seeing the whole class marked red. Now I would have to create custom test cases that would test for each class attribute/method/...

Describe the solution you'd like The TestProviders should generate test cases for each attribute in the implementation, maybe even with optional enabling.

Describe alternatives you've considered

Additional context Adding this will probably make it cumbersome to remove grades for every test case. Maybe there is an option to make this kind of test optional as in it will not be graded but only give more feedback.

Ares-Version you are using 1.10.1