Skip to content

Commit 698458b

Browse files
committed
update readme
1 parent d7bce71 commit 698458b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,28 @@ Httpspec takes this file, executes the first request (/status/200 in this case),
2424

2525
The idea behind Httpspec is to allow you to specify a series of HTTP requests (with assertions) to model a sequence of test steps. For example, the first request in your file may create a user in your API which is then needed by future requests. You may then make another request, using those user credentials, to create an order for that user -- again, this is just an example.
2626

27+
## Installation
28+
29+
Install httpspec and add it to your path. **Do not run copy/paste this script. Read it, and run only the parts that you need.**
30+
31+
```bash
32+
# Use the appropriate binary for your OS and Arch
33+
binary="httpspec_linux_arm" # linux arm
34+
binary="httpspec_linux_x86" # linux x86
35+
binary="httpspec_mac_arm" # mac arm
36+
binary="httpspec_mac_x86" # mac x86
37+
binary="httpspec_windows_x86" # windows
38+
39+
# curl, follow redirects, output to "httpspec", download target latest release
40+
curl -L -o adl https://github.com/bradcypert/httpspec/releases/latest/download/$binary
41+
42+
# You _may_ need to update permissions for adl
43+
chmod 744 httpspec
44+
45+
# You probably also want to move this to a place that exists in your path
46+
mv httpspec /usr/local/bin
47+
```
48+
2749
# How to Use
2850

2951
```bash

0 commit comments

Comments
 (0)