{"action":"created","issue":{"url":"https://api.github.com/repos/mrcalvin/qvto-cli/issues/1","labels_url":"https://api.github.com/repos/mrcalvin/qvto-cli/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mrcalvin/qvto-cli/issues/1/comments","events_url":"https://api.github.com/repos/mrcalvin/qvto-cli/issues/1/events","html_url":"https://github.com/mrcalvin/qvto-cli/issues/1","id":126510203,"number":1,"title":"Adding a testng configuration for unit and integration tests","user":{"login":"flefevre","id":5609620,"avatar_url":"https://avatars.githubusercontent.com/u/5609620?v=3","gravatar_id":"","url":"https://api.github.com/users/flefevre","html_url":"https://github.com/flefevre","followers_url":"https://api.github.com/users/flefevre/followers","following_url":"https://api.github.com/users/flefevre/following{/other_user}","gists_url":"https://api.github.com/users/flefevre/gists{/gist_id}","starred_url":"https://api.github.com/users/flefevre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flefevre/subscriptions","organizations_url":"https://api.github.com/users/flefevre/orgs","repos_url":"https://api.github.com/users/flefevre/repos","events_url":"https://api.github.com/users/flefevre/events{/privacy}","received_events_url":"https://api.github.com/users/flefevre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-13T20:49:14Z","updated_at":"2016-01-14T14:50:18Z","closed_at":null,"body":"Dear Calvin,\r\ngreat job here !\r\nthanks a lot for this usefull example.\r\n\r\nI am trying to add a testng test configuration for unit and integration tests to be sure that the project do not diverge.\r\nI am facing the problem for unit test\r\n\r\n<<\r\n[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ qvto-app ---\r\n\r\n-------------------------------------------------------\r\n T E S T S\r\n-------------------------------------------------------\r\nRunning TestSuite\r\nFast test\r\nFailed to execute file:/home/flefevre/gits/qvt-cloud-factory/qvto-app/src/test/resources/qvto4abcmodel/transforms/transformationABC.qvto: Compilation errors found in unit 'file:/home/flefevre/gits/qvt-cloud-factory/qvto-app/src/test/resources/qvto4abcmodel/transforms/transformationABC.qvto'\r\n Failed to resolve metamodel 'http://www.mmsource.fr' (at:1)\r\n Type of transformation parameter should be model type (at:4)\r\n Type of transformation parameter should be model type (at:4)\r\n<<<\r\n\r\nand exactly the same for the integration tests\r\n\r\n<<\r\n[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ qvto-app ---\r\n[INFO] Building jar: /home/flefevre/gits/qvt-cloud-factory/qvto-app/target/qvto-app-0.1-SNAPSHOT.jar\r\n[INFO] \r\n[INFO] --- maven-shade-plugin:2.3:shade (default) @ qvto-app ---\r\n[WARNING] Map in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer declares value type as: class java.util.jar.Attributes but saw: class java.lang.String at runtime\r\n[INFO] Including at.ac.wu.nm:qvt-bundle:jar:repackaged:4.4 in the shaded jar.\r\n[INFO] Including com.beust:jcommander:jar:1.47 in the shaded jar.\r\n[INFO] Including org.slf4j:slf4j-api:jar:1.6.1 in the shaded jar.\r\n[INFO] Including ch.qos.logback:logback-classic:jar:1.0.13 in the shaded jar.\r\n[INFO] Including ch.qos.logback:logback-core:jar:1.0.13 in the shaded jar.\r\n[INFO] Replacing original artifact with shaded artifact.\r\n[INFO] Replacing /home/flefevre/gits/qvt-cloud-factory/qvto-app/target/qvto-app-0.1-SNAPSHOT.jar with /home/flefevre/gits/qvt-cloud-factory/qvto-app/target/qvto-app-0.1-SNAPSHOT-shaded.jar\r\n[INFO] Dependency-reduced POM written at: /home/flefevre/gits/qvt-cloud-factory/qvto-app/dependency-reduced-pom.xml\r\n[INFO] Dependency-reduced POM written at: /home/flefevre/gits/qvt-cloud-factory/qvto-app/dependency-reduced-pom.xml\r\n[INFO] \r\n[INFO] --- maven-failsafe-plugin:2.19.1:integration-test (default) @ qvto-app ---\r\n\r\n-------------------------------------------------------\r\n T E S T S\r\n-------------------------------------------------------\r\nRunning TestSuite\r\nFast test\r\nSLF4J: Class path contains multiple SLF4J bindings.\r\nSLF4J: Found binding in [jar:file:/home/flefevre/gits/qvt-cloud-factory/qvto-app/target/qvto-app-0.1-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]\r\nSLF4J: Found binding in [jar:file:/home/flefevre/.m2/repository/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]\r\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\r\nFailed to execute file:/home/flefevre/gits/qvt-cloud-factory/qvto-app/src/test/resources/qvto4abcmodel/transforms/transformationABC.qvto: Compilation errors found in unit 'file:/home/flefevre/gits/qvt-cloud-factory/qvto-app/src/test/resources/qvto4abcmodel/transforms/transformationABC.qvto'\r\n Failed to resolve metamodel 'http://www.mmsource.fr' (at:1)\r\n Type of transformation parameter should be model type (at:4)\r\n Type of transformation parameter should be model type (at:4)\r\n\r\n<<\r\n\r\nI have added in the qvto pom the following elements\r\n\r\n<dependency>\r\n\t\t\t<groupId>org.testng</groupId>\r\n\t\t\t<artifactId>testng</artifactId>\r\n\t\t\t<version>6.9.8</version>\r\n\t\t\t<scope>test</scope>\r\n\t\t</dependency>\r\n\r\nand\r\n\r\n<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.19.1</version>\r\n\t\t\t\t<configuration>\r\n\t\t\t\t\t<suiteXmlFiles>\r\n\t\t\t\t\t\t<suiteXmlFile>src/test/resources/unitTests/testng.xml</suiteXmlFile>\r\n\t\t\t\t\t</suiteXmlFiles>\r\n\t\t\t\t</configuration>\r\n\t\t\t</plugin>\r\n\t\t\t<!-- integration test -->\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-failsafe-plugin</artifactId>\r\n\t\t\t\t<version>2.19.1</version>\r\n\t\t\t\t<configuration>\r\n\t\t\t\t\t<suiteXmlFiles>\r\n\t\t\t\t\t\t<suiteXmlFile>src/test/resources/integrationTests/testng.xml</suiteXmlFile>\r\n\t\t\t\t\t</suiteXmlFiles>\r\n\t\t\t\t\t<classesDirectory>target/qvto-app-0.1-SNAPSHOT.jar</classesDirectory>\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<goals>\r\n\t\t\t\t\t\t\t<goal>integration-test</goal>\r\n\t\t\t\t\t\t\t<goal>verify</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</plugin>\r\n\r\nIf I execute the jar file alone it is working... by no way to test it in maven...\r\njava -jar qvto-app-0.1-SNAPSHOT.jar -xform ../src/test/resources/qvto4abcmodel/transforms/transformationABC.qvto -src ../src/test/resources/qvto4abcmodel/modelSource/MMSource.ecore ../src/test/resources/qvto4abcmodel/modelSource/MSource.xmi -tgt ../src/test/resources/qvto4abcmodel/modelSource/MMSource.ecore ../src/test/resources/qvto4abcmodel/modelTarget/my.xmi\r\n\r\n\r\nDo you have any idea why?\r\n\r\nFrancois, from Europa\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mrcalvin/qvto-cli/issues/comments/171662599","html_url":"https://github.com/mrcalvin/qvto-cli/issues/1#issuecomment-171662599","issue_url":"https://api.github.com/repos/mrcalvin/qvto-cli/issues/1","id":171662599,"user":{"login":"mrcalvin","id":442057,"avatar_url":"https://avatars.githubusercontent.com/u/442057?v=3","gravatar_id":"","url":"https://api.github.com/users/mrcalvin","html_url":"https://github.com/mrcalvin","followers_url":"https://api.github.com/users/mrcalvin/followers","following_url":"https://api.github.com/users/mrcalvin/following{/other_user}","gists_url":"https://api.github.com/users/mrcalvin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrcalvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrcalvin/subscriptions","organizations_url":"https://api.github.com/users/mrcalvin/orgs","repos_url":"https://api.github.com/users/mrcalvin/repos","events_url":"https://api.github.com/users/mrcalvin/events{/privacy}","received_events_url":"https://api.github.com/users/mrcalvin/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T14:50:18Z","updated_at":"2016-01-14T14:50:18Z","body":"Salut,\r\n\r\nNice to learn that someone out there finds this useful. What is your usage scenario exactly?\r\n\r\nAs for the reported issue: Can you please provide a reproducible setup for me (testng.xml, annotated code)?\r\n\r\nResource resolution and registry (model files) is a weak spot in the Eclipse-verse, always. I am happy to help out, but I need a point to start.\r\n\r\nStefan (aka mrcalvin) from Vienna\r\n"}}