Skip to content

Test for ExpressionTool outputs validation #9

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3525,3 +3525,9 @@
an_array_of_mixed_booleans: [ false, true, false ]
an_array_of_trues: [ true, true, true ]
an_int: 42

- id: invalid_expression_tool_output
tool: tests/null-expression4-tool.cwl
doc: Test that the output objects returned by an ExpressionTool process are validated against the outputs schema.
should_fail: true
tags: [ inline_javascript, expression_tool ]
2 changes: 1 addition & 1 deletion tests/null-expression3-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ cwlVersion: v1.3.0-dev1
inputs: []

outputs:
output: Any
output: Any?

expression: "$({'output': null })"
12 changes: 12 additions & 0 deletions tests/null-expression4-tool.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env cwl-runner

class: ExpressionTool
requirements: { InlineJavascriptRequirement: {} }
cwlVersion: v1.3.0-dev1

inputs: []

outputs:
output: Any

expression: "$({'output': null })"
Loading