Logo: Relish

  1. Sign in

Project: Cardigan

cardigan import and export

In order to interoperate with other tracking systems
As a command line junkie
I want to roundtrip import and export my cards

Scenarios
import cards from csv
Given
a file named "cards.csv" with:
id,name,estimate
10,qwer,2
11,adsf,2
12,zxcv,2
When
I run cardigan import cards
And
I run cardigan ls
Then
the exit status should be 0
And
the stdout should contain:
 --------------
| index | name |
 --------------
| 1     | adsf |
| 2     | qwer |
| 3     | zxcv |
 --------------
export cards to csv
When
I run cardigan touch qwer
And
I run cardigan touch asdf
And
I run cardigan touch zxcv
And
I run cardigan export cards
Then
the exit status should be 0
And
the file "cards.csv" should match /^id,name$/
And
the file "cards.csv" should match /^\w{8}-\w{4}-\w{4}-\w{4}-\w{12},qwer$/
And
the file "cards.csv" should match /^\w{8}-\w{4}-\w{4}-\w{4}-\w{12},asdf$/
And
the file "cards.csv" should match /^\w{8}-\w{4}-\w{4}-\w{4}-\w{12},zxcv$/

Last published almost 5 years ago by markryall.