Organizing productive code and tests - 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

AxUnit-ST searches tests in the /test directory located next to the /src directory.

Note

At least one .st file containing a namespace is required in your src folder.

// dummy.st
NAMESPACE Dummy.Ns
END_NAMESPACE

Note

Every class in the /test folder has to be inside a namespace.

// MyTest.st
NAMESPACE TestNamespace
CLASS MyTestClass
...
END_CLASS
END_NAMESPACE

Note

We determine the order of the executed tests by building a fully qualified name of the test (that means we add the namespace, class and name of the test) and bring them in alphabetical order. If you need your tests to be in a specific state, we recommend to use our initializer methods.