I'm writing some unit tests for a plugin I've made using codeception. I need to test the installation of another plugin during a test.
Defining the plugin in codeception.yml doesn't work, the plugin isn't installed in composer yet. Anyway it's important the plugin is installed just before the test happens, or during.
I've tried copying the plugin in my tests folder and define a local repository in my composer.json. Then install the plugin through the Craft composer service. But it doesn't work either, I suppose because the plugin isn't registered in the Craft store.
Same problem if I have the plugin on my github account.
Is it my only option to install the plugin manually using composer php functions here ? If so would you have some links to examples on how to do that ?
Or is there another way to approach this ?
Thank you for your time