openresty / openresty/test-nginx
How do I provide my nginx.conf
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 456
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to use the tutorial and get my testing with Test::Nginx started. Here is what I saw
use Test::Nginx::Socket 'no_plan';
run_tests();
__DATA__
=== TEST 1: hello, world
This is just a simple demonstration of the
echo directive provided by ngx_http_echo_module.
--- config
location = /t {
echo "hello, world!";
}
--- request
GET /t
--- response_body
hello, world!
--- error_code: 200
I don't understand how I can use my own server/nginx.cnf to run the tests? This is already starting a server and doing the test. I already have an nginx.cnf that I like to include. How do I do that?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the tutorial example in the issue and the Test::Nginx::Socket setup it uses. Clarify how an existing nginx.conf can be supplied or included when running these data-driven tests, and document the required invocation or configuration steps so users can reproduce the setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx, perl
- Domain
- testing-qa
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100