Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phmlabs/missingrequest
https://github.com/phmlabs/missingrequest
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/phmlabs/missingrequest
- Owner: phmLabs
- Created: 2015-11-12T07:24:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-17T20:26:17.000Z (almost 7 years ago)
- Last Synced: 2023-07-15T16:55:26.254Z (over 1 year ago)
- Language: PHP
- Size: 112 KB
- Stars: 6
- Watchers: 5
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MissingRequest
MissingRequest is a tool for checking if given urls are producing a defined set of http requests.
The tool is based on phantomJS and is able to execute javascript so you can be sure *all* the requests are called.
## Installation
Installation of MissingRequest is easy. Just download the phar archive and run the tool.```
curl -O -LSs http://pharchive.phmlabs.com/archive/phmLabs/MissingRequest/current/Missing.phar && chmod +x Missing.phar
```Additionally phantomJS must be installed. If not already done you can find the installation guide here: http://phantomjs.org/download.html.
## Commands
### run
The run command runs checks if a given list of urls produce the right requests.*Example*
```
Missing.phar run example/requests.list -o /tmp/test.xml -f xunit
```
This example will create a xunit conform xml file that can be read by the most continuous integration servers such as jenkins or bamboo.### info
The info command can be used to show all requests an url triggers when called.
*Example*
```
Missing.phar info http://www.amilio.de
```### create
The create command is used to create a config file. It calls an url an adds all triggered requests to the given yaml file. Afterwards you can remove the optional requests.
*Example*
```
Missing.phar create http://www.amilio.de /tmp/amilio.yml
```If the amilio.yml file already exists it will be overwritten.
## Configuration
*Example*
This example will check if the two urls (```www.amilio.de/ and www.amilio.de/blog/2015/```) produce requests against google, amilio and any given .de domain.
```yml
# amilio_example.yml
urls:
startpage:
url: http://www.amilio.de
requests:
- http://www.google.com
- http://www.amilio.de
- www.(.*).de
blog:
url: http://www.amilio.de/blog/2015/
requests:
- http://www.amilio.de
- www.(.*).de```