Executing tests in the CLI - Manual - AxUnit-ST - AxUnit ST documentation package - AxUnit-ST,

AxUnit-ST CLI Tool (test)

Portfolio
SIMATIC AX
Product
AxUnit-ST
Software version
8.3.9
Edition
07/2025
Language
English (original)
Package Name
@ax/axunitst-docs

The default engine for testing is LLVM.

  apax test

If you want to execute tests for a different target, you must specify this with the additional engine parameter -e and the target IP address:

-e plcsim or -e mc7p and -t "127.0.0.1"

You may add the target IP variable to the apax.yml file, and add it as a variable to your CLI call:

variables:
  AXUNIT_TARGET_IP: "192.168.0.1"
apax test -e plcsim -t $AXUNIT_TARGET_IP

WARNING

The targeted PLC will switch to the STOP state and automatically start the test program! Be sure to use the correct IP address, since loading to the wrong PLC can cause serious damage.