# HG changeset patch
# User portiahollyoak
# Date 1464275241 14400
# Node ID 4f0fb855276c61e4438e91b5c0c82e744749c6ec
# Parent  f562c252b285fd0c7081fb0bf955aa2bf75cfe55
planemo upload for repository https://github.com/portiahollyoak/Tools commit 5f5802314b55f52ea4b3f9f515ec46a5a770696d-dirty

diff -r f562c252b285 -r 4f0fb855276c gff_feature_colours.xml
--- a/gff_feature_colours.xml	Thu May 26 10:48:35 2016 -0400
+++ b/gff_feature_colours.xml	Thu May 26 11:07:21 2016 -0400
@@ -31,8 +31,18 @@
         </repeat>
     </inputs>
     <outputs>
-        <data format="input" name="output" label="Add feature colours to ${input.element_identifier}" />
+        <data format_source="input" name="output" label="Add feature colours to ${input.element_identifier}" />
     </outputs>
+    <tests>
+        <test>
+            <param name="input" value="test-gff.gff" ftype="gff"/>
+            <param name="feat_0|feature" value="Idefix" />
+            <param name="feat_0|feature_colour" value="#ff0000"/>
+            <param name="feat_1|feature" value="INE-1" />
+            <param name="feat_1|feature_colour" value="#00ff00"/>
+            <output name="output" file="test-gff-colours.gff" ftype="gff"/>
+        </test>
+    </tests>>
     <help><![CDATA[
 Description
 ------------
diff -r f562c252b285 -r 4f0fb855276c test-data/test-gff-colours.gff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/test-gff-colours.gff	Thu May 26 11:07:21 2016 -0400
@@ -0,0 +1,2 @@
+2L	FlyBase	Idefix	9726	9859	.	+	.	ID=FBti0060580;Colour=#ff0000;
+2L	FlyBase	INE-1	9888	9949	.	-	.	ID=FBti0059810;Colour=#00ff00;
diff -r f562c252b285 -r 4f0fb855276c test-data/test-gff.gff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/test-gff.gff	Thu May 26 11:07:21 2016 -0400
@@ -0,0 +1,2 @@
+2L	FlyBase	Idefix	9726	9859	.	+	.	ID=FBti0060580;
+2L	FlyBase	INE-1	9888	9949	.	-	.	ID=FBti0059810;