rename of plugins without warning ...
by Max Rydahl Andersen
Hi Denis,
" • More
• 42127
• changed 73 files
• trunk
renamed org.jboss.tests.tests to org.jboss.tests.test to follow the common name pattern for test plugins. it also included into feature for consistency "
Do we really need to rename this ? And without warning ?
Everyone needs to exit their eclipse if they have this loaded and then do svn update otherwise everything will look like it is still there because eclipse will create the project dirs if deleted under it.
Please - lets not rename plugins "just for fun" and without warning!
/max
12 years, 5 months
Re: [jbosstools-dev] Failure to build 'tests' via cmd line
by Max Rydahl Andersen
Moving this to jbosstools list.
TestProjectProvider probably assumes the projects are exploded to copy the content you are referring to.
This works running from PDE/Eclipse since it does not package the plugins; but tycho does it *right* and thus it fails.
Solution:
A. mark your test projects to be bundle shape = dir in manifest.mf
or
B. fix TestProjectUtils so it does not rely on exploded content.
I would definitely prefer B over A, but A might get you past these test faster.
/max
On 22 Jun 2012, at 11:33, Rob Stryker wrote:
> Hi all:
>
> Executing the following, I get an NPE and, of course, nothing else can build if tests fails.
>
> Command:
>
> mvn clean install -P local.site,tests -Dlocal.site=file:////home/rob/code/zzz_build_test/jbosstools/build/target-platform/REPO/
>
> Error:
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.jboss.tools.tests.tests.AllTests
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.049 sec <<< FAILURE!
>
> Results :
>
> Tests in error:
> testProjectProvider(org.jboss.tools.tests.tests.UtilsTest)
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] tests.all ......................................... SUCCESS [0.651s]
> [INFO] tests.plugins ..................................... SUCCESS [0.024s]
> [INFO] org.jboss.tools.tests ............................. SUCCESS [2.138s]
> [INFO] org.jboss.tools.ui.bot.ext ........................ SUCCESS [5.594s]
> [INFO] tests.tests ....................................... SUCCESS [0.018s]
> [INFO] org.jboss.tools.tests.test ........................ FAILURE [9.857s]
> [INFO] org.jboss.tools.ui.bot.ext.test ................... SKIPPED
> [INFO] tests.features .................................... SKIPPED
> [INFO] org.jboss.tools.test.feature ...................... SKIPPED
> [INFO] tests.site ........................................ SKIPPED
> [INFO] org.jboss.tools.build ............................. SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 27.446s
> [INFO] Finished at: Fri Jun 22 17:18:58 CST 2012
> [INFO] Final Memory: 39M/398M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.15.0:test (default-test) on project org.jboss.tools.tests.test: There are test failures.
> [ERROR]
>
>
> Surefire report says:
>
> -------------------------------------------------------------------------------
> Test set: org.jboss.tools.tests.tests.AllTests
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.049 sec <<< FA
> ILURE!
> testProjectProvider(org.jboss.tools.tests.tests.UtilsTest) Time elapsed: 0.019
> sec <<< ERROR!
> java.lang.NullPointerException
> at org.jboss.tools.test.util.TestProjectProvider.<init>(TestProjectProvi
> der.java:62)
> at org.jboss.tools.tests.tests.UtilsTest.testProjectProvider(UtilsTest.j
> ava:16)
>
>
> Anyone have any ideas?
>
> I have tried this both in my main 'trunk' folder with the full svn checked out, and also via the commands below. Both times the error is the same, an NPE during the single test in the plugin (go figure). Anyone have any idea how to remote debug this? I found a few forum posts from Dennis back in 2010, but htey don't seem to apply ever since the pom changes.
>
> Attempt 2, same result:
>
> mkdir jbosstools
>
> cd jbosstools
>
> svn co http://svn.jboss.org/repos/jbosstools/trunk/build
>
> svn co http://svn.jboss.org/repos/jbosstools/trunk/tests
>
> cd build/parent
>
> mvn clean install
>
>
> cd ../
>
>
> mvn clean install -P local.site,tests -Dlocal.site=file:////home/rob/code/zzz_build_test/jbosstools/build/target-platform/REPO/
>
>
>
>
>
>
>
12 years, 5 months