CodingSpectator icon indicating copy to clipboard operation
CodingSpectator copied to clipboard

Some tests in org.eclipse.jdt.ui.tests.refactoring fail

Open Wanderer777 opened this issue 13 years ago • 1 comments

Running tests in org.eclipse.jdt.ui.tests.refactoring I observed that there are errors and failures. In particular, all tests in org.eclipse.jdt.ui.tests.refactoring.infra.RefactoringPerformanceTestSetup throw IllegalArgumentException. Also, tests org.eclipse.jdt.ui.tests.refactoring.SurroundWithTestSetup, org.eclipse.jdt.ui.tests.refactoring.infra.AbstractRefactoringTestSetup, and org.eclipse.jdt.ui.tests.refactoring.extensions.ExtensionPointTestSetup fail.

I did not finish running all the tests, so there might be some other failing tests as well.

Wanderer777 avatar May 17 '11 01:05 Wanderer777

I just checked out a fresh instance of Eclipse without CodingSpectator/CodingTracker.

I installed all the prerequisites for running org.eclipse.jdt.ui.tests.refactoring. I observed the same problems reported above. Specifically org.eclipse.jdt.ui.tests.refactoring.SurroundWithTestSetup, org.eclipse.jdt.ui.tests.refactoring.infra.AbstractRefactoringTestSetup, and org.eclipse.jdt.ui.tests.refactoring.extensions.ExtensionPointTestSetup fail because

junit.framework.AssertionFailedError: Class org.eclipse.jdt.ui.tests.refactoring.SurroundWithTestSetup has no public constructor TestCase(String name) or TestCase()
    at junit.framework.Assert.fail(Assert.java:47)
        ...

This seems to be a problem with the setup and has nothing to do with CodingSpectator/CodingTracker.

Usually when we create a release for CodingSpectator we only run the tests in the AllRefactoringTests suite.

vazexqi avatar May 17 '11 22:05 vazexqi