vazexqi / CodingSpectator

Watches and analyzes code edits in the Eclipse IDE non-invasively
http://codingspectator.cs.illinois.edu
Other
20 stars 14 forks source link

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

Open Wanderer777 opened 13 years ago

Wanderer777 commented 13 years ago

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.

vazexqi commented 13 years ago

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.