activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbert...@apache.org
Subject [1/2] activemq-6 git commit: Renaming profiles to tests and fast-tests
Date Wed, 04 Mar 2015 20:42:55 GMT
Repository: activemq-6
Updated Branches:
  refs/heads/master 8455ea1ae -> 242a5fac8


Renaming profiles to tests and fast-tests

Also changing the README to be in according to what's used now
Also add some wording about style on Idea


Project: http://git-wip-us.apache.org/repos/asf/activemq-6/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-6/commit/78520151
Tree: http://git-wip-us.apache.org/repos/asf/activemq-6/tree/78520151
Diff: http://git-wip-us.apache.org/repos/asf/activemq-6/diff/78520151

Branch: refs/heads/master
Commit: 78520151f8dff457bc6a87090d36d834024de760
Parents: 8455ea1
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Wed Mar 4 14:53:38 2015 -0500
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Wed Mar 4 15:09:26 2015 -0500

----------------------------------------------------------------------
 README.md | 24 ++++++++++++++++++------
 pom.xml   |  8 ++++++--
 2 files changed, 24 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-6/blob/78520151/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index badc9aa..3842e0c 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,7 @@ simply run
 
 To run the unit tests:
 
-```% mvn -Phudson-tests test```
+```% mvn -Ptests test```
 
 Generating reports from unit tests:
 
@@ -82,7 +82,7 @@ Generating reports from unit tests:
 
 Running tests individually
 
-```% mvn -Phudson-tests -DfailIfNoTests=false -Dtest=<test-name> test ```
+```% mvn -Ptests -DfailIfNoTests=false -Dtest=<test-name> test ```
 
 where &lt;test-name> is the name of the Test class without its package name
 
@@ -130,6 +130,8 @@ can be installed from [Eclipse Kepler release repository].
 
 ## IntelliJ IDEA
 
+### Importing the Project
+
 The following steps show how to import ActiveMQ6 source into IntelliJ IDEA and setup the
correct maven profile to allow
 running of JUnit tests from within the IDE.  (Steps are based on version: 13.1.4)
 
@@ -139,21 +141,31 @@ This should open the import project wizard.  From here:
 
 * Select "Import from existing model" toggle box, then select Maven from the list box below.
 Click Next.
 * Leave the defaults set on this page and click next.
-* On the "Select profiles page", select the checkbox next to "Default" and click next.
+* On the "Select profiles page", select the checkbox next to "tests" and click next.
 * From here the default settings should suffice.  Continue through the wizard, clicking next
until the wizard is complete.
 
 Once the project has been imported and IDEA has caught up importing all the relevant dependencies,
you should be able to
 run JUnit tests from with the IDE.  Select any test class in the tests -> integration
tests folder.  Right click on the
 class in the project tab and click "Run <classname>".  If the "Run <classname>"
option is present then you're all set to go.
 
-### My JUnit tests are not runnable with in the IDE.
+
+### Style Templates for Idea
+
+We have shared the style templates that are good for this project. If you want to apply them
use these steps:
+
+* File->Import Settings
+* Select the file under ./activemq6-cloned-folder/etc/IDEA-style.jar
+* Select both Code Style Templates and File templates (it's the default option)
+* Select OK and restart Idea
+
+### Issue: My JUnit tests are not runnable with in the IDE.
 
 If the "Run <classname>" or "Run all tests" option is not present.  It is likely that
the default profile has not been
-imported properly.  To (re)import the "default" Maven profile in an existing project.
+imported properly.  To (re)import the "tests" Maven profile in an existing project.
 
 * Open the Maven Projects Tool Window: View -> Tool Windows -> Maven Projects
 * Select the "profiles" drop down
-* Unselect then reselect the checkbox next to "default".
+* Unselect then reselect the checkbox next to "tests".
 * Click on the "Reimport all maven projects" button in the top left hand corner of the window.
(It looks like a ciruclar
 blue arrow.
 * Wait for IDEA to reload and try running a JUnit test again.  The option to run should now
be present.

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/78520151/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index c8b35a4..bdb4dcd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -498,7 +498,9 @@
          
       </profile>
       <profile>
-         <id>hudson-tests</id>
+         <!-- tests is the profile we use to run the entire testsuite
+               Running this entire build could take up to 2 hours -->
+         <id>tests</id>
          <modules>
             <module>activemq-dto</module>
             <module>activemq-web</module>
@@ -537,7 +539,9 @@
          </properties>
       </profile>
       <profile>
-         <id>jenkins-fast-tests</id>
+         <!-- This will represent a subset of the tests
+              This is used on PR checks on the Jenkins instance at build.apache.org -->
+         <id>fast-tests</id>
          <modules>
             <module>activemq-dto</module>
             <module>activemq-web</module>


Mime
View raw message