How to run the unit tests from the master branch

36 views
Skip to first unread message

Lukas Roth

unread,
Dec 7, 2016, 7:43:32 AM12/7/16
to eclim-dev


Hey,

I want to develop some extra features for the eclim plugin. To do so I would like to run the existing unit tests, but I am not able to run the tests from the master branch. I checked the dev mailing list and the eclim development docs web page but I have not found any hints to my problem...

First I built the master branch:

ant -Declipse.home={myEclipse} clean deploy

Then I started the eclimd server:

./{myEclipse}/eclimd -f eclim/org.eclim.core/test/eclimrc.test

Then I started the tests:

ant -Declipse.home={myEclipse} test

==> I get an error


...
[junit] Running org.eclim.plugin.core.command.xml.validate.ValidateCommandTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.142 sec
[mkdir] Created dir: /eclim/build/test/vunit/results
[vunit] Running: eclim/autoload/eclim/common/buffersTest.vim

BUILD FAILED



I don't understand what went wrong... But I think it has something to do with a vunit test ==> Since I do not want to change anything corresponding to the vim stuff, I tried to deactivate the vunit tests by commenting out line 1096 in the build.gant file

runTests = { pluginName, nested ->
nested()
junit(pluginName)
//vunit(pluginName)
ant.fail(message: 'One or more unit tests failed.', if: 'junit.failed')
//ant.fail(message: 'One or more vunit tests failed.', if: 'vunit.failed')
}


but then some junit tests fail:

