javaee-samples / javaee-samples.github.io

JavaEE Samples Website
MIT License
9 stars 5 forks source link

Tests from Spock specifications are not shown in the sample snippets #4

Open kubamarchwicki opened 10 years ago

kubamarchwicki commented 10 years ago

For example this one: http://javaee-samples.github.io/sample/jpa-extended-pc/index.html

The actual test scenario. https://github.com/javaee-samples/javaee7-samples/blob/master/jpa/extended-pc/src/test/java/org/javaee7/jpa/extended/pc/ExtendedPersistenceContextSpecification.groovy

Nothing urgent nor important. I'll try to fiddle with that a bit (on my ruby exploration path ;))

aslakknutsen commented 10 years ago

Yeah, we need to support groovy in there as well..

https://github.com/javaee-samples/javaee-samples.github.io/blob/develop/_ext/samples.rb#L162

Currently we're running JavaDoc and ignoring files not matching Test|TestCase. Not sure how well JavaDoc works on groovy files..

We probably want to move to a more direct source parse approach, using AntlrJavaParser for the Java bits, and something similar for the Groovy..

https://github.com/antlrjavaparser/antlr-java-parser

kubamarchwicki commented 10 years ago

In fact it doesn't work at all. *.groovy files are just ignored