klesh commented on issue #63:
URL: 
https://github.com/apache/incubator-devlake-website/issues/63#issuecomment-1381305052

   > any suggestion
   
   I think for the first section of the document could be a simple introduction 
and links to other articles of "How to write UnitTest for golang":
   
   - [Add a test - The Go Programming 
Language](https://go.dev/doc/tutorial/add-a-test)
   - [How To Write Unit Tests in Go | 
DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-write-unit-tests-in-go-using-go-test-and-the-testing-package)
   
   In the next section, we can add links to some of our test-case source file.
   
   - [incubator-devlake/migrator_test.go at 
243cc8a80aa5b37828e2a142ac9f7e3269b7e1dc ยท 
apache/incubator-devlake](https://github.com/apache/incubator-devlake/blob/243cc8a80aa5b37828e2a142ac9f7e3269b7e1dc/backend/core/migration/migrator_test.go)
   
   
   Lastly, we may declare that we prefer to use the following libraries to 
write unit tests:
   
   - "github.com/stretchr/testify/assert"
   -"github.com/stretchr/testify/mock"


-- 
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