Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic unit tests for CI #5

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add basic unit tests for CI #5

wants to merge 6 commits into from

Conversation

smortex
Copy link

@smortex smortex commented Nov 18, 2022

In order to detect regressions, we need at least basic unit tests.

This have been tested here: smortex#1

This PR also include:

This allows us to run this tool along other tools in a single process
using riemann-wrapper.
* Use a Gemfile / .gemspec file for bunder;
* Drop the extension of Rakefile.rb to follow current conventions;
* Drop now useless tooling from the Rakefile;
* Make the version of the gem available from the code.

These changes are supposed to introduce no functional change, and are
intended to make it easier to manage the module code.
For now, disable unit tests because we don't have unit tests.
PG::Error is a kind of StandardError, here we want to catch this kind of
exception.

The error was reported by Rubocop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant