summaryrefslogtreecommitdiff
path: root/yarns/regression.yarn
blob: a17d2f8774529f38591867fdd94b85b13e34431c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"regression" tests
==================

Tests for check we don't introduce some bugs again.


Testing if we can build after checking out from a tag.

    SCENARIO    morph build works after checkout from a tag
    GIVEN       a workspace
    AND         a git server
    WHEN        the user checks out the system tag called test-tag
    THEN        morph build the system simple-system of the tag test-tag of the repo test:morphs


Running `morph branch` when the branch directory exists doesn't
remove the existing directory.

    SCENARIO    re-running 'morph branch' fails, original branch untouched 
    GIVEN       a workspace
    AND         a git server
    WHEN        the user creates a system branch called foo
    THEN        the system branch foo is checked out

The branch is checked out correctly, now it should fail if the user executes
`morph branch` with the same branch name.

    WHEN        the user attempts to create a system branch called foo
    THEN        morph failed
    AND         the branch error message includes the string "File exists" 

The branch still checked out.

    AND         the system branch foo is checked out