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

Make polling reporters testable and use the same approach when testing them #122

Merged
merged 1 commit into from
Nov 22, 2011

Conversation

chids
Copy link
Contributor

@chids chids commented Nov 22, 2011

Applies to:

  • CsvReporter and ConsoleReporter (metrics-core)
  • GangliaReporter (metrics-ganglia)
  • GraphiteReporter (metrics-graphite)

Besides the refactorings done to be able to test the reporters this
change also makes metrics-core build a test-jar so that other modules
can include that as a test dependency (see for example
metrics-graphite/pom.xml) in addition to them having a regular compile
dependency on metrics-core. This change allows the modules to access the
test classes in metrics-core and hence we're able to use the same
abstract base class (AbstractPollingReporterTest) for all polling reporter tests.

them. Applies to:
- CsvReporter and ConsoleReporter (metrics-core)
- GangliaReporter (metrics-ganglia)
- GraphiteReporter (metrics-graphite)

Besides the refactorings done to be able to test the reporters this
change also makes metrics-core build a test-jar so that other modules
can include that as a test dependency (see for example
metrics-graphite/pom.xml) in addition to them having a regular compile
dependency on metrics-core. This change allows the modules to access the
test classes in metrics-core and hence we're able to use the same
abstract base class (AbstractPollingReporterTest) for all polling reporter tests.
codahale added a commit that referenced this pull request Nov 22, 2011
Make polling reporters testable and use the same approach when testing them
@codahale codahale merged commit 727fcbc into dropwizard:development Nov 22, 2011
@codahale
Copy link
Contributor

Glorious. Thank you.

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

2 participants