Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock nextflow processes #31

Open
zhuchcn opened this issue Dec 24, 2022 · 1 comment
Open

Mock nextflow processes #31

zhuchcn opened this issue Dec 24, 2022 · 1 comment
Assignees

Comments

@zhuchcn
Copy link
Member

zhuchcn commented Dec 24, 2022

In python unit test, functions can be mocked so they returns certain values or data without going through the processes that takes long time, and only for the purpose of testing. So I'm thinking that would be great if we can somehow implement the mocking in nftest. A naive thought is that we can analyze the process/workflow definition and figure out the input output file pattern, and replace the code block with user specified code, or use existing files to mock the output files of the process. This will let it test the process/workflow logic without waiting for hours for the actual tool to run. @uclahs-cds/nextflow-wg @uclahs-cds/software-wg

@yashpatel6 yashpatel6 self-assigned this Jan 3, 2023
@yashpatel6
Copy link
Contributor

I agree this would be useful; I don't know if we'll be able to completely implement mocking but I do have some ideas on adding some way to test a specific process rather than having to run the entire pipeline. Will keep you posted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants