Hey team! An update regarding our pytest to nf-te...
# team-maintainers
u
Hey team! An update regarding our pytest to nf-test conversion effort. It had stopped because the regex-based converter that I created (https://github.com/nf-core/tools/pull/3138) under nf-core/tools was not able to parse complex pytest 250+ files. Prompted by @Simon Pearce, I started rethinking our approach and realised that we can use the Antlr-based parser for Nextflow language-server to convert complex pytest files. I have started work on a new converter and the initial work is showing promise. Please check it out here: https://github.com/GallVp/pytest2nf-test
👀 1
👌 3
s
I have been thinking to give people looking for stuff TODO at hackathon the migration but, if we can get it done with this template lets go for it as there are few things we need to deal with (apply mass updates) once we have all the tests in: • fix failing tests • separate out
assert process.success
from assertAll() block • capture version number directly in snaps • some more
u
Maybe, hackathon people interested in learning nf-test can use this to convert existing pytests?
s
so this converter needs to be run separately for each module or can we script it ?
u
I have scripts which can do batch conversion. But after conversion we generally have to deal with failing tests. So batch conversion is not that straightforward.
s
I see.....let me try for one module today and then we can put up some notes with instructions do the same and finish
u
Yes, please try. If you hit errors or bugs, let me know. The converter is still in its infancy.
s
Particularly as the remaining modules are generally less used ones, which means they are more likely to have test issues....