jirutka / nginx-testing Goto Github PK
View Code? Open in Web Editor NEWSupport for integration/acceptance testing of nginx configuration in TypeScript/JavaScript.
License: MIT License
Support for integration/acceptance testing of nginx configuration in TypeScript/JavaScript.
License: MIT License
I know this is called "nginx-testing" – but since you also provide njs binaries …
Can you provide a small example how to test things against njs? Would that even be possible? My usecase: since njs only has a subset of included objects etc it would be helpfull to unit test certain functions against that subset without doing the "nginx roundtrip".
I apologize in advance, if this is the wrong repo to open the issue!
Hi,
we just had the issue, that we were still using nginx 1.18.0 in our tests startNginx({ version: '1.10.0'})
but in the nginx.conf we were using js_var
– a feature, that should not have worked with the njs version that was packaged with nginx 1.18.0. But the tests stayed green. Only when we deployed it, did it fail.
How can we avoid this in the future?
Thanks again for this great tool!
Hi,
first, let me thank you (a lot) for your multiple tools that helped me in my njs development! Really nice and thorough.
Now, my issue is, I can't get the tests to run in my CI environment. Do you have any ideas how I could debug this?
The container that the gitlab runner is using is "node:14.16.1" – which, afaik, should have everything needed …
Thanks again and maybe you have an idea how I could get it to run.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.