askimed / nf-test

Simple test framework for Nextflow pipelines
https://www.nf-test.com
MIT License
146 stars 23 forks source link

Allow capture and assertion of `.command.{err,out,log}` #209

Open awgymer opened 7 months ago

awgymer commented 7 months ago

Currently you cannot check the stdout/stderr of a process unless it is explicitly captured as a channel.

It would be useful if nf-test could expose the content of the relevant .command.* file at e.g. process.command_out so that they can be tested without needing to be explicitly checked.

It should be possible to read and inject this information in a similar method to the way thew nextflow top level stdout is injected to e.g. pipeline.stdout