thSoft / elysium

LilyPond IDE for Eclipse
http://elysium.thsoft.hu
14 stars 3 forks source link

enhance integration test #81

Closed nittka closed 9 years ago

nittka commented 9 years ago

Here are some first possible improvements for the integration tests.

For Xtext tests I quite like using Xtend. Simple models to test can be defined within the xtend file as rich string. This is more convenient than having all input as external file or having to create the multi-line string in Java. Also the test infrastructure might be updated with cool new features of the xtext.junit-framework (run with GuiceRunner, injecting parse and validation helpers etc., see e.g. https://github.com/AKSW/Xturtle/blob/develop/de.itemis.tooling.xturtle.tests/src/de/itemis/tooling/xturtle/parsing/ParserTest.xtend)

thSoft commented 9 years ago

I think these are all great improvements. I encourage you to use Xtend, I prefer it also. (It will incur some overhead on the build process, when there will be one, but I think it's worth it.)

thSoft commented 9 years ago

Thanks for the contribution!

nittka commented 9 years ago

I added the junit fragment to the workflow file. You have to rerun the language infrastructure generation. Then all compile errors should go away.