You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/05/04 09:24:00 UTC
[jira] [Resolved] (SLING-3181) Use the *IT.java name pattern to separate between unit and integration tests
[ https://issues.apache.org/jira/browse/SLING-3181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-3181.
-------------------------------------
Resolution: Won't Fix
> 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
(v8.20.10#820010)