Re: [pytest-dev] pytest-failed: dump/restore failed tests

2024-07-16 Thread Florian Schulze
On 16 Jul 2024, at 1:36, Oscar Benjamin wrote: > I like this idea. I would want it to have behaviour that > --lf=failed.txt checks if the file exists and if not populates it with > the contents from the pytest ---lf cache. Then you could do: > > $ pytest > < runts tests, some fail > > $ pytest --l

Re: [pytest-dev] pytest-failed: dump/restore failed tests

2024-07-16 Thread Oscar Benjamin
On Tue, 16 Jul 2024 at 10:09, Florian Schulze wrote: > > On 16 Jul 2024, at 1:36, Oscar Benjamin wrote: > > > I like this idea. I would want it to have behaviour that > > --lf=failed.txt checks if the file exists and if not populates it with > > the contents from the pytest ---lf cache. Then you c

Re: [pytest-dev] pytest-failed: dump/restore failed tests

2024-07-16 Thread Bruno Oliveira
On Tue, Jul 16, 2024, at 6:24 AM, Oscar Benjamin wrote: > On Tue, 16 Jul 2024 at 10:09, Florian Schulze > wrote: > > > > On 16 Jul 2024, at 1:36, Oscar Benjamin wrote: > > > > > I like this idea. I would want it to have behaviour that > > > --lf=failed.txt checks if the file exists and if not p