Open dersvenhesse opened 10 years ago
The error message is pretty self-explanatory. Please add slf4j to your project. On Jul 19, 2014 6:39 PM, "dersvenhesse" notifications@github.com wrote:
I've got some unit tests running with XtextRunner in the test project of my dsl, they were running pretty fine until I installed Protected Regions.
Now there is an error java.lang.NoClassDefFoundError: Lorg/slf4j/Logger.
After removing Protected Regions, the tests are running fine again. I was able to recreate the issue on multiple machines and assume there is an dependency problem related to Protected Regions.
— Reply to this email directly or view it on GitHub https://github.com/danieldietrich/xtext-protected-regions/issues/47.
I don't think so. The tests wouldn't run without Protected Regions if slf4j was missing. As I said, I assume the Protected Regions are interfering somehow with the XtextRunner.
Try adding slf4j and see if you can run your tests. On Jul 19, 2014 7:42 PM, "dersvenhesse" notifications@github.com wrote:
I don't think so. The tests wouldn't run without Protected Regions if slf4j was missing.
As I said, I assume the Protected Regions are interfering somehow with the XtextRunner.
— Reply to this email directly or view it on GitHub https://github.com/danieldietrich/xtext-protected-regions/issues/47#issuecomment-49508524 .
I already tried, they don't run. But later I will try to create a step by step guidance to recreate the issue.
MyDsl
.MyDslRuntimeModule
in the default package.createEclipseResourceFileSystemAccess2
method for Protected Regions in MyDslRuntimeModule
, the test runs perfect again.package org.xtext.example.mydsl.tests
import org.eclipse.xtext.junit4.XtextRunner
import org.xtext.example.mydsl.MyDslInjectorProvider
import org.junit.runner.RunWith
import org.eclipse.xtext.junit4.InjectWith
import org.junit.Test
import static org.junit.Assert.*
@InjectWith(MyDslInjectorProvider)
@RunWith(XtextRunner)
class AnyTest {
@Test
def void anythingTest() {
assertTrue(true);
}
}
I've got some unit tests running with
XtextRunner
in the test project of my DSL, they were running pretty fine until I installed Protected Regions.Now there is an error
java.lang.NoClassDefFoundError: Lorg/slf4j/Logger
.After removing Protected Regions, the tests are running fine again. I was able to recreate the issue on multiple machines and assume there is an dependency problem related to Protected Regions.