Command Line Interface

A VUnit object can be created from command line arguments by using the from_argv method effectively creating a custom command line tool for running tests in the user project. Source files and libraries are added to the project by using methods on the VUnit object. The configuration is followed by a call to the main method which will execute the function specified by the command line arguments and exit the script. The added source files are automatically scanned for test cases.

Usage

VUnit command line tool version 5.0.0.dev17

usage: run.py [-h] [--with-attributes WITH_ATTRIBUTES]
              [--without-attributes WITHOUT_ATTRIBUTES] [-l] [-f] [--compile]
              [-m] [-k] [--fail-fast] [--elaborate] [--clean] [-o OUTPUT_PATH]
              [--changed] [--test-prio {opt,ordered}] [-x XUNIT_XML]
              [--xunit-xml-format {jenkins,bamboo}] [--exit-0]
              [--dont-catch-exceptions] [-v] [-q] [--no-color]
              [--log-level {info,error,warning,debug}] [-p NUM_THREADS] [-u]
              [--export-json EXPORT_JSON] [--version] [--seed <seed>|repeat]
              [-g] [--debugger {original,visualizer}]
              [--viewer-fmt {vcd,fst,ghw}] [--viewer-args VIEWER_ARGS]
              [--viewer VIEWER] [--cdslib CDSLIB] [--hdlvar HDLVAR]
              [tests ...]

Positional Arguments

tests