features/sequence.feature in scaffolder-tools-0.1.2 vs features/sequence.feature in scaffolder-tools-0.1.3
- old
+ new
@@ -16,78 +16,17 @@
sequence:
source: "seq"
"""
When I call "scaffolder" with arguments "sequence scaffold.yml sequence.fna"
Then the exit status should be 0
- And the stdout should contain "ATGGC"
-
- Scenario: The sequence file specified does not exist
- Given a file named "scaffold.yml" with:
+ And the stdout should contain exactly:
"""
- ---
- -
- sequence:
- source: "seq"
- """
- When I call "scaffolder" with arguments "sequence scaffold.yml missing_file"
- Then the exit status should be 1
- And the stderr should contain "Error. Sequence file not found:"
-
- Scenario: The sequence file doesn't contain any thing
- Given an empty file named "sequence.fna"
- Given a file named "scaffold.yml" with:
- """
- ---
- -
- sequence:
- source: "seq1"
- """
- When I call "scaffolder" with arguments "sequence scaffold.yml sequence.fna"
- Then the exit status should be 1
- And the stderr should contain "Error. Sequence file is empty"
-
- Scenario: The scaffold file specified does not exist
- Given a file named "sequence.fna" with:
- """
- >seq
+ >
ATGGC
- """
- When I call "scaffolder" with arguments "sequence missing_file sequence.fna"
- Then the exit status should be 1
- And the stderr should contain "Error. Scaffold file not found:"
- Scenario: The scaffold file doesn't contain anything
- Given an empty file named "scaffold.yml"
- Given a file named "sequence.fna" with:
"""
- >seq
- ATGGC
- """
- When I call "scaffolder" with arguments "sequence scaffold.yml sequence.fna"
- Then the exit status should be 1
- And the stderr should contain "Error. Scaffold file is empty"
- Scenario: One of the sequences specified in the scaffold is missing
- Given a file named "sequence.fna" with:
- """
- >seq1
- ATGGC
- """
- Given a file named "scaffold.yml" with:
- """
- ---
- -
- sequence:
- source: "seq1"
- -
- sequence:
- source: "seq2"
- """
- When I call "scaffolder" with arguments "sequence scaffold.yml sequence.fna"
- Then the exit status should be 1
- And the stderr should contain "Error. Unknown sequence: seq2"
-
Scenario: Using the definition argument before the file arguments
Given a file named "sequence.fna" with:
"""
>seq
ATGGC
@@ -99,13 +38,17 @@
sequence:
source: "seq"
"""
When I call "scaffolder" with arguments "sequence --definition='name' scaffold.yml sequence.fna"
Then the exit status should be 0
- And the stdout should contain "ATGGC"
- And the stdout should contain ">name"
+ And the stdout should contain exactly:
+ """
+ >name
+ ATGGC
+ """
+
Scenario: Using the definition argument after the file arguments
Given a file named "sequence.fna" with:
"""
>seq
ATGGC
@@ -117,14 +60,18 @@
sequence:
source: "seq"
"""
When I call "scaffolder" with arguments "sequence scaffold.yml sequence.fna --definition='name'"
Then the exit status should be 0
- And the stdout should contain "ATGGC"
- And the stdout should contain ">name"
+ And the stdout should contain exactly:
+ """
+ >name
+ ATGGC
- Scenario: Using the argument --no-sequence-hash
+ """
+
+ Scenario: Using the argument --with-sequence-digest
Given a file named "sequence.fna" with:
"""
>seq
ATGGC
"""
@@ -133,15 +80,20 @@
---
-
sequence:
source: "seq"
"""
- When I call "scaffolder" with arguments "sequence --no-sequence-hash scaffold.yml sequence.fna"
+ When I call "scaffolder" with arguments "sequence --with-sequence-digest scaffold.yml sequence.fna"
Then the exit status should be 0
- And the stdout should contain ">\nATGGC"
+ And the stdout should contain exactly:
+ """
+ >[sha1=32848c64b5bac47e23002c989a9d1bf3d21b8f92]
+ ATGGC
- Scenario: Using the arguments --no-sequence-hash and --definition
+ """
+
+ Scenario: Using the arguments --with-sequence-digest and --definition
Given a file named "sequence.fna" with:
"""
>seq
ATGGC
"""
@@ -150,8 +102,13 @@
---
-
sequence:
source: "seq"
"""
- When I call "scaffolder" with arguments "sequence scaffold.yml sequence.fna --no-sequence-hash --definition='name'"
+ When I call "scaffolder" with arguments "sequence scaffold.yml sequence.fna --with-sequence-digest --definition='name'"
Then the exit status should be 0
- And the stdout should contain ">name \nATGGC"
+ And the stdout should contain exactly:
+ """
+ >name [sha1=32848c64b5bac47e23002c989a9d1bf3d21b8f92]
+ ATGGC
+
+ """