How zju-aces-ise/chatunitest-core works
Project type and purpose
• This is a Java-based core library (“chatunitest-core”) that implements a “Generate-Validate-Fix” framework for automated unit-test generation using large language models.
• It is packaged as a Maven artifact and consumed by plugins (Maven plugin, IntelliJ IDEA plugin) to integrate into existing Java build workflows.
File structure
• Top‐level:
• pom.xml (build + dependency)
• src/main/java: two major packages:
– slicing: a static‐analysis engine (CFG/PDG/SDG builders, slicing algorithms)
– zju.cst.aces: the core API (generator, runner, phase, prompt, parser, coverage, util, dto, graph)
• src/main/resources: configuration (config.properties) and Freemarker templates (FTL files)
• No “frontend” or UI; this is a back-end library consisting of modular subsystems.
README
• Describes the workflow: Build core → add as Maven dependency → configure templates → run plugin.
• Mentions FTL (Freemarker) templates for prompt generation, extensibility via Java enums and PhaseImpl subclasses.
• Outlines “Generate‐Validate‐Fix” steps.