Other Commands
In addition to the collect command, the Qualflare CLI provides several utility commands for validation, format listing, and version information.
validate Command
Validate test result files without uploading them to the server. This is useful for checking if your test results are properly formatted before uploading.
Syntax
qf <identifier> validate [files...] [flags]Flags
| Flag | Short | Description |
|---|---|---|
--format | -f | Test framework format to validate against (auto-detected if not specified) |
--help | -h | Help for validate command |
--verbose | -v | Enable verbose output |
--quiet | -q | Suppress non-error output |
Usage Examples
# Validate a single JUnit XML file
qf myapp validate results.xml
# Validate with specific format
qf myapp validate results.json --format playwright
# Validate multiple files
qf myapp validate test-results/*.xml
# Validate pytest results
qf myapp validate pytest-report.xml --format python
# Validate with verbose output
qf myapp validate results.json -vOutput
The validate command displays one line per file with the validation result:
$ qf myapp validate results.xml
OK results.xml: valid (junit, 42 tests)For invalid files, an error message is displayed:
$ qf myapp validate invalid.xml
ERR invalid.xml: invalid - XML syntax error at line 15Exit Codes
0- All files validated successfully1- One or more files failed validation
list-formats Command
List all supported test result formats and frameworks. Use this command to see which testing frameworks are supported by the Qualflare CLI.
Syntax
qf list-formats [flags]Flags
| Flag | Short | Description |
|---|---|---|
--category | -c | Filter by category (generic, unit, bdd, e2e, api, security) |
--help | -h | Help for list-formats command |
Aliases
qf formatsqf lf
Usage Examples
# List all supported formats
qf list-formats
# List only generic (JUnit-compatible) frameworks
qf list-formats --category generic
# List only unit testing frameworks
qf list-formats --category unit
# List only E2E/mobile frameworks
qf list-formats -c e2e
# List security testing tools
qf list-formats -c securitySample Output
$ qf list-formats
Generic (JUnit-compatible):
- junit
Unit Testing:
- python
- golang
- jest
- mocha
- rspec
- phpunit
- testng
BDD / Behavior-Driven:
- cucumber
- karate
UI / E2E / Mobile Testing:
- playwright
- cypress
- selenium
- testcafe
- maestro
- xctest
- espresso
API Testing:
- newman
- k6
Security Testing:
- zap
- trivy
- snyk
- sonarqubeversion Command
Display version information about the Qualflare CLI.
Syntax
qf version [flags]Flags
| Flag | Short | Description |
|---|---|---|
--short | -s | Print short version only |
--help | -h | Help for version command |
Usage Examples
# Display full version information
qf version
# Display short version
qf version --short
# Display short version (alternative)
qf version -sOutput Examples
Full version output:
$ qf version
qf 0.1.8 (commit: 7ba8c3a, built: 2026-05-18T21:00:25Z, darwin/arm64, go1.25.10)Short version output:
$ qf version -s
qf 0.1.8Output Fields
| Field | Description |
|---|---|
| Version | Semantic version of the CLI |
| Commit | Git commit hash (first 7 characters) |
| Built | Build timestamp |
| OS/Arch | Operating system and architecture |
| Go Version | Go runtime version used to build the CLI |
Common Use Cases
Pre-commit Validation
Use validate in git pre-commit hooks to ensure test results are valid before committing:
#!/bin/bash
# .git/hooks/pre-commit
# Validate test results before committing
qf myapp validate test-results/*.xml
if [ $? -ne 0 ]; then
echo "Invalid test results detected. Please fix before committing."
exit 1
fiCI/CD Debugging
Use list-formats to verify supported frameworks in your CI environment:
# In CI pipeline
echo "Checking supported formats..."
qf list-formatsVersion Verification
Use version to verify the CLI installation in CI/CD pipelines:
# Verify CLI is installed and working
qf version --shortFormat Detection Testing
Use validate with verbose output to see which format was auto-detected:
# Test format auto-detection
qf myapp validate unknown-results.json -vSee Also
- Installation - Install the Qualflare CLI
- Collect Command - Upload test results to Qualflare
- CI/CD Integration - Integrate with your CI/CD pipeline
- Configuration - Environment variables and global flags