Summary
Tool: testability-index
Problem: DI score shows 0% even when using Lombok's constructor injection annotations (@requiredargsconstructor, @AllArgsConstructor, @NoArgsConstructor)
Effect: False-negative assessment of project's testability, misleading "high-risk" AI safety rating
Current Behavior
When a Spring Boot project uses Lombok annotations for constructor-based dependency injection:
@Service
@RequiredArgsConstructor
public class UserService {
private final UserRepository userRepository;
private final EmailService emailService;
public void processUser(User user) {
// Business logic
}
}
The tool reports:
{
"dependencyInjectionScore": 0,
"message": "Only 0% of classes use dependency injection — hard to mock for AI verification."
}
The tool should:
- Recognize Lombok-annotated constructors as valid dependency injection
- Calculate DI score based on actual constructor injection usage
- Provide accurate testability assessment for Spring Boot + Lombok projects
Summary
Tool: testability-index
Problem: DI score shows 0% even when using Lombok's constructor injection annotations (@requiredargsconstructor, @AllArgsConstructor, @NoArgsConstructor)
Effect: False-negative assessment of project's testability, misleading "high-risk" AI safety rating
Current Behavior
When a Spring Boot project uses Lombok annotations for constructor-based dependency injection:
The tool reports:
{ "dependencyInjectionScore": 0, "message": "Only 0% of classes use dependency injection — hard to mock for AI verification." }The tool should: