Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] Test on sysml model explorer

Just yesterday I fixed a test utility that was still trying to "adapt" Model Explorer selections according to the EMF Facet 0.1 design. That cleared up several test failures.  Doubtless there are more test fixtures that need this kind of maintenance. :-)

There is also a whole suite that quickly fails in the setup of every test not succeeding in creating a project.  One small fix should clear another dozen failures there.

But, there are also tests that fail or error on Mac that pass in the build. I need to take some time to look at those ...

cW


On Mar 25, 2014, at 5:59, LETAVERNIER Camille <Camille.LETAVERNIER@xxxxxx> wrote:

Hi,

 

What is the cause of the failure? Is the test invalid? Is the feature not properly implemented? Not implemented at all? Does the test still make sense?

 

From what I remember, these tests used to work as expected until recently (When I run the tests locally, everything is executed, because I don’t use the Features).

 

Regards,

__________________________

Camille Letavernier - camille.letavernier@xxxxxx

CEA LIST - Laboratoire d'Ingénierie dirigée par les modèles pour les Systèmes Embarqués (LISE)

Papyrus : http://www.eclipse.org/papyrus

 

De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de MAGGI Benoit Intérimaire
Envoyé : mardi 25 mars 2014 10:07
À : Papyrus Project list
Objet : [PROVENANCE INTERNET] Re: [mdt-papyrus.dev] Test on sysml model explorer

 

Hi,

 

I added the plugins to the test feature .

We move from 129 failed on 8225 tests to 180 failed on 8517 tests.

 

Do we want to push this commit on eclipse/master?

 

We will have more failing tests, but if we keep these plugins outside the build, we may just have to move them in deprecated folder.

 

Regards,

Benoit Maggi

 

 

De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de MAGGI Benoit Intérimaire
Envoyé : lundi 24 mars 2014 17:48
À : Papyrus Project list
Objet : [PROVENANCE INTERNET] Re: [mdt-papyrus.dev] Test on sysml model explorer

 

Hi,

 

I found this log file redirect from stderr by Jenkins. I will try to add the two plugins to the features.

 

java.lang.ClassNotFoundException: org.eclipse.papyrus.sysml.modelexplorer.tests.suites.AllTests cannot be found by osgi.identity; osgi.identity="org.eclipse.papyrus.sysml.modelexplorer"; type="osgi.bundle"; version:Version="1.0.0.v201403191730"; singleton:="true"

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:416)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)

        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)

        at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)

        at org.eclipse.papyrus.tests.launcher.FragmentTestSuiteClass.getMainTestSuiteClass(FragmentTestSuiteClass.java:51)

        at org.eclipse.papyrus.tests.AllSysMLTests.getSuites(AllSysMLTests.java:61)

        at org.eclipse.papyrus.tests.AllSysMLTests.access$0(AllSysMLTests.java:57)

        at org.eclipse.papyrus.tests.AllSysMLTests$AllTestsRunner.<init>(AllSysMLTests.java:48)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:534)

        at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)

        at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)

        at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)

        at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)

        at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)

        at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)

        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)

        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)

        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)

        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)

        at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62)

        at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47)

        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)

        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3748)

        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3396)

        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)

        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)

        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)

        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)

        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)

        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)

        at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54)

        at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:47)

        at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48)

        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:622)

        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)

        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)

        at org.eclipse.equinox.launcher.Main.run(Main.java:1462)

        at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

org.eclipse.papyrus.tests.launcher.FragmentTestSuiteClass@7f9b3d70 does not give a correct test suite class

java.lang.ClassNotFoundException: org.eclipse.papyrus.sysml.diagram.parametric.tests.suites.AllTests cannot be found by osgi.identity; osgi.identity="org.eclipse.papyrus.sysml.diagram.parametric"; type="osgi.bundle"; version:Version="1.0.0.v201403191730"; singleton:="true"

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:416)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)

        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)

        at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)

        at org.eclipse.papyrus.tests.launcher.FragmentTestSuiteClass.getMainTestSuiteClass(FragmentTestSuiteClass.java:51)

        at org.eclipse.papyrus.tests.AllSysMLTests.getSuites(AllSysMLTests.java:61)

        at org.eclipse.papyrus.tests.AllSysMLTests.access$0(AllSysMLTests.java:57)

        at org.eclipse.papyrus.tests.AllSysMLTests$AllTestsRunner.<init>(AllSysMLTests.java:48)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:534)

        at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)

        at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)

        at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)

        at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)

        at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)

        at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)

        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)

        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)

        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)

        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)

        at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62)

        at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47)

        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)

        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3748)

        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3396)

        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)

        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)

        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)

        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)

        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)

        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)

        at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54)

        at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:47)

        at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48)

        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:622)

        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)

        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)

        at org.eclipse.equinox.launcher.Main.run(Main.java:1462)

        at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

org.eclipse.papyrus.tests.launcher.FragmentTestSuiteClass@64192a44 does not give a correct test suite class

 

Regards

Benoit Maggi

 

 

De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de Christian W. Damus
Envoyé : lundi 24 mars 2014 17:35
À : Papyrus Project list
Objet : Re: [mdt-papyrus.dev] Test on sysml model explorer

 

Hi, Benoit,

 

One thing to check is that the test bundle in question is included in any of the test features.  Otherwise, it will be neither built nor installed when the tests build runs.

 

HTH,

 

Christian

 

 

On Mar 24, 2014, at 12:26 PM, MAGGI Benoit Intérimaire <Benoit.MAGGI@xxxxxx> wrote:



Hi,

 

I found this fragment to execute test on Sysml model explorer :  

org.eclipse.papyrus.sysml.modelexplorer

 

The suite is defined in org.eclipse.papyrus.tests.AllSysMLTests :

 

       static {

             suiteClasses = new ArrayList<ITestSuiteClass>();

 

             /* syml */

             suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.sysml.tests.SysmlAllTests.class));

             suiteClasses.add(new FragmentTestSuiteClass(org.eclipse.papyrus.sysml.service.types.Activator.PLUGIN_ID, "org.eclipse.papyrus.sysml.service.types.tests.suites.AllTests"));

             suiteClasses.add(new FragmentTestSuiteClass("org.eclipse.papyrus.sysml.modelexplorer", "org.eclipse.papyrus.sysml.modelexplorer.tests.suites.AllTests"));

             suiteClasses.add(new FragmentTestSuiteClass(org.eclipse.papyrus.sysml.diagram.internalblock.Activator.PLUGIN_ID, "org.eclipse.papyrus.sysml.diagram.internalblock.tests.suites.AllTests"));

             suiteClasses.add(new FragmentTestSuiteClass("org.eclipse.papyrus.sysml.diagram.blockdefinition", "org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.suites.AllTests"));

             suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.sysml.diagram.requirement.test.AllTests.class));

             suiteClasses.add(new FragmentTestSuiteClass("org.eclipse.papyrus.sysml.diagram.parametric", "org.eclipse.papyrus.sysml.diagram.parametric.tests.suites.AllTests"));

       }

 

 

But I didn’t find any traces of execution or results for this plugin on Hudson.

It’s the same for oep.sysml.diagram.parametric

 

There is something strange on the manifest (not only in this one) :

Fragment-Host: org.eclipse.papyrus.sysml.modelexplorer;bundle-version=

"0.10.0"   

ð  Shouldn’t it be version 1.0.0 ?

 

Am I missing something? Maybe this plugin is deprecated?

 

Regards,

Benoit Maggi  

_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev

 

_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev

Back to the top