-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render invocation messages in test reports
- Loading branch information
Showing
12 changed files
with
258 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
tests/data/scheduling_failure_workflows/dataset_failed-test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- job: {} | ||
outputs: {} |
19 changes: 19 additions & 0 deletions
19
tests/data/scheduling_failure_workflows/dataset_failed.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class: GalaxyWorkflow | ||
steps: | ||
job_props: | ||
tool_id: job_properties | ||
state: | ||
thebool: true | ||
failbool: true | ||
apply: | ||
tool_id: __APPLY_RULES__ | ||
in: | ||
input: job_props/list_output | ||
state: | ||
rules: | ||
rules: | ||
- type: add_column_metadata | ||
value: identifier0 | ||
mapping: | ||
- type: list_identifiers | ||
columns: [0] |
10 changes: 10 additions & 0 deletions
10
tests/data/scheduling_failure_workflows/invalid_when_expression-test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- job: | ||
some_file: | ||
class: File | ||
path: ../hello.txt | ||
should_run: true | ||
outputs: | ||
some_output: | ||
asserts: | ||
has_text: | ||
text: "Hello World!" |
13 changes: 13 additions & 0 deletions
13
tests/data/scheduling_failure_workflows/invalid_when_expression.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class: GalaxyWorkflow | ||
inputs: | ||
should_run: | ||
type: boolean | ||
some_file: | ||
type: data | ||
steps: | ||
cat1: | ||
tool_id: cat1 | ||
in: | ||
input1: some_file | ||
should_run: should_run | ||
when: $(:syntaxError:) |
5 changes: 5 additions & 0 deletions
5
tests/data/scheduling_failure_workflows/output_not_found-test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- job: | ||
data_input: | ||
path: ../hello.txt | ||
class: File | ||
outputs: {} |
15 changes: 15 additions & 0 deletions
15
tests/data/scheduling_failure_workflows/output_not_found.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class: GalaxyWorkflow | ||
inputs: | ||
data_input: data | ||
steps: | ||
cat1: | ||
tool_id: cat1 | ||
in: | ||
input1: data_input | ||
outputs: | ||
out_file1: | ||
rename: "my new name" | ||
first_cat1: | ||
tool_id: cat1 | ||
in: | ||
input1: cat1/does_not_exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<tool id="job_properties" name="Test Job Properties" version="1.0.0"> | ||
<stdio> | ||
<exit_code range="127" level="fatal" description="Failing exit code." /> | ||
</stdio> | ||
<version_command>echo 'v1.1'</version_command> | ||
<command><![CDATA[ | ||
#if $thebool | ||
echo 'The bool is true' && | ||
echo 'The bool is really true' 1>&2 && | ||
echo 'This is a line of text.' > '$out_file1' && | ||
cp '$out_file1' '$one' && | ||
cp '$out_file1' '$two' && | ||
sleep $sleepsecs | ||
#else | ||
echo 'The bool is not true' && | ||
echo 'The bool is very not true' 1>&2 && | ||
echo 'This is a different line of text.' > '$out_file1' && | ||
sleep $sleepsecs && | ||
sh -c 'exit 2' | ||
#end if | ||
#if $failbool | ||
## use ';' to concatenate commands so that the next one is run independently | ||
## of the exit code of the previous one | ||
; exit 127 | ||
#end if | ||
]]></command> | ||
<inputs> | ||
<param name="sleepsecs" type="integer" value="0" label="Sleep this many seconds"/> | ||
<param name="thebool" type="boolean" label="The boolean property" /> | ||
<param name="failbool" type="boolean" label="The failure property" checked="false" /> | ||
</inputs> | ||
<outputs> | ||
<data name="out_file1" format="txt" /> | ||
<collection name="list_output" type="list" label="A list output"> | ||
<data name="one" format="txt" /> | ||
<data name="two" format="txt" /> | ||
</collection> | ||
</outputs> | ||
<tests> | ||
<test expect_exit_code="0"> | ||
<param name="thebool" value="true" /> | ||
<output name="out_file1" file="simple_line.txt" > | ||
<metadata name="data_lines" value="1" /> | ||
</output> | ||
<assert_command> | ||
<has_text text="really" /> | ||
</assert_command> | ||
<assert_stdout> | ||
<has_line line="The bool is true" /> | ||
</assert_stdout> | ||
<assert_stderr> | ||
<has_line line="The bool is really true" /> | ||
</assert_stderr> | ||
<assert_command_version> | ||
<has_text text="v1.1" /> | ||
</assert_command_version> | ||
</test> | ||
<test expect_exit_code="2"> | ||
<param name="thebool" value="false" /> | ||
<output name="out_file1" file="simple_line_alternative.txt" /> | ||
<assert_command> | ||
<has_text text="very not" /> | ||
</assert_command> | ||
<assert_stdout> | ||
<has_line line="The bool is not true" /> | ||
</assert_stdout> | ||
<assert_stderr> | ||
<has_line line="The bool is very not true" /> | ||
</assert_stderr> | ||
</test> | ||
<test expect_exit_code="127" expect_failure="true"> | ||
<param name="thebool" value="true" /> | ||
<param name="failbool" value="true" /> | ||
</test> | ||
</tests> | ||
<help> | ||
</help> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters