Skip to content

Commit 5e5ce4a

Browse files
README information for spock tests
1 parent a69201b commit 5e5ce4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ With your help we can improve this set of samples, learn from each other and gro
4444

4545
There is just a bunch of things you should keep in mind before sending a pull request, so we can easily get all the new things incorporated into the master branch.
4646

47+
Standard tests are jUnit based - for example [this commit](servlet/servlet-filters/src/test/java/org/javaee7/servlet/filters/FilterServletTest.java). Test classes naming must comply with surefire naming standards `**/*Test.java`, `**/*Test*.java` or `**/*TestCase.java`.
48+
49+
However, if you fancy something new, hip and fashionable we also accept Spock specifications - [like here](/servlet/servlet-filters/src/test/groovy/org/javaee7/servlet/filters/FilterServletSpecification.groovy). The spec files are included in the maven test phase if and only if you follow Spock naming convention and give your `Specification` suffix the magic will happen.
50+
4751
### Some coding principles ###
4852

4953
* When creating new source file do not put (or copy) any license header, as we use top-level license (MIT) for each and every file in this repository.

0 commit comments

Comments
 (0)