...
[junit] Tests run: 4, Failures: 1, Errors: 0, Time elapsed: 3.932 sec
[junit] Test org.eclim.plugin.jdt.command.refactoring.RenameCommandTest FAILED
[junit] Running org.eclim.plugin.jdt.command.search.SearchCommandTest
[junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 1.228 sec
[junit] Test org.eclim.plugin.jdt.command.search.SearchCommandTest FAILED
[junit] Running org.eclim.plugin.jdt.command.src.CheckstyleCommandTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.677 sec
[junit] Running org.eclim.plugin.jdt.command.src.ClassPrototypeCommandTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.212 sec
[junit] Running org.eclim.plugin.jdt.command.src.FormatCommandTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.838 sec
[junit] Running org.eclim.plugin.jdt.command.src.SrcFileExistsCommandTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.148 sec
[junit] Running org.eclim.plugin.jdt.command.src.SrcFindCommandTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.162 sec
[junit] Running org.eclim.plugin.jdt.command.src.SrcUpdateCommandTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.158 sec
[junit] Running org.eclim.plugin.jdt.command.webxml.ValidateCommandTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.161 sec

BUILD FAILED



==> It leads me to the conclusion that I probably set up something the wrong way? I think the tests in the main branch should run?
Do you know what went wrong?


Lukas


Eric Van Dewoestine

unread,
Dec 7, 2016, 6:08:21 PM12/7/16
to ecli...@googlegroups.com
The test could be failing for various reasons (race conditions, env
differences, etc). The fact that most tests pass indicates to me that
you have the setup correct, but without seeing the actual failure it's
hard for me to advise. The results will be in:

build/test/{junit,vunit}/results/


--
eric

Lukas Roth

unread,
Dec 8, 2016, 4:55:37 AM12/8/16
to eclim-dev
The test could be failing for various reasons (race conditions, env
differences, etc). The fact that most tests pass indicates to me that
you have the setup correct, but without seeing the actual failure it's
hard for me to advise. The results will be in:

  build/test/{junit,vunit}/results/


--
eric

Hey Eric


Thanks for your fast answer!


Case 1 (original master):


I do not see any failure report..., the “build/test/vunit/results” folder is empty and the “build/test/junit” folder contains only “green” tests. The only information I have is the command line output:


Buildfile: /eclim/build.xml


test:


gant:

[echo] ${eclipse}: {eclipse}

[echo] # Skipping org.eclim.pdt, missing org.eclipse.php

[echo] # Skipping org.eclim.adt, missing com.android.ide.eclipse.adt.feature

[echo] # Skipping org.eclim.dltkruby, missing org.eclipse.dltk.ruby

[echo] # Skipping org.eclim.cdt, missing org.eclipse.cdt

[echo] # Skipping org.eclim.sdt, missing org.scala-ide.sdt.feature

[echo] # Skipping org.eclim.pydev, missing org.python.pydev.feature

[echo] # Skipping org.eclim.dltk, missing org.eclipse.dltk.core

[echo] Plugins:

[echo] org.eclim.groovy

[echo] org.eclim.jdt

[echo] org.eclim.wst

test:

init:

[echo] eclim.version: 2.6.0.3-g6b0ce82

[echo] eclim.release: 2.6.0

[echo] eclim.release.indigo: none

org.eclim.jdt.classpath:

------ org.eclim.jdt.classpath

org.eclim.groovy.classpath:

------ org.eclim.groovy.classpath

------ init

org.eclim.core.test:

test.init:

deploy:

deploy.eclipse:

build:

build.eclipse:

[echo]

[echo] building plugin: org.eclim

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82/eclim.jar

[copy] Copying 45 files to /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82

org.eclim.build.eclipse:

[copy] Copying 1 file to /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82/bin

[jar] Updating jar: /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82/lib/nailgun-0.7.1.jar

------ org.eclim.build.eclipse

[echo]

[echo] building plugin: org.eclim.core

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.core_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.core_2.6.0.3-g6b0ce82/eclim.core.jar

[copy] Copying 7 files to /eclim/build/temp/eclipse/plugins/org.eclim.core_2.6.0.3-g6b0ce82

[echo]

[echo] building plugin: org.eclim.vimplugin

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.vimplugin_2.6.0.3-g6b0ce82

[jar] Building MANIFEST-only jar: /eclim/build/temp/eclipse/plugins/org.eclim.vimplugin_2.6.0.3-g6b0ce82/eclim.vimplugin.jar

[copy] Copying 6 files to /eclim/build/temp/eclipse/plugins/org.eclim.vimplugin_2.6.0.3-g6b0ce82

org.eclim.vimplugin.build.eclipse:

[jar] Updating jar: /eclim/build/temp/eclipse/plugins/org.eclim.vimplugin_2.6.0.3-g6b0ce82/eclim.vimplugin.jar

------ org.eclim.vimplugin.build.eclipse

[echo]

[echo] building plugin: org.eclim.jdt

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.jdt_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.jdt_2.6.0.3-g6b0ce82/eclim.jdt.jar

[copy] Copying 14 files to /eclim/build/temp/eclipse/plugins/org.eclim.jdt_2.6.0.3-g6b0ce82

org.eclim.jdt.build.eclipse:

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.jdt_2.6.0.3-g6b0ce82/eclim-testng.jar

------ org.eclim.jdt.build.eclipse

[echo]

[echo] building plugin: org.eclim.groovy

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.groovy_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.groovy_2.6.0.3-g6b0ce82/eclim.groovy.jar

[copy] Copying 3 files to /eclim/build/temp/eclipse/plugins/org.eclim.groovy_2.6.0.3-g6b0ce82

[echo]

[echo] building plugin: org.eclim.wst

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.wst_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.wst_2.6.0.3-g6b0ce82/eclim.wst.jar

[copy] Copying 8 files to /eclim/build/temp/eclipse/plugins/org.eclim.wst_2.6.0.3-g6b0ce82

------ build.eclipse

build.vim:

[delete] Deleting directory /eclim/build/temp/vim

[mkdir] Created dir: /eclim/build/temp/vim

[copy] Copying 51 files to /eclim/build/temp/vim/org.eclim.core

[copy] Copying 2 files to /eclim/build/temp/vim/org.eclim.vimplugin

[copy] Copying 70 files to /eclim/build/temp/vim/org.eclim.jdt

[copy] Copying 3 files to /eclim/build/temp/vim/org.eclim.groovy

[copy] Copying 23 files to /eclim/build/temp/vim/org.eclim.wst

------ build.vim

------ build

[copy] Copying 91 files to {eclipse}plugins

------ deploy.eclipse

deploy.vim:

[copy] Copying 51 files to /.vim

[copy] Copying 2 files to /.vim

[copy] Copying 70 files to /.vim

[copy] Copying 3 files to /.vim

[copy] Copying 23 files to /.vim

------ deploy.vim

------ deploy

------ test.init

[echo] Creating test project: eclim_unit_test...

[copy] Copying 24 files to /workspace.unittest

[copy] Copied 16 empty directories to 1 empty directory under //workspace.unittest

[delete] Deleting directory /workspace.unittest/eclim_unit_test_linked

[copy] Copying 1 file to /workspace.unittest

[mkdir] Created dir: /eclim/build/test/junit/classes/org.eclim.core

[javac] Compiling 2 source files to /eclim/build/test/junit/classes/org.eclim.core

[javac] Compiling 7 source files to /eclim/build/test/junit/classes/org.eclim.core

[mkdir] Created dir: /eclim/build/test/junit/results

[junit] Running org.eclim.plugin.core.command.admin.PingCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.128 sec

[junit] Running org.eclim.plugin.core.command.admin.SettingsCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.146 sec

[junit] Running org.eclim.plugin.core.command.history.HistoryCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.301 sec

[junit] Running org.eclim.plugin.core.command.problems.ProblemsCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.392 sec

[junit] Running org.eclim.plugin.core.command.project.ProjectCommandsTest

[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 2.267 sec

[junit] Running org.eclim.plugin.core.command.xml.format.FormatCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.175 sec

[junit] Running org.eclim.plugin.core.command.xml.validate.ValidateCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.143 sec

[mkdir] Created dir: /eclim/build/test/vunit/results

[vunit] Running: eclim/autoload/eclim/common/buffersTest.vim


BUILD FAILED

/eclim/build.xml:58: The following error occurred while executing this line:

/eclim/build.xml:165: : Failed to run command:


Total time: 21 seconds



==> I do not know what went wrong



Case 2 (master without vunit tests (commented out line 1096 in the build.gant file))


With this setup I just have a lot of unit tests that fail...


Buildfile: /eclim/build.xml


test:


gant:

[echo] ${eclipse}: {eclipse}

[echo] # Skipping org.eclim.pdt, missing org.eclipse.php

[echo] # Skipping org.eclim.adt, missing com.android.ide.eclipse.adt.feature

[echo] # Skipping org.eclim.dltkruby, missing org.eclipse.dltk.ruby

[echo] # Skipping org.eclim.cdt, missing org.eclipse.cdt

[echo] # Skipping org.eclim.sdt, missing org.scala-ide.sdt.feature

[echo] # Skipping org.eclim.pydev, missing org.python.pydev.feature

[echo] # Skipping org.eclim.dltk, missing org.eclipse.dltk.core

[echo] Plugins:

[echo] org.eclim.groovy

[echo] org.eclim.jdt

[echo] org.eclim.wst

test:

init:

[echo] eclim.version: 2.6.0.3-g6b0ce82

[echo] eclim.release: 2.6.0

[echo] eclim.release.indigo: none

org.eclim.jdt.classpath:

------ org.eclim.jdt.classpath

org.eclim.groovy.classpath:

------ org.eclim.groovy.classpath

------ init

org.eclim.core.test:

test.init:

deploy:

deploy.eclipse:

build:

build.eclipse:

[echo]

[echo] building plugin: org.eclim

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82/eclim.jar

[copy] Copying 45 files to /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82

org.eclim.build.eclipse:

[copy] Copying 1 file to /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82/bin

[jar] Updating jar: /eclim/build/temp/eclipse/plugins/org.eclim_2.6.0.3-g6b0ce82/lib/nailgun-0.7.1.jar

------ org.eclim.build.eclipse

[echo]

[echo] building plugin: org.eclim.core

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.core_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.core_2.6.0.3-g6b0ce82/eclim.core.jar

[copy] Copying 7 files to /eclim/build/temp/eclipse/plugins/org.eclim.core_2.6.0.3-g6b0ce82

[echo]

[echo] building plugin: org.eclim.vimplugin

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.vimplugin_2.6.0.3-g6b0ce82

[jar] Building MANIFEST-only jar: /eclim/build/temp/eclipse/plugins/org.eclim.vimplugin_2.6.0.3-g6b0ce82/eclim.vimplugin.jar

[copy] Copying 6 files to /eclim/build/temp/eclipse/plugins/org.eclim.vimplugin_2.6.0.3-g6b0ce82

org.eclim.vimplugin.build.eclipse:

[jar] Updating jar: /eclim/build/temp/eclipse/plugins/org.eclim.vimplugin_2.6.0.3-g6b0ce82/eclim.vimplugin.jar

------ org.eclim.vimplugin.build.eclipse

[echo]

[echo] building plugin: org.eclim.jdt

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.jdt_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.jdt_2.6.0.3-g6b0ce82/eclim.jdt.jar

[copy] Copying 14 files to /eclim/build/temp/eclipse/plugins/org.eclim.jdt_2.6.0.3-g6b0ce82

org.eclim.jdt.build.eclipse:

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.jdt_2.6.0.3-g6b0ce82/eclim-testng.jar

------ org.eclim.jdt.build.eclipse

[echo]

[echo] building plugin: org.eclim.groovy

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.groovy_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.groovy_2.6.0.3-g6b0ce82/eclim.groovy.jar

[copy] Copying 3 files to /eclim/build/temp/eclipse/plugins/org.eclim.groovy_2.6.0.3-g6b0ce82

[echo]

[echo] building plugin: org.eclim.wst

[mkdir] Created dir: /eclim/build/temp/eclipse/plugins/org.eclim.wst_2.6.0.3-g6b0ce82

[jar] Building jar: /eclim/build/temp/eclipse/plugins/org.eclim.wst_2.6.0.3-g6b0ce82/eclim.wst.jar

[copy] Copying 8 files to /eclim/build/temp/eclipse/plugins/org.eclim.wst_2.6.0.3-g6b0ce82

------ build.eclipse

build.vim:

[delete] Deleting directory /eclim/build/temp/vim

[mkdir] Created dir: /eclim/build/temp/vim

[copy] Copying 51 files to /eclim/build/temp/vim/org.eclim.core

[copy] Copying 2 files to /eclim/build/temp/vim/org.eclim.vimplugin

[copy] Copying 70 files to /eclim/build/temp/vim/org.eclim.jdt

[copy] Copying 3 files to /eclim/build/temp/vim/org.eclim.groovy

[copy] Copying 23 files to /eclim/build/temp/vim/org.eclim.wst

------ build.vim

------ build

[copy] Copying 91 files to {eclipse}plugins

------ deploy.eclipse

deploy.vim:

[copy] Copying 51 files to /.vim

[copy] Copying 2 files to /.vim

[copy] Copying 70 files to /.vim

[copy] Copying 3 files to /.vim

[copy] Copying 23 files to /.vim

------ deploy.vim

------ deploy

------ test.init

[echo] Creating test project: eclim_unit_test...

[delete] Deleting directory /workspace.unittest/eclim_unit_test

[copy] Copying 24 files to /workspace.unittest

[copy] Copied 16 empty directories to 1 empty directory under /workspace.unittest

[delete] Deleting directory /workspace.unittest/eclim_unit_test_linked

[copy] Copying 1 file to /workspace.unittest

[junit] Running org.eclim.plugin.core.command.admin.PingCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.123 sec

[junit] Running org.eclim.plugin.core.command.admin.SettingsCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.184 sec

[junit] Running org.eclim.plugin.core.command.history.HistoryCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.231 sec

[junit] Running org.eclim.plugin.core.command.problems.ProblemsCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.138 sec

[junit] Running org.eclim.plugin.core.command.project.ProjectCommandsTest

[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 3.322 sec

[junit] Running org.eclim.plugin.core.command.xml.format.FormatCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.235 sec

[junit] Running org.eclim.plugin.core.command.xml.validate.ValidateCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.178 sec

------ org.eclim.core.test

org.eclim.jdt.test:

[echo] Creating test project: eclim_unit_test_java...

[copy] Copying 86 files to /workspace.unittest

[delete] Deleting directory /workspace.unittest/eclim_unit_test_java_linked

[copy] Copying 2 files to /workspace.unittest

[mkdir] Created dir: /workspace.unittest/eclim_unit_test_java/lib

[copy] Copying 1 file to /workspace.unittest/eclim_unit_test_java/lib

[mkdir] Created dir: /eclim/build/test/junit/classes/org.eclim.jdt

[javac] Compiling 2 source files to /eclim/build/test/junit/classes/org.eclim.jdt

[javac] Compiling 39 source files to /eclim/build/test/junit/classes/org.eclim.jdt

[junit] Running org.eclim.plugin.ant.command.complete.CodeCompleteCommandTest

[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.053 sec

[junit] Running org.eclim.plugin.ant.command.validate.ValidateCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.21 sec

[junit] Running org.eclim.plugin.jdt.command.classpath.ClasspathVariableCommandsTest

[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 2.65 sec

[junit] Running org.eclim.plugin.jdt.command.complete.CodeCompleteCommandTest

[junit] Tests run: 4, Failures: 1, Errors: 0, Time elapsed: 1.274 sec

[junit] Test org.eclim.plugin.jdt.command.complete.CodeCompleteCommandTest FAILED

[junit] Running org.eclim.plugin.jdt.command.correct.CorrectCommandTest

[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.714 sec

[junit] Running org.eclim.plugin.jdt.command.doc.CommentCommandTest

[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.646 sec

[junit] Running org.eclim.plugin.jdt.command.doc.DocSearchCommandTest

[junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 0.33 sec

[junit] Test org.eclim.plugin.jdt.command.doc.DocSearchCommandTest FAILED

[junit] Running org.eclim.plugin.jdt.command.doc.GetElementDocCommandTest

[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.45 sec

[junit] Test org.eclim.plugin.jdt.command.doc.GetElementDocCommandTest FAILED

[junit] Running org.eclim.plugin.jdt.command.hierarchy.CallHierarchyCommandTest

[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.495 sec

[junit] Running org.eclim.plugin.jdt.command.hierarchy.HierarchyCommandTest

[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.197 sec

[junit] Running org.eclim.plugin.jdt.command.impl.BeanPropertiesCommandTest

[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 1.474 sec

[junit] Running org.eclim.plugin.jdt.command.impl.ConstructorCommandTest

[junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 2.115 sec

[junit] Running org.eclim.plugin.jdt.command.impl.DelegateCommandTest

[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.158 sec

[junit] Test org.eclim.plugin.jdt.command.impl.DelegateCommandTest FAILED

[junit] Running org.eclim.plugin.jdt.command.impl.ImplCommandTest

[junit] Tests run: 4, Failures: 1, Errors: 0, Time elapsed: 0.93 sec

[junit] Test org.eclim.plugin.jdt.command.impl.ImplCommandTest FAILED

[junit] Running org.eclim.plugin.jdt.command.include.ImportCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.461 sec

[junit] Running org.eclim.plugin.jdt.command.include.ImportOrganizeCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.368 sec

[junit] Running org.eclim.plugin.jdt.command.junit.JUnitCommandTest

[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.156 sec

[junit] Running org.eclim.plugin.jdt.command.junit.JUnitFindTestCommandTest

[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.384 sec

[junit] Running org.eclim.plugin.jdt.command.junit.JUnitImplCommandTest

[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.365 sec

[junit] Running org.eclim.plugin.jdt.command.junit.JUnitTestsCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.224 sec

[junit] Running org.eclim.plugin.jdt.command.log4j.ValidateCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.15 sec

[junit] Running org.eclim.plugin.jdt.command.refactoring.MoveCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.395 sec

[junit] Running org.eclim.plugin.jdt.command.refactoring.RenameCommandTest

[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 4.332 sec

[junit] Running org.eclim.plugin.jdt.command.search.SearchCommandTest

[junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 0.948 sec

[junit] Test org.eclim.plugin.jdt.command.search.SearchCommandTest FAILED

[junit] Running org.eclim.plugin.jdt.command.src.CheckstyleCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.501 sec

[junit] Running org.eclim.plugin.jdt.command.src.ClassPrototypeCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.151 sec

[junit] Running org.eclim.plugin.jdt.command.src.FormatCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.64 sec

[junit] Running org.eclim.plugin.jdt.command.src.SrcFileExistsCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.155 sec

[junit] Running org.eclim.plugin.jdt.command.src.SrcFindCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.159 sec

[junit] Running org.eclim.plugin.jdt.command.src.SrcUpdateCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.156 sec

[junit] Running org.eclim.plugin.jdt.command.webxml.ValidateCommandTest

[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.154 sec


BUILD FAILED

/eclim/build.xml:58: The following error occurred while executing this line:

/eclim/build.xml:165: : One or more tests failed.


Total time: 1 minute 16 seconds




-----------------------------


org.eclim.plugin.jdt.command.search.SearchCommandTest

org.eclim.plugin.jdt.command.search.SearchCommandTest

searchCamelCase(org.eclim.plugin.jdt.command.search.SearchCommandTest)

junit.framework.AssertionFailedError: Wrong number of results. expected:<2> but was:<0>

at org.eclim.plugin.jdt.command.search.SearchCommandTest.searchCamelCase(SearchCommandTest.java:56)


My result looks like:

[]

==> they are empty


-----------------------------


org.eclim.plugin.jdt.command.impl.DelegateCommandTest

org.eclim.plugin.jdt.command.impl.DelegateCommandTest

execute(org.eclim.plugin.jdt.command.impl.DelegateCommandTest)

junit.framework.AssertionFailedError: expected:<1> but was:<3>

at org.eclim.plugin.jdt.command.impl.DelegateCommandTest.execute(DelegateCommandTest.java:61)


My types look like


[
  {
    "signature": "interface List<Double>",
    "methods": [
      "public abstract boolean add(Double)",
      "public abstract void add(int,Double)",
      "public abstract boolean addAll(java.util.Collection<? extends Double>)",
      "public abstract boolean addAll(int,java.util.Collection<? extends Double>)",
      "public abstract void clear()",
      "public abstract boolean contains(Object)",
      "public abstract boolean containsAll(java.util.Collection<?>)",
      "public abstract boolean equals(Object)",
      "public abstract Double get(int)",
      "public abstract int hashCode()",
      "public abstract int indexOf(Object)",
      "public abstract boolean isEmpty()",
      "public abstract Iterator<Double> iterator()",
      "public abstract int lastIndexOf(Object)",
      "public abstract ListIterator<Double> listIterator()",
      "public abstract ListIterator<Double> listIterator(int)",
      "public abstract boolean remove(Object)",
      "public abstract Double remove(int)",
      "public abstract boolean removeAll(java.util.Collection<?>)",
      "public default void replaceAll(java.util.function.UnaryOperator<Double>)",
      "public abstract boolean retainAll(java.util.Collection<?>)",
      "public abstract Double set(int,Double)",
      "public abstract int size()",
      "public default void sort(java.util.Comparator<? super Double>)",
      "public default Spliterator<Double> spliterator()",
      "public abstract List<Double> subList(int,int)",
      "public abstract Object[] toArray()",
      "public abstract T[] toArray(T[])"
    ],
    "packageName": "java.util"
  },
  {
    "signature": "interface Collection<Double>",
    "methods": [
      "public default Stream<Double> parallelStream()",
      "public default boolean removeIf(java.util.function.Predicate<? super Double>)",
      "public default Stream<Double> stream()"
    ],
    "packageName": "java.util"
  },
  {
    "signature": "interface Iterable<Double>",
    "methods": [
      "public default void forEach(java.util.function.Consumer<? super Double>)"
    ],
    "packageName": "java.lang"
  }
]

==> two elements to much...


-----------------------------



org.eclim.plugin.jdt.command.impl.ImplCommandTest

org.eclim.plugin.jdt.command.impl.ImplCommandTest

executeSub(org.eclim.plugin.jdt.command.impl.ImplCommandTest)

junit.framework.AssertionFailedError: expected:<[org.eclim.test.imp]l> but was:<[java.uti]l>

at org.eclim.plugin.jdt.command.impl.ImplCommandTest.executeSub(ImplCommandTest.java:123)

executeNested(org.eclim.plugin.jdt.command.impl.ImplCommandTest)

junit.framework.AssertionFailedError: Method not found or invalid.

at org.eclim.plugin.jdt.command.impl.ImplCommandTest.executeNested(ImplCommandTest.java:205)




my result:


{
  "superTypes": [
    {
      "signature": "class HashMap<Integer,String>",
      "methods": [
        "public void clear()",
        "public Object clone()",
        "public String compute(Integer,java.util.function.BiFunction<? super Integer,? super String,? extends String>)",
        "public String computeIfAbsent(Integer,java.util.function.Function<? super Integer,? extends String>)",
        "public String computeIfPresent(Integer,java.util.function.BiFunction<? super Integer,? super String,? extends String>)",
        "public boolean containsKey(Object)",
        "public boolean containsValue(Object)",
        "public Set<Entry<Integer,String>> entrySet()",
        "public void forEach(java.util.function.BiConsumer<? super Integer,? super String>)",
        "public String get(Object)",
        "public String getOrDefault(Object,String)",
        "public boolean isEmpty()",
        "public Set<Integer> keySet()",
        "public String merge(Integer,String,java.util.function.BiFunction<? super String,? super String,? extends String>)",
        "public String put(Integer,String)",
        "public void putAll(java.util.Map<? extends Integer,? extends String>)",
        "public String putIfAbsent(Integer,String)",
        "public String remove(Object)",
        "public boolean remove(Object,Object)",
        "public String replace(Integer,String)",
        "public boolean replace(Integer,String,String)",
        "public void replaceAll(java.util.function.BiFunction<? super Integer,? super String,? extends String>)",
        "public int size()",
        "public Collection<String> values()"
      ],
      "packageName": "java.util"
    },
    {
      "signature": "class AbstractMap<Integer,String>",
      "methods": [
        "public boolean equals(Object)",
        "public int hashCode()",
        "public String toString()"
      ],
      "packageName": "java.util"
    },
    {
      "signature": "class Object",
      "methods": [
        "protected void finalize()"
      ],
      "packageName": "java.lang"
    },
    {
      "signature": "interface Comparator<String>",
      "methods": [
        "public abstract int compare(String,String)",
        "public default Comparator<String> reversed()",
        "public default Comparator<String> thenComparing(java.util.Comparator<? super String>)",
        "public default Comparator<String> thenComparing(java.util.function.Function<? super String,? extends U>)",
        "public default Comparator<String> thenComparing(java.util.function.Function<? super String,? extends U>,java.util.Comparator<? super U>)",
        "public default Comparator<String> thenComparingDouble(java.util.function.ToDoubleFunction<? super String>)",
        "public default Comparator<String> thenComparingInt(java.util.function.ToIntFunction<? super String>)",
        "public default Comparator<String> thenComparingLong(java.util.function.ToLongFunction<? super String>)"
      ],
      "packageName": "java.util"
    }
  ],
  "type": "org.eclim.test.impl.TestSubImpl"
}




-------------------



org.eclim.plugin.jdt.command.impl.ImplCommandTest

org.eclim.plugin.jdt.command.impl.ImplCommandTest

executeSub(org.eclim.plugin.jdt.command.impl.ImplCommandTest)

junit.framework.AssertionFailedError: expected:<[org.eclim.test.imp]l> but was:<[java.uti]l>

at org.eclim.plugin.jdt.command.impl.ImplCommandTest.executeSub(ImplCommandTest.java:123)

executeNested(org.eclim.plugin.jdt.command.impl.ImplCommandTest)

junit.framework.AssertionFailedError: Method not found or invalid.

at org.eclim.plugin.jdt.command.impl.ImplCommandTest.executeNested(ImplCommandTest.java:205)


my contents:


"package org.eclim.test.impl;\n\nimport java.util.Map;\n\npublic class TestNestedImpl\n implements Map.Entry\n{\n\n\t@Override\n\tpublic Object setValue(Object value) {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}\n\n}\n"


-------------------


=> the reason might be that i have another environment? - which eclipse do you use (with which plugin)?


--

Lukas


 
Reply all
Reply to author
Forward
0 new messages