Skip to content

Commit

Permalink
Fix markdown headings
Browse files Browse the repository at this point in the history
  • Loading branch information
mleech committed May 19, 2017
1 parent a46b9a3 commit 864b4b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.markdown
@@ -1,14 +1,14 @@
#Scotch
# Scotch

##What is Scotch?
## What is Scotch?
Scotch is a library for recording and replaying HTTP interactions in your test suite.
This can be useful for speeding up your test suite,
or for running your tests on a CI server which doesn't have
connectivity to the HTTP endpoints you need to interact with.

Scotch is based on the [VCR gem](https://github.com/vcr/vcr).

###Step 1.
### Step 1.
Run your test suite locally against a real HTTP endpoint in recording mode

```csharp
Expand All @@ -20,7 +20,7 @@ var myService = new SomeService(httpClient);
```
Real HTTP calls will be made and recorded to the cassette file.

###Step 2.
### Step 2.
Switch to replay mode:
```csharp
var scotchMode = ScotchMode.Replaying;
Expand All @@ -31,5 +31,5 @@ Now when tests are run no real HTTP calls will be made,
the HTTP responses will be replayed from the cassette file.
Requests are currently matched on HTTP verb and URL, more customisable matching will be added in the future.

##Why "Scotch"?
## Why "Scotch"?
In keeping with the VCR theme, Scotch was a famous brand of VHS cassettes with [a particularly catchy ad campaign](https://www.youtube.com/watch?v=g4rv81zxBGQ).

0 comments on commit 864b4b0

Please sign in to comment.