Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with nginx-tests #84

Open
oxpa opened this issue Jan 13, 2025 · 1 comment
Open

Integration with nginx-tests #84

oxpa opened this issue Jan 13, 2025 · 1 comment

Comments

@oxpa
Copy link

oxpa commented Jan 13, 2025

I'm using https://github.com/nginx/pkg-oss to build the module. I also build a number of other modules along with nginx-otel.
Previously, there were perl tests I could use to test built binaries: I would make nginx to load all modules and then run otel specific tests along with others from nginx-tests.
Now there are python tests and I can't find a reasonable way to integrate those into nginx testsuite

I would really appreciate your guidance on how to integrate existing nginx-tests and nginx-otel tests.

@p-pautov
Copy link
Contributor

To load other modules into OTel specific tests you can use --globals option, e.g.

pytest tests --nginx=... --module=... --globals="load_module other_module.so;"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants