-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Implement unit tests for nuclei templates validation #4996
Comments
I think what would be helpful is some mechanism that allows template authors to auto-generate tests. For example, if i could run something like:
And have it spit out HTTP request and response data that can be used to validate the templates without a full vulnerable target, that would be awesome. Template authors could effectively start writing basic mock tests using a single command. I think the system, for http templates at least, would need some way of hosting a test web server which then used the generated response-data from the known vulnerable service. This would be very basic and wont fully test more complex templates, but it would be a starting point. |
Please describe your feature request:
<template_filename>_test.yaml
in the same directory? cc @tarunKoyalwar @ehsandeepDescribe the use case of this feature:
The text was updated successfully, but these errors were encountered: