<div dir="ltr">Nice, thanks for sharing! :)<br><br>Cheers,</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 18, 2015 at 12:21 PM Florian Bruhin <<a href="mailto:me@the-compiler.org">me@the-compiler.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Another solution would be to explicitly pass the plugin in the command line<br>
> using `-p pytestq.plugin`.<br>
<br>
Sorry for the double-post - I found an (IMHO) slightly better solution<br>
:)<br>
<br>
As said before I'm using a separate test executable, and I noticed<br>
pytest.main takes a plugins-argument with a list of plugin entry<br>
points.<br>
<br>
I now changed the script to import the plugins and run pytest<br>
accordingly:<br>
<br>
<a href="https://github.com/The-Compiler/qutebrowser/commit/060a7ea044cfac140c53d84258dc2857d058dfc2" rel="noreferrer" target="_blank">https://github.com/The-Compiler/qutebrowser/commit/060a7ea044cfac140c53d84258dc2857d058dfc2</a><br>
<br>
Contrary to the other solutions, this makes cx_Freeze realize it<br>
should also freeze those modules, as they're imported in the script<br>
which gets frozen - so there's less duplication.<br>
<br>
The only thing I had to give cx_Freeze a little hint about is the<br>
import of the PyQt5.QtTest module, as it's unused in my project<br>
otherwise, but pytest-qt uses it - and it uses a compatibility layer<br>
which causes cx_Freeze to not pick this up.<br>
<br>
Florian<br>
<br>
--<br>
<a href="http://www.the-compiler.org" rel="noreferrer" target="_blank">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a> (Mail/XMPP)<br>
   GPG: 916E B0C8 FD55 A072 | <a href="http://the-compiler.org/pubkey.asc" rel="noreferrer" target="_blank">http://the-compiler.org/pubkey.asc</a><br>
         I love long mails! | <a href="http://email.is-not-s.ms/" rel="noreferrer" target="_blank">http://email.is-not-s.ms/</a><br>
</blockquote></div>