Back in the editor, type the name of the template “openmrstest”, CTRL+SPACE for the context menu and then hit enter. Now you can edit the variables like “methodToBeTestedName” and it will edit all occurrences. And your good to go to write your test
Hope you find it useful!
If somebody knows a few more tricks (for ex. how to use functions in the template to process the string you type in ${shouldTestThis} in lower case with spaces to show up in @verifies value =, but in upper case without spaces in the method signature), please tell us!
no I havent thanks a lot, thats a great plugin!!!
is having the @verifies in the javadoc of the unit test the older way of writing the test? and is it now preferred to use the @verifies method annotation?
oh good to know, we did it the other way in the radiology module
is there a plan to integrate a library like http://eclemma.org/jacoco/trunk/doc/maven.html into the core and then use for ex. coveralls like the hl7 hapi project does for test coverage? I was thinking about it for the radiology module.
that is nice! it states that modules are not yet able to get those metrics, is that still true? would be nice for modules to get on the sonarqube train
I think we’re concerned about server load (and visual noise in CI), so I’m
not sure we want to open the door to modules that aren’t in an official
OpenMRS distro yet.
I would have liked to see all modules and OpenMRS related stuff in one place. If the server load and visual noise is a concern, I’ve previously used https://coveralls.io . I recommend using that for anyone wants to do code coverage for opensource repos. Instead of using travis and coveralls separately, you can also combine them through travis.yml like this - https://godjango.com/25-travis-ci-and-coveralls/