[
https://issues.apache.org/jira/browse/CRUNCH-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473561#comment-13473561
]
Josh Wills commented on CRUNCH-93:
----------------------------------
Re 1, it's also useful for unit testing a DoFn process() implementation by
passing it an input, collecting its outputs using the InMemoryEmitter, and
checking their contents.
Re 2, TestCounters should be used directly for unit tests, again as a way of
verifying that the DoFn you are testing increments the counters you expect it
to increment when passed a test input.
> Crunch core source should not contain packages like o.a.c.test
> ---------------------------------------------------------------
>
> Key: CRUNCH-93
> URL: https://issues.apache.org/jira/browse/CRUNCH-93
> Project: Crunch
> Issue Type: Bug
> Reporter: Rahul Sharma
> Priority: Minor
>
> Crunch core has the following things a package named o.a.c.test and
> TestCounters class.The source should not contain test package and classes
> named with Test.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira