keon94 opened a new issue, #4429:
URL: https://github.com/apache/incubator-devlake/issues/4429

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar feature requirement.
   
   
   ### Use case
   
   Currently the broadest automated testing that we do is e2e-testing of the 
plugins. This requires faking the data of datasources in CSV files. But we 
should also have tests that hit the actual datasources and run Devlake truly 
end to end.
   
   ### Description
   
   Following https://github.com/apache/incubator-devlake/issues/4353, we can 
leverage the Devlake Go client to interact with the API and create 
projects/blueprints and run them from Go tests. The scope of this ticket will 
be to write at least one test suite for any plugin. There should not need to be 
data correctness validation for such tests - that is meant to be covered by 
E2Es and unit tests.
   
   For any datasource that we choose, we'll need a test account with 
credentials to access it. Credentials should not be hardcoded in the test code 
and perhaps should be available through environment variables. 
   
   These tests should live inside backend/test.
   
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to