Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shaikrasheed99/go-testing-greet

Testing the Greet functionality with Unit tests, Subtests and Table-driven tests.
https://github.com/shaikrasheed99/go-testing-greet

go golang subtests table-driven-test tdd tdd-golang unit-testing

Last synced: about 1 month ago
JSON representation

Testing the Greet functionality with Unit tests, Subtests and Table-driven tests.

Awesome Lists containing this project

README

        

# Testing in Go!

This is the material repository for my below articles on Medium.

* [How to Write Unit Tests in Go](https://medium.com/@rasheed99/how-to-write-unit-tests-in-go-a0492e18aff2)
* [How to Write Table-driven Tests in Go](https://medium.com/@rasheed99/how-to-write-table-driven-tests-in-go-8e96ef048cca)
* [How to Write Subtests in Go](https://medium.com/@rasheed99/how-to-write-subtests-in-go-7cd9c066579d)

To run all the test cases use below command.

```bash
go test ./...
```