Files
galaxy/test/functional/tools/parameters/gx_int_optional.xml
T
John Chilton f37075c1a5 Fix various parameter validation issues.
I previously failed to include a bunch of validation checks I assumed had been covered so fixed that first and got a bunch of new issues detected. Also added a parameter specification test case for https://github.com/galaxyproject/galaxy/issues/19908 and fixed that.
2025-04-02 12:49:09 -04:00

30 lines
879 B
XML

<tool id="gx_int_optional" name="gx_int_optional" version="1.0.0">
<command><![CDATA[
echo '$parameter' >> '$output'
]]></command>
<inputs>
<param name="parameter" value="1" type="integer" optional="true" />
</inputs>
<outputs>
<data name="output" format="txt" />
</outputs>
<tests>
<test>
<param name="parameter" value_json="12456" />
<output name="output">
<assert_contents>
<has_line line="12456" />
</assert_contents>
</output>
</test>
<test>
<param name="parameter" value_json="null" />
<output name="output">
<assert_contents>
<has_line line="1" negate="true" />
</assert_contents>
</output>
</test>
</tests>
</tool>