You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2013/10/16 15:09:41 UTC
[jira] [Created] (SLING-3181) Use the *IT.java name pattern to
separate between unit and integration tests
Bertrand Delacretaz created SLING-3181:
------------------------------------------
Summary: Use the *IT.java name pattern to separate between unit and integration tests
Key: SLING-3181
URL: https://issues.apache.org/jira/browse/SLING-3181
Project: Sling
Issue Type: Improvement
Components: Best practices
Reporter: Bertrand Delacretaz
Priority: Minor
When a module contains both unit and integration tests, naming integration test classes *IT allows the surefire and failsafe plugins to automatically select the right tests, without requiring pom configurations.
In the bundles/scripting/core module for example, the BindingsValuesProvidersByContextIT test is run in the integration-tests phase, and other tests in the test phase, based only on the test names:
src/test/java/org/apache/sling/scripting/core/impl/BindingsValuesProvidersByContextIT.java
src/test/java/org/apache/sling/scripting/core/impl/DummyScriptEngineFactory.java
src/test/java/org/apache/sling/scripting/core/impl/helper/ProtectedBindingsTest.java
src/test/java/org/apache/sling/scripting/core/impl/LogWriterTest.java
src/test/java/org/apache/sling/scripting/core/impl/ScriptEngineManagerFactoryTest.java
--
This message was sent by Atlassian JIRA
(v6.1#6144)