/devops-golang-unit-test-check

Configure GitHub workflow for running unit tests, which should be passed without errors.

Primary LanguageGo

Unit test check in golang

Configure GitHub workflow for running unit tests, which should be passed without errors.

Performed things,

  • Write unit tests for user CRUD operation.
  • Ensure the test covers all the success and error cases and passes with 85% code coverage.
  • Write GitHub CI script to run Unit test.
  • Configure the database and script to run unit tests as part of the CI/CD pipeline.
  • Setup to runs the unit test on each commit.