{"repo":"nytimes/httptest","free":true,"listed":false,"github":"https://github.com/nytimes/httptest","clone":"git clone https://github.com/nytimes/httptest.git","description":"A simple concurrent HTTP testing tool","language":"Go","stars":52,"topics":["http","testing","golang","cicd","drone-ci","github-actions","container"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"httptest A simple concurrent HTTP testing tool Usage Write a simple test Create a file tests.yml with the following content: Run tests locally This program is distributed as a Docker image. To run a container locally (under a folder contains tests related yml file): You should see an output similar to this: Tip: If your test cases have conditions on environment variables (see conditions in full example), remember to include -e \" = \" . e.g. By default, if your current working directory is $(pwd)/tests , the program will parse all files in $(pwd)/tests recursively. This can be changed using an environment variable. Run tests in a CI/CD pipeline This image can be used in any CI/CD system that supports Docker containers. Examples - Drone - GitHub Actions Configurations A few global configurations (applied to all tests) can be specified by environment variables: - TEST DIRECTORY : Local directory that contains the test definition YML or YAML files. Default: tests - TEST HOST : Host to test. Can be overridden by request.host of individual test definitions. If TEST HOST and request.host are both not set, test will fail. - TEST CONCURRENCY : Maximum number of concurrent requests at a time. Default: 2 . - TEST DNS OVERRIDE : Override the IP address for TEST HOST . Does not work for request.host specified in YML. - TEST PRINT FAILED ONLY : Only print failed tests. Valid values: false or true . Default: false . - TEST VERBOSITY : Increase logging output for tests. Default: 0 . - ENABLE ","default_branch":null,"files":null,"tree":[],"storefront":"/r/nytimes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nytimes/httptest/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}