phmlabs/missingrequest
Composer 安装命令:
composer require phmlabs/missingrequest
包简介
Head outputs all http header information for a given website
README 文档
README
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.
# 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
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-11-16