Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Test runtime with platform specific fragments

Hey Tonny,

Can you try to see if it works with the attached test project?  For me it doesn't work, the unit test fails because it can't find the files in the fragments (will only work with either win64 or linux64).  Let me know if you have mac.

When I run 'mvn clean verify' I get the attached error log.


On Fri, Jan 3, 2014 at 5:09 PM, Tonny Madsen <tonny.madsen@xxxxxxxxx> wrote:
Greg, It works for me directly. And extraRequirements are used in the reactor ordering. /Tonny

--
Tonny Madsen
My profiles: LinkedIn Twitter Blogger SlideShare



On Fri, Jan 3, 2014 at 7:45 AM, Tonny Madsen <tonny.madsen@xxxxxxxxx> wrote:

Greg, I haven't tried that, but I would have thought it should work directly - though you might need an extra dependency at the pom level as I don't think the extraRequirements are considered in the reactor ordering. I'll test it later today... /Tonny

--
Tonny Madsen
(sent from my mobile device)

On 3 Jan 2014 03:12, "Greg Amerson" <gregory.amerson@xxxxxxxxxxx> wrote:
Thanks Tonny for the detailed explanation.  However, I tried your solution but in my case the extra requirement that I'm trying to add in the dependency-resolution is a actually one of the bundles that my maven project builds.  So there is no fragment it can install into the test runtime, but rather, it needs to get the fragment from the current maven reactor that is being built.  Any way around this?


On Thu, Jan 2, 2014 at 9:03 PM, Tonny Madsen <tonny.madsen@xxxxxxxxx> wrote:
Greg,

