Hi Clover community,
I’m trying to write some tests using the Java testing framework, the one bonded to the CloverTestComparator sandbox.
I understand that calling ICloverTestApi#compare method we can check if the executing has passed through the given edge. We can edit the graph to write intermediary values into a database table or another destination and from my Java unit test interrogate the database and check if the generated value is what I’m expecting.
Ideally, what I would like to achieve, is to execute a single node, providing input data and retrieving output data after the execution so I can test the smallest unit possible. Can you confirm the only way for doing it is to change the graph to save intermediary results?
If it’s the only way, would it be possible to add a utility graph DownloadFile similar to UploadFile? In this way we could simply write and download csv/json files from the server. Open a connection to a database from a build server or a local development machine is tricky to do because of network restrictions.
Let me know if question is not clear.
Thank you,
Egidio