TIBCOSoftware / flogo-maven-plugin

Apache License 2.0
1 stars 0 forks source link

Test failing unexpected #3

Open g-bohncke opened 1 month ago

g-bohncke commented 1 month ago

While running any test via the maven plugin I get them failing with:

Running Test [example] for Flow [sayHello] from Suite [Testsuite_1]

Test case example doesnt have any assertions. Test execution skipped.
Running Test [greg] for Flow [sayHello] from Suite [Testsuite_1]

Test case greg doesnt have any assertions. Test execution skipped.
Running Test [weird chars] for Flow [sayHello] from Suite [Testsuite_1]

Test case weird chars doesnt have any assertions. Test execution skipped.

while if I run the same tests in vscode or via cli they pass: ./target/HelloWorld.exe test --test-file ./example.flogotest --app ./example.flogo --result-filename example.testresult --collect-coverage --test-preserve-io

Test case greg execution completed. All assertions passed
Running Test [weird chars] for Flow [sayHello] from Suite [Testsuite_1]
2025-05-07T12:12:10.350+0200    INFO    [flogo.flow] -  Executing Flow Instance [dc376d66bc743a1cc59ae729d431e662] for event id []
2025-05-07T12:12:10.351+0200    INFO    [flogo.general.activity.log] -  Name: *&$#@(&#@$&*#@!*^#$@!*%#^(!@#
2025-05-07T12:12:10.352+0200    INFO    [flogo.flow] -  Flow Instance [dc376d66bc743a1cc59ae729d431e662] for event id [] completed in 2.0944ms

Test case weird chars execution completed. All assertions passed
Test suite Testsuite_1 executed.
Tests Run: 3     Success: 3      Failure: 0      Error: 0

Suite Result
Suites Run: 1   Success: 1      Failure: 0
Printing result to file example.testresult.testresult 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     TIBCO Flogo® Runtime Test Execution Completed

the example code example.flogo.txt

example.flogotest.txt

g-bohncke commented 1 month ago

I think it has to do with the default value of the --test-preserve-io flag if i omit it from the cli call it also starts failing.

    @Parameter(property = "saveActivityInputOutput", defaultValue = "false")
    private boolean preserveIO;