[TIP] Struggling with nose-to-pytest config file

Bruno Oliveira nicoddemus at gmail.com
Tue May 1 09:41:20 PDT 2018


Hi Skip,

On Tue, May 1, 2018 at 1:19 PM Skip Montanaro <skip.montanaro at gmail.com>
wrote:

>
> I'm not familiar with the code, and with a quick skim nothing jumped out at
> me. Is it possible to include environment variable references in the
> addopts option? For example, is this valid?
>
> [pytest]
> addopts = --junit-xml=${XUNIT_DIR}/xunit.xml
>

Yes this works, but because the junitxml plugin expands environment
variables explicitly[1], it is not something done automatically for all ini
settings.

[1]
https://github.com/pytest-dev/pytest/blob/08aed1a6bf90e2b8641aa464b41a41f1e400b59e/_pytest/junitxml.py#L344

Cheers,
Bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20180501/fcf86163/attachment.htm>


More information about the testing-in-python mailing list