Hello devs,
I've pushed some javascript tests for the suggest widget to a branch
of xwiki-platform.
I've used screw-unit (
https://github.com/nathansobo/screw-unit) as
test framework.
The system allow to write tests such as
https://github.com/xwiki/xwiki-platform/blob/f684ca0671a354f1e7476cd788a2df…
; and to run them in a test suite (a simple HTML page that runs all
tests). It is integrated with xwiki-platform-web build so that
whenever a test fails, the build fails.
To be completely honest, I didn't do a lengthy market research to see
if there would be more appropriate alternatives. Screw unit got my
attention for the following reasons :
* Tests are elegant and simple
* You can nest feature "descriptions" (specifications) down several
levels, so it's easy to have a good organization
* It has a working maven integration
* The result page kind of look nice (yes, that count!)
I'd like to integrate them in master
WDYT ?
My +1
Jerome.