ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Fernandez <>
Subject Categorizing Unit Tests
Date Mon, 03 Oct 2016 23:25:10 GMT
Hi devs,

I recently committed AMBARI-14439<>
so that we can categorize unit tests and create maven profiles so that devs can easily run
a first-pass of unit tests for the feature they are working on.
mvn clean test -P AlertTests
mvn clean test -P StackUpgradeTests

(these profiles exist in the top-level pom.xml)

Once those tests pass, the developer should still run a full set of unit tests. This should
give developers immediate test results more quickly, and allow unit test frameworks to parallelize
unit tests more easily.
I've only annotated several classes out of hundreds to provide an example; if anyone makes
changes to unit tests, please annotate the classes with a category (or feel free to create
your own category). E.g.,

@Category({ category.AlertTest.class})
public class AlertDefinitionHashTest extends TestCase {

Thank you in advance,
Alejandro Fernandez

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message