Skip to content

danielpsf/go-dummy-ms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dummy-ms

CircleCI codecov

dummy-ms aims to be a simple micro-service which can simulate a variety of scenarios such as:

  • Timeouts
  • Computer misbehave, like:
    • Excessive memory consumption
    • Excessive CPU consumption
    • Excessive network consumption
  • etc

By having a middleware capable of such things we could easily test our infrastructure knowing how it will react when a component of a business case misbehave.

Well, of course this is also a pet project so we could learn Golang best practices 😉

How to build and develop

Please follow the below instructions to safely prepare your environment for development

How to build your local environment

Running the unit tests and coverage

To run the unit tests and generate the coverage report (html), navigate to the project's root folder and execute go test -cover -coverprofile=coverage.out ./... && go tool cover -html=coverage.out

How to debug locally

Before submitting a Pull Request or making a git push, please

FAQ

Why ginko and gomega instead of native go unit testing

Well, I rather allow the tests to be our live documentation, so BDD makes it easier by having a better description of what is happening. ginko and gomega allow us to have better description through human readable test description and matchers (evaluations) and deliver great development capabilities with amazing assertions and nice tooling for TDD, such as $ ginko watch.

References

About

go-dummy-ms is a simple micro-service made in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages