Semgrep: --test: separate out test and pattern files

Created on 7 Oct 2020  路  3Comments  路  Source: returntocorp/semgrep

Allow semgrep yaml files and test files to be in separate directories

enhancement external-user cli-ux medium

Most helpful comment

@colleend We'll need to think about this a bit with the changes we're making to load examples into the registry

All 3 comments

It would be useful to separate test files and rule files https://github.com/semgrep/rules-nodejsscan/tree/with_tests/rules
especially when packing and updating rules dynamically.

Can we have support for python -m semgrep --quiet --json --test --rules <rules> --src <source_code>

@colleend We'll need to think about this a bit with the changes we're making to load examples into the registry

@ajinabraham yay! Can you please confirm the changes @mschwager made in #2221 work for your needs and if not, please reopen. It should roll out in our release next week.

Was this page helpful?
0 / 5 - 0 ratings