There are an outstanding issue open on this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=394636) and a solution in the works as well (https://git.eclipse.org/r/#/c/17296/)... Though I have no ideas when this will be included in a Tycho release :-)

For now I use the following construct to force the fragment in my test. You can add similar profiles for other architecture - though the activation can be a little tricky. If you have many different tests where this is needed, then you are in for some boring work!

/Tonny

<profiles>
<profile>
<id>test-on-mac</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<dependency-resolution>
<optionalDependencies>ignore</optionalDependencies>
<extraRequirements combine.children="append">
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.jdt.launching.macosx</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>


--
Tonny Madsen
My profiles: LinkedIn Twitter Blogger SlideShare



On Thu, Jan 2, 2014 at 7:07 AM, Greg Amerson <gregory.amerson@xxxxxxxxxxx> wrote:
Hey everyone,

I'm using tycho to build and test some eclipse plugins. I have one bundle that has many platform specific fragments. I also have one test bundle that is using tycho-surefire-plugin to test the original bundle that has the platform specific fragments. However, tycho is not including the current platform's fragment into the test runtime.

All of the platform specific fragments look like the win64 fragment manifest listed below (there are actually 6 total fragments, one for each platform combination I need to support.)

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Liferay AUI Upgrade Tool Win64
Bundle-SymbolicName: com.liferay.laut.win32.win32.x86_64;singleton:=true
Bundle-Version: 1.0.2.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Fragment-Host: com.liferay.ide.alloy.core
Eclipse-BundleShape: dir
Eclipse-PlatformFilter: (& (osgi.ws=win32)(osgi.os=win32)(osgi.arch=x86_64))
Bundle-Vendor: Liferay, Inc.

Example win64 Fragment pom.xml's section

<build>
    <plugins>
        <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>target-platform-configuration</artifactId>
            <configuration>
                <resolver>p2</resolver>
                <environments>
                    <environment>
                        <os>win32</os>
                        <ws>win32</ws>
                        <arch>x86_64</arch>
                    </environment>
                </environments>
            </configuration>
        </plugin>
    </plugins>
</build>

When I try to execute my tycho build and it runs the surefire test plugin (no matter which OS I try), the correct platform fragment is not added into the runtime.

Any ideas?  

I've seen various posts on stackoverflow about similar questions but in those cases the fragments loaded into the test runtime were not platform-specific fragments with OS filters.

I've attached an example multi-module project the demonstrates the problem. 

After you run the test if you look at the bundles that are started by surefire it doesn't include the example.bundle.win32.win32.x86_64 fragment if you are on windows or the example.bundle.linux.gtk.x86_64 fragment if you are on linux.  

--
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.eclipse.tycho:example.bundle:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\pom.xml
[INFO] Adding repository http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository
[INFO] Fetching p2.index from http://download.eclipse.org/releases/kepler/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/releases/kepler/ (128B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/releases/kepler
[INFO] Fetching p2.index from http://download.eclipse.org/releases/kepler/201309270900/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/releases/kepler/201309270900/ (365B at 0B/s)
[INFO] 1 operation remaining.
[INFO] Fetching p2.index from http://download.eclipse.org/releases/kepler/201306260900/ (0B at 0B/s)
[INFO] 1 operation remaining.
[INFO] Fetching p2.index from http://download.eclipse.org/releases/kepler/201306260900/ (365B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/kepler/ (0B at 0B/s)
[INFO] 1 operation remaining.
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/kepler/ (116B at 0B/s)
[INFO] Resolving dependencies of MavenProject: org.eclipse.tycho:example.bundle:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\pom.xml
[INFO] Resolving class path of MavenProject: org.eclipse.tycho:example.bundle:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\pom.xml
[INFO] Computing target platform for MavenProject: org.eclipse.tycho:example.feature:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.feature\pom.xml
[INFO] Resolving dependencies of MavenProject: org.eclipse.tycho:example.feature:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.feature\pom.xml
[INFO] Resolving class path of MavenProject: org.eclipse.tycho:example.feature:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.feature\pom.xml
[INFO] Computing target platform for MavenProject: org.eclipse.tycho:example.fragment.linux.gtk.x86_64:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.linux.gtk.x86_64\pom.xml
[INFO] Resolving dependencies of MavenProject: org.eclipse.tycho:example.fragment.linux.gtk.x86_64:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.linux.gtk.x86_64\pom.xml
[INFO] Resolving class path of MavenProject: org.eclipse.tycho:example.fragment.linux.gtk.x86_64:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.linux.gtk.x86_64\pom.xml
[INFO] Computing target platform for MavenProject: org.eclipse.tycho:example.fragment.win32.win32.x86_64:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.win32.win32.x86_64\pom.xml
[INFO] Resolving dependencies of MavenProject: org.eclipse.tycho:example.fragment.win32.win32.x86_64:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.win32.win32.x86_64\pom.xml
[INFO] Resolving class path of MavenProject: org.eclipse.tycho:example.fragment.win32.win32.x86_64:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.win32.win32.x86_64\pom.xml
[INFO] Computing target platform for MavenProject: org.eclipse.tycho:example.bundle.tests:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\pom.xml
[INFO] Resolving dependencies of MavenProject: org.eclipse.tycho:example.bundle.tests:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\pom.xml
[INFO] Resolving class path of MavenProject: org.eclipse.tycho:example.bundle.tests:1.0.0-SNAPSHOT @ D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Tycho Test Runtime
[INFO] Example Bundle
[INFO] Example Fragment Linux64
[INFO] Example Fragment Windows 64bit
[INFO] Example Feature
[INFO] Example Bundle Tests
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Tycho Test Runtime 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tycho-test-runtime ---
[INFO] 
[INFO] --- tycho-source-plugin:0.19.0:plugin-source (plugin-source) @ tycho-test-runtime ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Bundle 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ example.bundle ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:build-qualifier (default-build-qualifier) @ example.bundle ---
[INFO] The project's OSGi version is 1.0.0.201401030920
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-id (default-validate-id) @ example.bundle ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-version (default-validate-version) @ example.bundle ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ example.bundle ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\src\main\resources
[INFO] 
[INFO] --- tycho-compiler-plugin:0.19.0:compile (default-compile) @ example.bundle ---
[INFO] Compiling 1 source file to D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ example.bundle ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\src\test\resources
[INFO] 
[INFO] --- tycho-source-plugin:0.19.0:plugin-source (plugin-source) @ example.bundle ---
[WARNING] bundle localization file D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\plugin.properties not found
[WARNING] Bundle-Vendor header not found in D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\META-INF\MANIFEST.MF, fallback to 'unknown' for source bundle
[INFO] Building jar: D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\target\example.bundle-1.0.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:package-plugin (default-package-plugin) @ example.bundle ---
[INFO] Building jar: D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle\target\example.bundle-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2-plugin:0.19.0:p2-metadata-default (default-p2-metadata-default) @ example.bundle ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Fragment Linux64 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ example.fragment.linux.gtk.x86_64 ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:build-qualifier (default-build-qualifier) @ example.fragment.linux.gtk.x86_64 ---
[INFO] The project's OSGi version is 1.0.0.201401030920
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-id (default-validate-id) @ example.fragment.linux.gtk.x86_64 ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-version (default-validate-version) @ example.fragment.linux.gtk.x86_64 ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ example.fragment.linux.gtk.x86_64 ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.linux.gtk.x86_64\src\main\resources
[INFO] 
[INFO] --- tycho-compiler-plugin:0.19.0:compile (default-compile) @ example.fragment.linux.gtk.x86_64 ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ example.fragment.linux.gtk.x86_64 ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.linux.gtk.x86_64\src\test\resources
[INFO] 
[INFO] --- tycho-source-plugin:0.19.0:plugin-source (plugin-source) @ example.fragment.linux.gtk.x86_64 ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:package-plugin (default-package-plugin) @ example.fragment.linux.gtk.x86_64 ---
[INFO] Building jar: D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.linux.gtk.x86_64\target\example.fragment.linux.gtk.x86_64-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2-plugin:0.19.0:p2-metadata-default (default-p2-metadata-default) @ example.fragment.linux.gtk.x86_64 ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Fragment Windows 64bit 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ example.fragment.win32.win32.x86_64 ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:build-qualifier (default-build-qualifier) @ example.fragment.win32.win32.x86_64 ---
[INFO] The project's OSGi version is 1.0.0.201401030920
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-id (default-validate-id) @ example.fragment.win32.win32.x86_64 ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-version (default-validate-version) @ example.fragment.win32.win32.x86_64 ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ example.fragment.win32.win32.x86_64 ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.win32.win32.x86_64\src\main\resources
[INFO] 
[INFO] --- tycho-compiler-plugin:0.19.0:compile (default-compile) @ example.fragment.win32.win32.x86_64 ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ example.fragment.win32.win32.x86_64 ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.win32.win32.x86_64\src\test\resources
[INFO] 
[INFO] --- tycho-source-plugin:0.19.0:plugin-source (plugin-source) @ example.fragment.win32.win32.x86_64 ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:package-plugin (default-package-plugin) @ example.fragment.win32.win32.x86_64 ---
[INFO] Building jar: D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.fragment.win32.win32.x86_64\target\example.fragment.win32.win32.x86_64-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2-plugin:0.19.0:p2-metadata-default (default-p2-metadata-default) @ example.fragment.win32.win32.x86_64 ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Feature 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ example.feature ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ example.feature ---
[INFO] The project's OSGi version is 1.0.0.201401030920
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-id (default-validate-id) @ example.feature ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-version (default-validate-version) @ example.feature ---
[INFO] 
[INFO] --- tycho-source-plugin:0.19.0:plugin-source (plugin-source) @ example.feature ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:package-feature (default-package-feature) @ example.feature ---
[INFO] Building jar: D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.feature\target\example.feature-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2-plugin:0.19.0:p2-metadata-default (default-p2-metadata-default) @ example.feature ---
[INFO] 
[INFO] --- tycho-p2-plugin:0.19.0:feature-p2-metadata (default-feature-p2-metadata) @ example.feature ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Bundle Tests 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ example.bundle.tests ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:build-qualifier (default-build-qualifier) @ example.bundle.tests ---
[INFO] The project's OSGi version is 1.0.0.201401030920
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-id (default-validate-id) @ example.bundle.tests ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-version (default-validate-version) @ example.bundle.tests ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ example.bundle.tests ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\src\main\resources
[INFO] 
[INFO] --- tycho-compiler-plugin:0.19.0:compile (default-compile) @ example.bundle.tests ---
[INFO] Compiling 1 source file to D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ example.bundle.tests ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\src\test\resources
[INFO] 
[INFO] --- tycho-source-plugin:0.19.0:plugin-source (plugin-source) @ example.bundle.tests ---
[WARNING] bundle localization file D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\plugin.properties not found
[WARNING] Bundle-Vendor header not found in D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\META-INF\MANIFEST.MF, fallback to 'unknown' for source bundle
[INFO] Building jar: D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\target\example.bundle.tests-1.0.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:package-plugin (default-package-plugin) @ example.bundle.tests ---
[INFO] Building jar: D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\target\example.bundle.tests-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2-plugin:0.19.0:p2-metadata-default (default-p2-metadata-default) @ example.bundle.tests ---
[INFO] 
[INFO] --- tycho-surefire-plugin:0.19.0:test (default-test) @ example.bundle.tests ---
[INFO] Expected eclipse log file: D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\target\work\data\.metadata\.log
[INFO] Command line:
	cmd.exe /X /C "d:\jdk7\jre\bin\java.exe -Dosgi.noShutdown=false -Dosgi.os=win32 -Dosgi.ws=win32 -Dosgi.arch=x86_64 -Dosgi.clean=true -jar D:\.m2\repository\p2\osgi\bundle\org.eclipse.equinox.launcher\1.3.0.v20130327-1440\org.eclipse.equinox.launcher-1.3.0.v20130327-1440.jar -data "D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\target\work\data" -install "D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\target\work" -configuration "D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\target\work\configuration" -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties "D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\target\surefire.properties""

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running example.bundle.tests.ExampleBundleTests
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.026 sec <<< FAILURE!

Results :

Tests in error: 
  testFragments(example.bundle.tests.ExampleBundleTests)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Tycho Test Runtime ................................ SUCCESS [0.060s]
[INFO] Example Bundle .................................... SUCCESS [1.294s]
[INFO] Example Fragment Linux64 .......................... SUCCESS [0.099s]
[INFO] Example Fragment Windows 64bit .................... SUCCESS [0.080s]
[INFO] Example Feature ................................... SUCCESS [0.052s]
[INFO] Example Bundle Tests .............................. FAILURE [4.437s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.359s
[INFO] Finished at: Fri Jan 03 17:20:23 CST 2014
[INFO] Final Memory: 78M/814M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.19.0:test (default-test) on project example.bundle.tests: There are test failures.
[ERROR] 
[ERROR] Please refer to D:\dev java\github\liferay\liferay-ide-sandbox\tycho-test-runtime\example.bundle.tests\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :example.bundle.tests

Attachment: tycho-test-runtime.zip
Description: Zip archive

-------------------------------------------------------------------------------
Test set: example.bundle.tests.ExampleBundleTests
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.025 sec <<< FAILURE!
testFragments(example.bundle.tests.ExampleBundleTests)  Time elapsed: 0.004 sec  <<< ERROR!
java.lang.NullPointerException
	at example.bundle.ExampleCore.getReadmeTxt(ExampleCore.java:66)
	at example.bundle.tests.ExampleBundleTests.testFragments(ExampleBundleTests.java:19)
	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:606)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	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:606)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:123)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:86)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:21)
	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:606)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
	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:606)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Back to the top