Skip to content

Commit bdac22e

Browse files
committed
. d Move set up instructions down
1 parent f14e4db commit bdac22e

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@ TCR stands for "test && commit || revert," a challenging and fun development wor
1515
- [Temporary Bypass](#temporary-bypass)
1616
- [References](#references)
1717

18-
## How to Set It Up
19-
20-
Clone this repo. Then in Xcode, open Settings and go to the Behaviors tab.
21-
22-
Under "Testing Succeeds" scroll down until you see a "Run" option. Select the `tcr-commit.sh` script.
23-
If you want it to also push, select `tcr-commit-and-push.sh` instead.
24-
25-
![Set behavior for Test Succeeds to tcr-commit.sh](images/succeeds.png)
26-
27-
Under "Testing Fails" set the "Run" to the `tcr-revert.sh` script.
28-
29-
![Set behavior for Test Fails to tcr-revert.sh](images/fails.png)
30-
3118
## What It Does
3219

3320
Upon a successful test run, the commit script shows a dialog asking you for a commit message. Enter your commit message and press enter, and it will commit your changes.
@@ -46,6 +33,19 @@ To bypass TCR, deselect the Run script in the Testing Fails behaviors. This will
4633

4734
You can keep the Run script in place for Testing Succeeds. If you leave the commit message blank, it won't make a commit.
4835

36+
## How to Set It Up
37+
38+
Clone this repo. Then in Xcode, open Settings and go to the Behaviors tab.
39+
40+
Under "Testing Succeeds" scroll down until you see a "Run" option. Select the `tcr-commit.sh` script.
41+
If you want it to also push, select `tcr-commit-and-push.sh` instead.
42+
43+
![Set behavior for Test Succeeds to tcr-commit.sh](images/succeeds.png)
44+
45+
Under "Testing Fails" set the "Run" to the `tcr-revert.sh` script.
46+
47+
![Set behavior for Test Fails to tcr-revert.sh](images/fails.png)
48+
4949
## References
5050

5151
- [test && commit || revert](https://medium.com/@kentbeck_7670/test-commit-revert-870bbd756864) original article by Kent Beck

0 commit comments

Comments
 (0)