docs/plugins/analyze.md
Uses AI to analyze test failures and provide insights
This plugin analyzes failed tests using AI to provide detailed explanations and group similar failures. When enabled with --ai flag, it generates reports after test execution.
// in codecept.conf.js
exports.config = {
plugins: {
analyze: {
enabled: true,
clusterize: 5,
analyze: 2,
vision: false
}
}
}
clusterize (number) - minimum number of failures to trigger clustering analysis. Default: 5analyze (number) - maximum number of individual test failures to analyze in detail. Default: 2vision (boolean) - enables visual analysis of test screenshots. Default: falsecategories (array) - list of failure categories for classification. Defaults to:
prompts (object) - customize AI prompts for analysis
clusterize - prompt for clustering analysisanalyze - prompt for individual test analysisconfig Object Plugin configurationReturns void