xtext-utils unit tests with Tycho? [message #832295] |
Fri, 30 March 2012 01:54 |
|
Hi!
I've got some XtextTest subclasses implementing unit tests on my DSL. It's awesome. But, unfortunately, I can not get them to run with Tycho builds or as a "JUnit Plug-in Test". This seems to be because the XtextTest.testFile(String) method assumes a file is given as a classpath and not a URI. Basically, it would be nice if we could provide a URI from our test plug-in fragment. Then I think it might work in Tycho:
testFile("platform:/plugin/com.my.plugin/resources/my.dmodel");
I was going to try checking out the xtext-utils source and possibly modify it, but it doesn't seem to be cloneable from the google code site (just a blank repository is cloned) - and it can not be browsed via google code either:
http://code.google.com/a/eclipselabs.org/p/xtext-utils/
Anyway, how is everyone else automating the execution of their xtext-utils unit tests? Thanks!
Joey
|
|
|
Re: xtext-utils unit tests with Tycho? [message #832309 is a reply to message #832295] |
Fri, 30 March 2012 02:23 |
|
On the topic of checking out xtext-utils. unittesting is a git submodule of the xtext-utils, so:
%>git clone https://code.google.com/a/eclipselabs.org/p/xtext-utils/
%>cd xtext-utils
%>git submodule init
%>git submodule update
Now I have the source code
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04231 seconds