Jim- Interesting. Definitely related. Thanks for sharing that.

Arseniy- The major motivation is to disable certain tests by default. I
tried to outline the shortcomings of current mechanisms in the README, but
probably need a bit more. In any case, using -m expressions in the cfg file
conflicts with using them on the command line. Also, it's a bit unwieldy if
you want to disable tests for multiple markers.

-Reece


On Wed, Jul 10, 2019 at 11:46 AM Arseniy Antonov <arseny.anto...@gmail.com>
wrote:

> Hello,
> Why don't you want to add markers to pytest.ini config?
> For now, you can add custom run options to the pytest.ini file.
>
> [pytest]addopts = -m my_marker
>
> But I agree that separate option for run marked tests would be better.
>
> [pytest]addopts = -s -v
> markers_to_run = my_marker1, my_marker2
>
>
>
> ср, 10 июл. 2019 г. в 02:19, Jim Brännlund <jimbrannl...@fastmail.com>:
>
>> Nice!
>>
>> It looks similar to something that I did a while back:
>> https://github.com/Projectplace/pytest-tags
>>
>> --
>>   Jim Brännlund
>>   jimbrannl...@fastmail.com
>>
>>
>>
>> On Tue, Jul 9, 2019, at 3:35 AM, Reece Hart wrote:
>>
>> I would appreciate feedback/code review on a pytest plugin (my first!)
>> that I wrote today to simplify the use of pytest markers for optional
>> tests. Code is at https://github.com/reece/pytest-optional-tests. tests
>> and pypi deployments (via travis) are already available.
>>
>> I'm open to all comments: utility, clarity of terms, and certainly
>> implementation. Comments preferred via github, but on this list is okay too.
>>
>> Thanks,
>> Reece
>> _______________________________________________
>> pytest-dev mailing list
>> pytest-dev@python.org
>> https://mail.python.org/mailman/listinfo/pytest-dev
>>
>>
>> _______________________________________________
>> pytest-dev mailing list
>> pytest-dev@python.org
>> https://mail.python.org/mailman/listinfo/pytest-dev
>>
>
>
> --
> --------------------------
> Regards.
> Arseny Antonov
> _______________________________________________
> pytest-dev mailing list
> pytest-dev@python.org
> https://mail.python.org/mailman/listinfo/pytest-dev
>
_______________________________________________
pytest-dev mailing list
pytest-dev@python.org
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to