Skip to content

Commit

Permalink
Merge pull request #3120 from LaurenceKuhl/dev
Browse files Browse the repository at this point in the history
Add a verbose option for nf-core modules test
  • Loading branch information
LaurenceKuhl authored Aug 16, 2024
2 parents 2a82ac7 + d4ec9f9 commit aaeaa11
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nf_core/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,13 @@ def command_modules_create(
@modules.command("test")
@click.pass_context
@click.argument("tool", type=str, callback=normalize_case, required=False, metavar="<tool> or <tool/subtool>")
@click.option(
"-v",
"--verbose",
is_flag=True,
default=False,
help="Print verbose output to the console. Sets `--debug` inside the nf-test command.",
)
@click.option(
"-d",
"--dir",
Expand Down Expand Up @@ -1171,10 +1178,12 @@ def command_modules_create(
default=False,
help="Migrate a module with pytest tests to nf-test",
)
def command_modules_test(ctx, tool, directory, no_prompts, update, once, profile, migrate_pytest):
def command_modules_test(ctx, tool, directory, no_prompts, update, once, profile, migrate_pytest, verbose):
"""
Run nf-test for a module.
"""
if verbose:
ctx.obj["verbose"] = verbose
modules_test(ctx, tool, directory, no_prompts, update, once, profile, migrate_pytest)


Expand Down

0 comments on commit aaeaa11

Please sign in to comment.