CLI for Humlix
Humlix CLI is a command-line test suite runner for Humlix. It lets you generate tests from an OpenAPI specification or a Humlix test suite right from the command-line.
It integrates easily with your continuous integration servers.
To run Humlix, ensure that you have a Java runtime environment installed.
The easiest way to install Humlix CLI is by using NPM.
$ npm install -g humlix
That command will install Humlix globally on your system, allowing you to run it from anywhere. Remove the -g flag if you want to install it locally.
Using Humlix CLI
The humlix -r command allows you to run a specific test suite. You can easily export your Humlix test suite from the Humlix application and run it using Humlix CLI. Or you can use an OpenAPI specification.
$ humlix -r suites/my-openapi-specification.yaml
For the complete list of options, refer to the Command-Line Options section below.
Create JUnit reports with Humlix
A JUnit report provides information about the current test suite run in a format that is easy to analyze.
Configure Humlix to create JUnit reports using the -o or --output options.
Humlix CLI will default print the results to the console.
$ humlix -r suites/my-openapi-specification.yaml -o my-junit-report.xml
- -h, --help
Show command line help, including a list of options and sample use cases.
Specify an environment file path. Environments provide a set of variables for a test suite.
Specify if Humlix will generate tests. By default, Humlix will generate 200 tests unless you specify a count using the -c parameter.
Specify the mail address that corresponds with the license key.
Use a .env file and set mail as HUMLIX_MAIL='your email'
Specify the license key.
Use a .env file and set license key as HUMLIX_LICENSE='your license key'
Configuring JUnit reports
Sets the file name for the JUnit XML file that Humlix creates during the test suite run.
If you are interested in talking to the Humlix team, you can find us on feedback at humlix.com. Feel free to give feedback or request features that you would like to see in Humlix.