Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I would like to know if it's possible to create test cases using JUnit when developing a routine ?
I could develop my routine using Eclipse first, with JUnit test cases, and then copy-paste my code in my Talend routine file, but it might be possible to test my routine code directly in Talend.
Thanks for your light ! 🙂
Hello,
Currently when we try to build the Talend job, it is only executing the component specific test cases, not the ones written using Routines.
In Talend, you could create the routine and use some assertion for each user case(basically you created a very simple job to run the test, eg, tMap, as you're coding your routines directly in Talend, but separately from the use of that routine in ETL job).
Or You can use Eclipse to driven test and construct your routine.
Export in jar format , add jar to Talend lib or load jar file with Talend component (eg. tLibraryLoad) and Test with different user cases.
Hope it helps.
Best regards
Sabrina
Hello,
Currently when we try to build the Talend job, it is only executing the component specific test cases, not the ones written using Routines.
In Talend, you could create the routine and use some assertion for each user case(basically you created a very simple job to run the test, eg, tMap, as you're coding your routines directly in Talend, but separately from the use of that routine in ETL job).
Or You can use Eclipse to driven test and construct your routine.
Export in jar format , add jar to Talend lib or load jar file with Talend component (eg. tLibraryLoad) and Test with different user cases.
Hope it helps.
Best regards
Sabrina
Thanks a lot xdshi ! 🙂
The topic is solved !
Hello,
Great it helps. Feel free to post your any issue here.
Best regards
Sabrina