Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am new to Talend Studio and am trying to run automated execution of Talend test cases. Tests are running as expected when executing them manually from the Talend Studio. But I am having issues when trying to automate the execution by using maven and by running mvn test on the source code generated by Talend Studio.
Talend Studio Version: Talend Big Data 7.1.1
Maven version: 3.6.2
Issue: (logged by maven)
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ routines ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ routines ---
[INFO] No tests to run.
I know that there are documents on how to automate the execution through CI/CD (ref: Talend 7.1: Scheduling automatic executions on your build environment) ). But due to corporate and access restrictions, I don't have access to some credentials so I'm unable to follow all the steps in the document. While working with the restrictions, I followed the steps below:
1. Open Talend Studio. Right-click on the job with the test case to be automated, and select Build Job
2. Select the following build parameters and click Finish
3. Unzip the source code generated by Talend Studio.
4. Open Windows command line and navigate to the path of the unzipped source code
5. Run the following command:
mvn -Dcommandline.skip=true test -e
After running the maven command, I am encountering the No tests to run issue. But test cases are running as expected when running it manually from the studio, or when building the job with the following options:
Can anyone please advise if I am missing something?
Hello,
Is there any log in the executed TestCase?
Are you able to find your files for test history are created in the path.
[workspace]\[projects]\tests\jobs\_xxxxxxxxxxxxxxxx\history_xxxxxxx_0.1?
Please check lastGenerated.log in [workspace]\.Java
Best regards
Sabrina