[
https://issues.apache.org/jira/browse/ACCUMULO-4423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15450245#comment-15450245
]
Josh Elser commented on ACCUMULO-4423:
--------------------------------------
Just put up #144 on GH for 1.7. This was pretty easy (once I figured out how to
make master work).
Intentions are as such:
1. {{mvn package}} still works as before
2. {{mvn verify}} still works as before
3. Introduces {{mvn package -Pminicluster-unit-tests}} which runs tests only
capable of using MAC in addition to #1
4. Introduces {{mvn verify -Pminicluster-unit-tests -Dtest=foo}} which runs the
ITs capable of MAC or a standalone instance
Thoughts? I feel like a separate profile for #4 might be a good change.
FYI, [~dimaspivak], [~ctubbsii].
> Define categories for integration test execution
> ------------------------------------------------
>
> Key: ACCUMULO-4423
> URL: https://issues.apache.org/jira/browse/ACCUMULO-4423
> Project: Accumulo
> Issue Type: Improvement
> Components: build, test
> Reporter: Josh Elser
> Assignee: Josh Elser
> Fix For: 1.7.3, 1.8.1, 2.0.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Had a thought the other day when talking to some folks about testing.
> Our current integration tests can be broken down into two categories:
> * Encapsulated (MiniCluster only)
> * Capable of using a Standalone Accumulo instance (instead of a MiniCluster)
> with any ITs that don't have MiniClusters (if there are any), I am lumping
> them into the Encapsulated category.
> Now, if I have an environment set up which I can run these Standalone tests
> against, it would be nice to just be able to execute those tests. I could
> then run the unit tests, checkstyle, findbugs, and encapsulated integration
> tests out of band, not tied to the lifetime (and cost) of that environment
> for the Standalone tests.
> It would be nice if we can use something like JUnit categories to group these
> tests and then provide the "hooks" in the build to let users specify which
> categories are executed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)