[pytest-dev] Submitting pytest-inline plugin

oliver oliver.schoenborn at gmail.com
Thu Dec 29 07:55:57 EST 2022

I had a look. Interesting idea for sure. A few things though :

- the github page should clarify that these tests are intended to go in the
actual source code, rather than in the test code. Also, whether the inline
tests are merely empty functions when not hit via pytest.
- the github page should mention some important aspect like the performance
hit as discussed in the article that the page links to, and further clarify
how this is achieved (because for me, performance was one of my 2 primany
concerns). I'm a little skeptical that it is that low because function
calls in Python are relatively expensive.... but I'm happy to be proven
wrong. Eg should one be aware that the hit of the article is per test
line.... so putting an inline test in a small loop could result in a
measurable hit, etc?
- the top-level api, ie `Here()`, needs to be renamed to clarify to
would-be readers of the source code that this is inline test code that is
not run when not reached via pytest. Eg I recommend `itest`, short, easy to
write, explicit.


On Thu., Dec. 29, 2022, 4:39 a.m. Bruno Oliveira, <nicoddemus at gmail.com>

> Hi Yuki,
> Sorry for the late reply, I think this notification slipped through the
> cracks.
> We need two +1 votes from members before we can continue with the transfer.
> I'm +1, the plugin definitely looks interesting, we need just one more
> vote then.
> Cheers,
> Bruno.
> On Wed, Nov 23, 2022 at 3:15 PM Yu Liu (Yuki) <yuki.liu at utexas.edu> wrote:
>> Dear pytest developers,
>> We would like to submit our plugin “pytest-inline” to pytest-dev
>> organization. pytest-inline is a plugin to help developers write
>> inline tests at statement level. Inline testing is a new granularity
>> of testing that make it easier to check individual program statements.
>> An inline test is a statement that allows to provide arbitrary inputs
>> and test oracles for checking the immediately preceding statement that
>> is not an inline test. We have a paper about inline tests:
>> https://arxiv.org/abs/2209.06315.
>> Our current repo is at
>> https://github.com/EngineeringSoftware/pytest-inline. We have followed
>> the guidelines to prepare the repo. We have also uploaded the plugin
>> to PyPI. All of our contributors agreed to transfer the repo. Please
>> let us know if you need any further information. Look forward to your
>> feedback.
>> Thanks,
>> Yuki (with Alan, Milos, Owolabi, Pengyu, Zach)
>> _______________________________________________
>> pytest-dev mailing list
>> pytest-dev at python.org
>> https://mail.python.org/mailman/listinfo/pytest-dev
> _______________________________________________
> pytest-dev mailing list
> pytest-dev at python.org
> https://mail.python.org/mailman/listinfo/pytest-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/pytest-dev/attachments/20221229/f62ce372/attachment.html>

More information about the pytest-dev mailing list