Hi, It is now clear that mock interface is helpful in testing plugin. But now , can we list step by step documentation for starters like me.
Thanks & Regards Shiva Reddy K. Scientist/Engineer 'SE’ Indian Institute of Remote Sensing, Indian Space Research Organisation Department of Space 4-Kalidas Road Dehradun mobile: 0135-2524126 On Mon, 23 Mar 2020 at 17:03, Etienne Trimaille <[email protected]> wrote: > Hi, > > Sorry, I was mainly thinking about this one : > https://github.com/g-sherman/Qgis-Plugin-Builder/blob/master/test/qgis_interface.py > We can find it in many plugins. > Is it still needed ? > > I totally agree, the mock iface provided by QGIS core is still useful! > https://github.com/qgis/QGIS/blob/master/python/testing/mocked.py#L37 > > Le lun. 23 mars 2020 à 12:26, Matthias Kuhn <[email protected]> a > écrit : > >> Hi Etienne, >> >> I partially but respectfully disagree. I agree that other tools are >> better for this use case. But a mock (dummy) interface is still a valid >> tool to check which API's are called how many times and in which way on a >> headless testing server / CI. Also on QGIS 3. >> >> Best regards >> >> Matthias >> >> >> On 3/23/20 12:11 PM, Etienne Trimaille wrote: >> >> The dummy interface was mainly with QGIS 2. You don't need it anymore. >> >> You can read : >> https://github.com/qgis/QGIS/tree/master/.docker >> >> I will try to make a PR on qgis about Docker this week about some notes I >> have. >> >> Le lun. 23 mars 2020 à 11:48, Jo <[email protected]> a écrit : >> >>> What I found on the internet involves creating a dummy interface, which >>> is great if you want to do Continuous Integration and such, but this wasn't >>> the way I wanted to test. I wanted to be able to see what was happening >>> right there in the live GUI. >>> >>> It took a while before I discovered that there is a mini editor in the >>> Python console. Now I'm launching my test code from there and this works >>> great. QTest allows me to press buttons or enter values and unit testing >>> allows me to verify it's all as expected. >>> >>> I can show you in about half an hour, if you're available, or later. >>> >>> Jo >>> >>> On Mon, Mar 23, 2020 at 11:15 AM shiva reddy <[email protected]> >>> wrote: >>> >>>> Sure. >>>> >>>> Looking forward to it. >>>> Thanks & Regards >>>> Shiva Reddy K. >>>> Scientist/Engineer 'SE’ >>>> Indian Institute of Remote Sensing, >>>> Indian Space Research Organisation >>>> Department of Space >>>> 4-Kalidas Road >>>> Dehradun >>>> mobile: 0135-2524126 >>>> >>>> >>>> >>>> On Mon, 23 Mar 2020 at 15:38, Jo <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> I've been advancing a bit on the testing topic. I'll gladly do a >>>>> Googe Hangout with you. We can probably learn from each other. >>>>> >>>>> Jo >>>>> >>>>> On Mon, Mar 23, 2020 at 11:01 AM shiva reddy <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> Due to ongoing COVID 19 situation , I get unique opportunity for >>>>>> refine my skills by incorporating best practices into my open source >>>>>> projects. >>>>>> >>>>>> In this line, I would like to develop test cases for my QGIS plugin. >>>>>> Any idea , reference or any mentor who can guide me through this? >>>>>> >>>>>> My plugin name is QRealTime. >>>>>> >>>>>> >>>>>> Thanks & Regards >>>>>> Shiva Reddy K. >>>>>> Scientist/Engineer 'SE’ >>>>>> Indian Institute of Remote Sensing, >>>>>> Indian Space Research Organisation >>>>>> Department of Space >>>>>> 4-Kalidas Road >>>>>> Dehradun >>>>>> mobile: 0135-2524126 >>>>>> >>>>>> _______________________________________________ >>>>>> QGIS-Developer mailing list >>>>>> [email protected] >>>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >>>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >>>>> >>>>> _______________________________________________ >>> QGIS-Developer mailing list >>> [email protected] >>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> >> _______________________________________________ >> QGIS-Developer mailing [email protected] >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> >>
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
