nf-test
nf-test copied to clipboard
Inconsistent behaviour of `file` function compared to nextflow
Greetings,
I recently ran into some trouble coming from misaligned expectations with the file
function. I wanted to assert a few file properties and expected file
to return Path
instance, just as nextflow does. However, within nf-test, I get a java.io.File
which lacks many of the attributes that I expect from nextflow.
When instead I use the path
function, I get a sun.nio.fs.UnixPath
which you have extended slightly in nf-test. However, it does not support the full range of methods that the nextflow Path
does, for example, .name
/.getName()
. Since nf-test is very much focused on testing nextflow, I feel that it would cause the least confusion to simply let file
do the same thing as in nextflow.