I updated the wiki: https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
Merci! Jo 2015-06-22 11:53 GMT+02:00 Vincent Privat <[email protected]>: > Hi, > Good initiative. Tests are always welcome. > To add new unit tests, look at those existing plugins: > - alignways > - elevation > - graphview > - opendata > - turnrestrictions > - wikipedia > > and copy the same arborescence. Please take care of SVN properties > (externals and ignore). > > Then add your plugin to the list of tests being run in the common build > file: > > https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/build.xml#L223 > > It will then be run in the Jenkins build, see: > > https://josm.openstreetmap.de/jenkins/job/JOSM-Plugins/lastCompletedBuild/testReport/ > > Updating the wiki is also welcome :) > > > 2015-06-22 9:13 GMT+02:00 Jo <[email protected]>: > >> Hi, >> >> For some peace of mind and to avoid regression, while boldly adding >> functionality, I'd like to encourage the student I'm mentoring to write >> tests for the Mapillary plugin. >> >> I found this folder, which contains tests: >> >> https://josm.openstreetmap.de/browser/josm/trunk/test >> >> Do tests which test a plugin go in a dedicated folder as part of the >> plugin? I guess that would make most sense. Or is it possible to add a >> condition which tests first for the availability of the plugin one wants >> to >> test? >> >> I tried to find this information here >> https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins, but >> TDD is not mentioned there at all. >> >> Polyglot >> _______________________________________________ >> josm-dev mailing list >> [email protected] >> https://lists.openstreetmap.org/listinfo/josm-dev >> > > _______________________________________________ josm-dev mailing list [email protected] https://lists.openstreetmap.org/listinfo/josm-dev
