Skip to content

Commit

Permalink
Add workflow tests for multiple="true" workflow parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Aug 18, 2024
1 parent ee29716 commit cf1c8a5
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- doc: |
Test to verify text parameter can be connected to data column param
job:
input:
type: File
value: 2.tabular
file_type: tabular
column:
value: [1, 2]
type: raw
outputs:
output:
asserts:
- that: has_text
text: "col 1,2"
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class: GalaxyWorkflow
inputs:
input:
type: data
column:
type: [integer]
outputs:
output:
outputSource: column_param_list/output2
steps:
column_param_list:
tool_id: column_param_list
in:
input1: input
col: column
col_names: column
14 changes: 14 additions & 0 deletions lib/galaxy_test/workflow/multiple_text.gxwf-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- doc: |
Test that workflows can run with multiple text parameter fed into a multi select parameter.
job:
input:
value:
- --ex1
- ex2
- --ex3
type: raw
outputs:
output:
asserts:
- that: has_line
line: '--ex1,ex2,--ex3'
15 changes: 15 additions & 0 deletions lib/galaxy_test/workflow/multiple_text.gxwf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class: GalaxyWorkflow
inputs:
input:
type: [string]
outputs:
output:
outputSource: multi_select/output
steps:
multi_select:
tool_id: multi_select
tool_version: "0.1"
in:
select_ex: input
tool_state:
select_optional: null

0 comments on commit cf1c8a5

Please sign in to comment.