ZJU-ACES-ISE / chatunitest-maven-plugin

MIT License
47 stars 10 forks source link

Generate successful test run error or compilation failure #6

Open cube-dragon opened 2 days ago

cube-dragon commented 2 days ago
  1. Due to the current generation logic being designed to generate tests for individual methods and ultimately consolidate them into a single package, issues arise when there are test classes and enum classes with the same name.

  2. Some tests generated by the LLM not only use internal classes but also external classes with the same name, leading to confusion about which class should actually be used.

  3. The tests generated by the LLM attempt to throw an exception that will never be thrown. image

cube-dragon commented 2 days ago

The first issue has been resolved, and the idea is to iterate through all tests after generation and add numbering to the names of internal and enumeration classes to prevent naming conflicts