Giter Club home page Giter Club logo

integration-test-in-go's Introduction

Integration testing in Go

This repository is the basis for the article: How to do integration test in Go (found here).

The article only focus on how to do integration tests and therefore does not provide any in-depth explanation of the code structure or any way to expose the functionality to the outside world.

You are free to use this code in anyway you see fit.

Requirements

This setup is built with macOS/linux in mind - if you are on windows, for some reason, google is your friend. However, if you've powershell installed and setup you should be able to run the make commands by adding it through choco.

Here's what you'll need:

  • Docker
  • Go

When running the testing command (make run-integration-tests) you will auto- matically build the image containing everything you need.

Running the app

If you want to run the app and make request to the API, simply run "make up" and then in another terminal run "make apply-migrations".

Gotchas

This setup is using volumes. I sometimes run into issues where some volumes are affecting others. If running make run-integration-tests doesn't work for you, try to first run make down. This will clear your system.

Any suggestions for improvements, please let me know!

License

MIT

integration-test-in-go's People

Contributors

mbvisti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.