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

Refactor module and test suite #31

Merged
merged 4 commits into from
Jan 3, 2014
Merged

Refactor module and test suite #31

merged 4 commits into from
Jan 3, 2014

Conversation

wvanbergen
Copy link
Contributor

I ran into some issues with the test suite when I was trying to work on new features. So I decided to do a refactor first

  • Refactor write method into three different methods with a single responsibility.
  • Allow StatsD instrumentation to be removed.
  • Split tests into basic statsd client tests, and instrumentation tests.
  • No more leaky tests, by removing instrumentation and proper stubbing
  • Added a live test that actually tests sending a UDP packet locally.
  • Increased test coverage here and there.

Should be 100% backwards compatible (TM).

@jstorimer @csfrancis

- Refactor write method into three different methods with a single responsibility.
- Allow StatsD instrumentation to be removed.
- No more leaky tests, by removing instrumentation and proper stubbing
@jstorimer
Copy link
Contributor

Nice refactor. LGTM 🚢

wvanbergen added a commit that referenced this pull request Jan 3, 2014
Refactor module and test suite
@wvanbergen wvanbergen merged commit 1745db6 into master Jan 3, 2014
@wvanbergen wvanbergen deleted the refactor branch January 3, 2014 05:27
@wvanbergen
Copy link
Contributor Author

Failing test is a rubygems issue on 1.8.7, and will be fixed in the next rubygems release.

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.

2 participants