corpse
v1.0.16
Published
A simple HAR file replay for testing HTTP request and response exchanges
Downloads
28
Readme
Corpse
A simple server to replay HAR files, written specifically to test request and response interactions of a HTTP session.
Installation
npm install --save-dev corpse
Usage
node_modules/.bin/corpse --har /path/to/your/har/file --port 3031
Or in your package.json
:
"scripts" : {
...
"corpse": "node_modules/.bin/corpse --har /path/to/your/har/file --port 3031"
}
Then you can run the server with npm run corpse
.
Todo
- [ ] Test that requests are correct
- [x] Ensure that cookies set and returned correctly
- [x] Scrub location header urls
- [x] Ensure that all img src attributes are scrubbed
- [ ] Test that query strings are correctly responded to
- [ ] Add an index route with a list of routes