On Wed, 26 Apr 2017, Leon Davis wrote: > Gambas v3.9.2 GTK+3 > > I am trying to create a component using gambas. Is there a way to test the > component during development? or is it necessary to complete the component > and install it to test? You help is appreciated.
You can run your component like a normal Gambas application to test it. Give your component project a startup class/module/form and write your test code in there. Instead of setting a startup class, you can also use the "Run this class" right-click menu item to execute any one of your test classes. Many of the official Gambas components do this. You can have a look at gb.form, for example, which has a whole subdirectory "Test" of various forms, which can be used to test the component during development. Actually, in this regard a component is no different from a Gambas application. Try *executing* the gb.form component: $ /usr/lib/gambas3/gb.form.gambas Since a startup form is defined for it, the component is run like any other Gambas application, currently showing a SliderBox test. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user