Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] PartInitException: View descriptor not found

The test runtime is computed in a different way in Tycho than in Eclipse. The way Tycho does it, you’ll find out if you have implicit dependencies, as in your case. The solution is easy: make them explicit.




„The OSGi runtimes for tests no longer contains the full target platform but only the (transitive) dependencies of the test bundle. This may lead to test failures due to missing implicit dependencies. Recommendation: Make the dependencies explicit in the component feature and add it to the test runtime.”






From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of ramesh gunjal
Sent: Freitag, 2. März 2012 07:27
To: Tycho user list
Subject: [tycho-user] PartInitException: View descriptor not found




I am writing some tests for my RCP application and getting following exception while running JUnit Plug-in Test. It works fine from within Eclipse IDE.


> org.eclipse.ui.PartInitException: View descriptor not found: org.eclipse.ui.navigator.ProjectExplorer
 at org.eclipse.ui.internal.FolderLayout.addView(


In my test method I am creating some views. I think I am missing something either in manifest or lauch configuration. Please help me to solve this issue.


Here is my test manifest and pom


Manifest-Version: 1.0

Bundle-ManifestVersion: 2

Bundle-Name: Test


Bundle-Version: 1.0.0.qualifier

Bundle-Vendor: XXX


Bundle-RequiredExecutionEnvironment: JavaSE-1.6

Require-Bundle: org.junit;bundle-version="4.8.1",;bundle-version="1.0.0"


Where '' is my RCP application
























<argLine>-Xms40m -Xmx512m</argLine>










God bless you,

Back to the top