Skip to content

Instantly share code, notes, and snippets.

View aamironline's full-sized avatar
💭
Enjoying my work!

Mohamed Aamir Maniar aamironline

💭
Enjoying my work!
View GitHub Profile
@aamironline
aamironline / test-coverage.sh
Last active November 17, 2022 02:23
Runs tests and generate coverage report for your Go projects
#!/bin/sh
# This script is used to generate test coverage reports for the
# go project. It is intended to be run from the root of the project
# directory.
echo "Running tests and generating coverage report..."
go test -coverprofile=coverage.out
echo "Opening coverage report..."
"""
ISC License:
Copyright (c) 2020, Mohamed Aamir Maniar
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF