{"action":"reopened","issue":{"url":"https://api.github.com/repos/meysholdt/Xpect/issues/165","labels_url":"https://api.github.com/repos/meysholdt/Xpect/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/meysholdt/Xpect/issues/165/comments","events_url":"https://api.github.com/repos/meysholdt/Xpect/issues/165/events","html_url":"https://github.com/meysholdt/Xpect/issues/165","id":59610374,"number":165,"title":"No tests found","user":{"login":"toshovski","id":3773855,"avatar_url":"https://avatars.githubusercontent.com/u/3773855?v=3","gravatar_id":"","url":"https://api.github.com/users/toshovski","html_url":"https://github.com/toshovski","followers_url":"https://api.github.com/users/toshovski/followers","following_url":"https://api.github.com/users/toshovski/following{/other_user}","gists_url":"https://api.github.com/users/toshovski/gists{/gist_id}","starred_url":"https://api.github.com/users/toshovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshovski/subscriptions","organizations_url":"https://api.github.com/users/toshovski/orgs","repos_url":"https://api.github.com/users/toshovski/repos","events_url":"https://api.github.com/users/toshovski/events{/privacy}","received_events_url":"https://api.github.com/users/toshovski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-03T08:34:30Z","updated_at":"2015-03-03T09:03:32Z","closed_at":null,"body":"So I tried to run the Xpect tests with tycho. As basis I used the pom file from [org.eclipse.xtext.example.domainmodel.xpect.tests](https://github.com/meysholdt/Xpect/blob/master/org.eclipse.xtext.example.domainmodel.xpect.tests/pom.xml), but there are no tests found. Here is my pom.xml file:\r\n\r\n```\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd\">\r\n\t<modelVersion>4.0.0</modelVersion>\r\n    <parent>\r\n        <version>1.0.0-SNAPSHOT</version>\r\n        <groupId>org.company</groupId>\r\n        <artifactId>parent</artifactId>\r\n        <relativePath>../org.company.parent</relativePath>\r\n    </parent>\r\n\t<artifactId>org.company.dsl.xpect.tests</artifactId>\r\n\t<packaging>eclipse-test-plugin</packaging>\r\n\t\r\n\t\r\n\t<properties>\r\n\t\t<os-jvm-flags />\r\n\t\t<memory-settings>-Xmx1G</memory-settings>\r\n\t\t<tycho-version>0.21.0</tycho-version>\r\n\t</properties>\r\n\r\n\t<profiles>\r\n\t\t<profile>\r\n\t\t\t<id>macosx-jvm-flags</id>\r\n\t\t\t<activation>\r\n\t\t\t\t<os>\r\n\t\t\t\t\t<family>mac</family>\r\n\t\t\t\t</os>\r\n\t\t\t</activation>\r\n\t\t\t<properties>\r\n\t\t\t\t<os-jvm-flags>-XstartOnFirstThread</os-jvm-flags>\r\n\t\t\t</properties>\r\n\t\t</profile>\r\n\t</profiles>\r\n\r\n\t<build>\r\n\t\t<!-- make sure surefire finds our test classes even though they are in \r\n\t\t\tthe \"src\" folder -->\r\n\t\t<testOutputDirectory>target/classes</testOutputDirectory>\r\n\r\n\t\t<plugins>\r\n\r\n\t\t\t<!-- use tycho -->\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>org.eclipse.tycho</groupId>\r\n\t\t\t\t<artifactId>tycho-maven-plugin</artifactId>\r\n\t\t\t\t<version>${tycho-version}</version>\r\n\t\t\t\t<extensions>true</extensions>\r\n\t\t\t</plugin>\r\n\r\n\t\t\r\n\t\t\t<!-- Use maven surefire (not tycho surefire!) to run tests as plain JUnit \r\n\t\t\t\ttests (not Plug-In JUnit tests!) -->\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>org.apache.maven.plugins</groupId>\r\n\t\t\t\t<artifactId>maven-surefire-plugin</artifactId>\r\n\t\t\t\t<version>2.16</version>\r\n\t\t\t\t<configuration>\r\n\t\t\t\t\t<reportsDirectory>${project.build.directory}/surfire-reports-standalone</reportsDirectory>\r\n\t\t\t\t</configuration>\r\n\t\t\t\t<executions>\r\n\t\t\t\t\t<execution>\r\n\t\t\t\t\t\t<phase>test</phase>\r\n\t\t\t\t\t\t<goals>\r\n\t\t\t\t\t\t\t<goal>test</goal>\r\n\t\t\t\t\t\t</goals>\r\n\t\t\t\t\t</execution>\r\n\t\t\t\t</executions>\r\n\t\t\t\t<dependencies>\r\n\t\t\t\t\t<dependency>\r\n\t\t\t\t\t\t<groupId>org.apache.maven.surefire</groupId>\r\n\t\t\t\t\t\t<artifactId>surefire-junit47</artifactId>\r\n\t\t\t\t\t\t<version>2.16</version>\r\n\t\t\t\t\t</dependency>\r\n\t\t\t\t</dependencies>\r\n\t\t\t</plugin>\r\n\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>org.eclipse.tycho</groupId>\r\n\t\t\t\t<artifactId>tycho-surefire-plugin</artifactId>\r\n\t\t\t\t<version>${tycho-version}</version>\r\n\t\t\t\t<configuration>\r\n\t\t\t\t\t<reportsDirectory>${project.build.directory}/surfire-reports-plugin</reportsDirectory>\r\n\t\t\t\t\t<useUIHarness>true</useUIHarness>\r\n\t\t\t\t\t<useUIThread>false</useUIThread>\r\n\t\t\t\t\t<argLine>${memory-settings} ${os-jvm-flags}</argLine>\r\n\t\t\t\t\t<dependencies>\r\n\t\t\t\t\t\t<dependency>\r\n\t\t\t\t\t\t\t<type>eclipse-plugin</type>\r\n\t\t\t\t\t\t\t<artifactId>org.eclipse.xtext.logging</artifactId>\r\n\t\t\t\t\t\t</dependency>\r\n\t\t\t\t\t</dependencies>\r\n\t\t\t\t</configuration>\r\n\t\t\t</plugin>\r\n\t\t</plugins>\r\n\t</build>\r\n</project>\r\n\r\n```\r\n\r\nMy Xpect Test Runner:\r\n\r\n```\r\npackage  org.company.dsl.xpect.tests;\r\nimport org.junit.runner.RunWith;\r\nimport org.xpect.runner.XpectRunner;\r\nimport org.xpect.xtext.lib.tests.XtextTests;\r\n\r\n@RunWith(XpectRunner.class)\r\npublic class MyXpectTests extends XtextTests {\r\n\r\n}\r\n```\r\n\r\nAnd the simple test\r\n```\r\n/* XPECT_SETUP org.company.dsl.xpect.tests.MyXpectTests END_SETUP */\r\npolymorph sss {\r\n\t// XPECT errors --> \"Couldn't resolve reference to Structure 'Kunde'.\" at \"Kunde\"\r\n\tstructures {Kunde}\r\n\t// XPECT errors --> \"Couldn't resolve reference to Element 'abc'.\"\r\n\tfields {abc}\r\n}\r\n```\r\n\r\nWhen I call xpect in maven with -X, i get the following error message:\r\n```\r\n[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.21.0:test (default-test) on project de.abas.erp.satz.editor.dsl.xpect.tests: No tests found. -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.21.0:test (default-test) on project de.abas.erp.satz.editor.dsl.xpect.tests: No tests found.\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)\r\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)\r\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)\r\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:141)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\r\nCaused by: org.apache.maven.plugin.MojoFailureException: No tests found.\r\n\tat org.eclipse.tycho.surefire.TestMojo.runTest(TestMojo.java:908)\r\n\tat org.eclipse.tycho.surefire.TestMojo.execute(TestMojo.java:625)\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)\r\n\t... 19 more\r\n```\r\n"}}