https://github.com/vijaycs85/sitemapextension
https://github.com/vijaycs85/sitemapextension
behat behat-extension sitemap-xml smoke-test
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vijaycs85/sitemapextension
- Owner: vijaycs85
- License: gpl-2.0
- Created: 2017-03-29T09:50:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T08:36:24.000Z (over 7 years ago)
- Last Synced: 2025-04-24T06:49:54.355Z (6 days ago)
- Topics: behat, behat-extension, sitemap-xml, smoke-test
- Language: PHP
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Behat Sitemap Extension
## Synopsis
Behat Sitemap Extension provides a way to smoke/sanity test all site pages by getting the URLs from `/sitemap.xml` and visiting them to see if we get 200 response.## Motivation
- Provide a simple way to start with behat
- With minimal effort, sanity check all pages.## Installation
### Quick start
Clone this repository and then run:
```bash
export BEHAT_PARAMS='{"extensions":{"Behat\\MinkExtension":{"base_url":"http://localhost"}}}'; bin/behat
```> Note: Replace `http://localhost` with your site URL.
### Run for multiple sites
Add a CSV file of site URLs and tags to run with (Only available tag with this extension is "@smoke") and run:
```bash
./script/run-test.sh
```## Contributors
Feel free to open an [issue](https://github.com/vijaycs85/sitemapextension/issues/new) or [pull request](https://github.com/vijaycs85/sitemapextension/pulls) to improve, add new features and bug fixes.
## License
This project is distributed under the terms of the [GNU General Public License version 2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)