The test pragma - 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 test case is defined with a preceding pragma {Test} by the function or method containing test code.

Note

Every test function or method needs to be public.

{Test}
FUNCTION PUBLIC TheDriverCommunicationWorks
    // test code regarding communication with driver
    ;
END_FUNCTION