A brief description of how to develop a test case for an AI service on Oraichain:#
As Oraichain currently supports only shell script, a provider cannot use popular programming languages such as Python, Java & Nodejs to develop their services.
When developing a test case, it must have at least three input arguments. The first one is used for the name of the data source that it needs to run, while the second and the third are the input and expected output respectively provided by the user. In some cases, the user's input may not be necessary, but we still need to reserve it for other cases. The expected output should be compared to the output of the data source, and if the output does not meet the requirement (of the test case) then we return null. This is very important, as currently, Oraichain only checks if the output of a test case is empty or equal to null. If it passes these conditions, the result from data source will be collected and considered valid. An example of a test case is:
# $2 should be reserved for test case input if necessary