This paper proposes AutoTestAI, an exploratory implementation-oriented framework that combines contract preprocessing, a structured auditor-style prompt, and multilayer output purification to produce machine-readable CSV test specifications suitable for downstream review and possible test implementation.
Abstract
Smart contract failures can cause irreversible financial and operational losses, yet current validation workflows still rely heavily on warnings, execution traces, and manually authored tests that are difficult to scale for contract-specific logic. Existing automated tools—static analyzers, symbolic executors, and fuzzers—primarily produce issue-centered outputs such as warnings or counterexamples rather than structured, reviewable test artifacts. This paper investigates whether large language models (LLMs) can bridge this gap by generating structured draft test specifications from Solidity source code. We propose AutoTestAI, an exploratory implementation-oriented framework that combines contract preprocessing, a structured auditor-style prompt, and multilayer output purification to produce machine-readable CSV test specifications suitable for downstream review and possible test implementation. On a 27-contract main benchmark, AutoTestAI achieves 91.3% overall function-level coverage. Under the revised baseline-and-ablation framework, CSV purification improves mean contract-level coverage on the Main27 split from 0.00% (strong_raw) to 91.53% (strong_purified), while enabling preprocessing within the full pipeline improves Holdout40 mean coverage from 69.73% (autotestai_no_preprocess) to 83.46% (autotestai_full), with both coverage gains statistically significant under paired Wilcoxon testing ( $p{\lt }0.01$ ). An expanded Foundry executability-convertibility validation shows 141/141 converted tests compiled and 133/141 executed successfully. A fresh 40-contract multi-project holdout set and a model sensitivity check with gpt-4o further examine broader applicability and model dependence. The method is intended as a practical complementary layer alongside static analysis, symbolic execution, fuzzing, and expert review, rather than a production-ready auditing framework or a substitute for formal verification, exhaustive testing, or expert judgment.
CTForge is presented, an LLM-powered framework that automatically generates configuration-specific test suites and demonstrates that structured configuration-aware refinement is essential for LLM to produce effective test suites.
Yuanliang Zhang, Zhizheng Zheng, Shanshan Li et al.· 0 citations
By treating the benchmark as an executable specification rather than a static dataset, the proposed paradigm shifts benchmark construction from artifact curation to declarative experimental design.
The proposed Koan-Safe, which combines a prompt-only intent parser, a replaceable generator, and structural repair with default safety parameters, is proposed, which supports explicit trade protections and execution-based evaluation, while distinguishing declared safety from a general guarantee.
Abhinav Kumar, Harshit Arora, Varun Singh et al.· 0 citations
The results show that executable feedback can repair secure-code generation, but its benefits depend on the model, task, feedback entry point, and especially test coverage.
Yun-Hao Liang, Cheng-Guang Gan, Rui-Xuan Ying et al.· 2 citations
E EduPluginBench is introduced, an executable benchmark and staged admission method for generated plugins in governed software ecosystems that retains protocols, public-source provenance, raw generations, row-level decisions, audits, analysis code, and reproduction instructions.
This work introduces PonyEval, a SWE-bench-style benchmark of 291 real GitHub issue-pull-request pairs from 15 Pony repositories that defines a matched evaluation with mini-SWE-agent 2.4.6 for GPT-5.6-sol, DeepSeek-V4-Pro, GLM-5.2, MiniMax-M3, and Kimi-K3, followed by strict patch application, compilation, and hidden-t...
Bang Xie, Hao Liu, Zhen-Yu Shi et al.· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.