STAMP-project/dspot
Automatically detect and generate missing assertions for Junit test cases (also known as test amplification)
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tháng
#1 Repository Của Tháng
#1 Repository Của Tháng
🤖 DSpot — Tăng cường test JUnit tự động bằng AI
DSpot sinh assertion và test case mới từ test suite hiện có, tăng coverage và phát hiện thay đổi hành vi.
DSpot là công cụ sinh assertion và test case mới cho JUnit. Nhận đầu vào là dự án Java có test suite, DSpot sinh test mới và ghi ra đĩa. Hỗ trợ dự án Maven và Gradle (--automatic-builder).
✨ Điểm nổi bật
- Tự động sinh assertion: thêm
assertTrue,assertFalsevào test dựa trên hành vi thực tế. - Amplifiers:
--amplifiers=AllAmplifierssửa setup test và thay đổi assertion. - Test selector:
--test-selector=PitMutantScoreSelectorgiữ test cải thiện coverage. - Hỗ trợ Maven & Gradle: tự động phát hiện builder qua
--automatic-builder. - Xuất test ra thư mục: cấu hình
outputDirectory(mặc định./target/dspot/output/). - Báo coverage: in ra % coverage trước/sau amplification.
- Demo site: https://dspot-demo.stamp-project.eu/ để thử nhanh.
- Plugin IDE: hỗ trợ Jenkins, Eclipse, IntelliJ.
💡 Vì sao đáng chú ý
DSpot không chỉ thêm assertion, mà còn sửa logic test và lọc kết quả qua selector. Phù hợp tích hợp CI để tự động cải thiện chất lượng test. Nghiên cứu chứng minh hiệu quả với 10 dự án nguồn lớn.
#TestAmplification #JUnit #Java #CodeCoverage #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
A library that creates fully populated objects for your unit tests.
Descartes supports developers to improve their test suites by reporting weak spots in covered code