Files
iris-context/commands/runner/phpunit.go
T
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

53 lines
3.6 KiB
Go

package runner
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "phpunit",
Description: "Generate code coverage report in Clover XML format,",
Options: []spec.Option{
{Name: "--coverage-clover", Description: "Generate code coverage report in Clover XML format,"},
{Name: "--coverage-crap4j", Description: "Generate code coverage report in Crap4J XML format"},
{Name: "--coverage-html", Description: "Generate code coverage report in HTML format"},
{Name: "--coverage-php", Description: "Export PHP_CodeCoverage object to file"},
{Name: "--coverage-text", Description: "Generate code coverage report in text format [default: standard output]"},
{Name: "--coverage-xml", Description: "Generate code coverage report in PHPUnit XML format"},
{Name: "--coverage-cache", Description: "Cache static analysis results"},
{Name: "--warm-coverage-cache", Description: "Warm static analysis cache"},
{Name: "--coverage-filter", Description: "Include <dir> in code coverage analysis"},
{Name: "--path-coverage", Description: "Perform path coverage analysis"},
{Name: "--disable-coverage-ignore", Description: "Disable annotations for ignoring code coverage"},
{Name: "--no-coverage", Description: "Ignore code coverage configuration"},
{Name: "--dont-report-useless-tests", Description: "Do not report tests that do not test anything"},
{Name: "--strict-coverage", Description: "Be strict about @covers annotation usage"},
{Name: "--strict-global-state", Description: "Be strict about changes to global state"},
{Name: "--disallow-test-output", Description: "Be strict about output during tests"},
{Name: "--disallow-resource-usage", Description: "Be strict about resource usage during small tests"},
{Name: "--enforce-time-limit", Description: "Enforce time limit based on test size"},
{Name: "--default-time-limit", Description: "Timeout in seconds for tests without @small, @medium or @large"},
{Name: "--disallow-todo-tests", Description: "Disallow @todo-annotated tests"},
{Name: "--log-junit", Description: "Log test execution in JUnit XML format to file"},
{Name: "--log-teamcity", Description: "Log test execution in TeamCity format to file"},
{Name: "--testdox-html", Description: "Write agile documentation in HTML format to file"},
{Name: "--testdox-text", Description: "Write agile documentation in Text format to file"},
{Name: "--testdox-xml", Description: "Write agile documentation in HTML format to file"},
{Name: "--reverse-list", Description: "Print defects in reverse order"},
{Name: "--no-logging", Description: "Ignore logging configuration"},
{Name: "--prepend", Description: "A PHP script that is included as early as possible"},
{Name: "--bootstrap", Description: "A PHP script that is included before the tests run"},
{Name: "-c", Description: "Read configuration from XML file"},
{Name: "--no-configuration", Description: "Ignore default configuration file (phpunit.xml)"},
{Name: "--extensions", Description: "A comma separated list of PHPUnit extensions to load"},
{Name: "--no-extensions", Description: "Do not load PHPUnit extensions"},
{Name: "--include-path", Description: "Prepend PHP's include_path with given path(s)"},
{Name: "-d", Description: "Sets a php.ini value"},
{Name: "--cache-result-file", Description: "Specify result cache path and filename"},
{Name: "--generate-configuration", Description: "Generate configuration file with suggested settings"},
{Name: "--migrate-configuration", Description: "Migrate configuration file to current format"},
},
})
}