I'm trying to test my SQL database functions in SQL and it has become very cumbersome, so I had an idea of calling the SQL functions via the cloud API that interacts with the SQL database and testing the results of these functions using Jest (a Javascript testing framework). Will there ever be a case where I fail a test in the SQL database that would pass in the Jest tests or vice versa? More simply put, could this practice of testing my database functions by calling an API and using a non-SQL testing framework ever return results that differ from testing solely in the SQL database?
Aucun commentaire:
Enregistrer un commentaire