Skip to content

This project is an example to develop API application using Go. It provide that searching the Marvel comic characters through Marvel API.

Notifications You must be signed in to change notification settings

koseburak/go-marvel-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-marvel-api

using go search the Marvel universe characters via marvel api

Build and run tests on the local environemnt


Build the project

$ go build -a -v -o out/marvel .


Run tests


  • Run unit tests

    $ go test ./... -v -coverprofile="out/test-reports/cover.out"

  • Generate unit test report

    $ gotestsum --junitfile out/test-reports/unit-tests-report.xml

  • Generate coverage report

    $ go tool cover -html="out/test-reports/cover.out" -o="out/test-reports/cover-report.html"

    cover-report

  • Generate func based coverage report

    $ go tool cover -func="out/test-reports/cover.out" > out/test-reports/cover-func-report.out

    cover-func-based



Circleci integration


You can join the Circleci Project Team here...



[build] stage run after commit pushed to remote for all branches in Circleci workflows. circleci-build-release

You can find the build artifact and test reports under Circleci Artifacts menu of current build. circleci-build-artifacts

  • [publish-github-release] stage is running only after the tag pushed to remote. It's publish the new release automatically including the binary/assets with your tag name on Github. github-auto-releae-output

About

This project is an example to develop API application using Go. It provide that searching the Marvel comic characters through Marvel API.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published