Good, except please drop “file: /Users/bherudek/Desktop/fastaigits/fastai-doctest/tests/” from that file. It has to be relative to tests/
and not hardcoding paths which will be different for each person.
wrt:
matching = [s for s in set(sys.argv) if "test_" in s]
this:
if "test_" in sys.argv: ...
will do the same
But I’m concerned that someone may have ‘test_’ in their path, prior to fastai/tests/test_
and also we may run it as:
cd tests
pytest test_...
so matching on tests/test_
won’t work either.
Therefore I think we need to use a regex with your original code instead and match for r'test_\w+\.py'
.
and FYI, I will not be weighing in on any other suggestions to do more until this simple task is finished and integrated. But, of course, feel free to discuss and brainstorm, but please don’t @ me. Thank you.