|How do I automatically set preferences for a test? [message #806447]
||Sat, 25 February 2012 00:59
| Jeff Johnston
Registered: July 2009
I have an SWTBot test plug-in which requires setting:|
I tried setting the preference using the Preferences view via SWTBot itself, but there is some glitch where the setting is made via SWTBot, but it is not set properly and this later breaks my tests.
Now, my tests work fine with the setting above in a plugin_customization.ini file which I have to specify via a -pluginCustomization argument in the Run dialog for my particular test.
I would like to make the test automatically do this for anyone who checks out the test plug-in from the repository without forcing them to set up the -pluginCustomization option. (i.e. just right-click and Run as..-> SWTBot test).
What would be the best way to do this?
I would also like to do this for Junit tests as well.
Powered by FUDForum
. Page generated in 0.01656 seconds