➡️ The latest version of the Vulnerability Test Suite Generator (VTSG) is now managed by the National Institute of Standards and Technology (NIST) and is available here: https://github.com/usnistgov/VTSG.
Collection of vulnerable and fixed C# synthetic test cases expressing specific flaws.
Written in Python 3
- Jinja2 (depends on MarkupSafe)
- Docopt
- Setuptools (for setup.py)
- Sphinx (for generating the doc)
You have three ways to install these dependencies
We encourage you to use pip (installation instructions) to install these dependencies (choose one):
- [sudo] pip3 install -r requirements.txt (as root, system-wide)
- pip3 install --user -r requirements.txt (only for your user)
You can also install this dependency with your package manager (if such a package exists in your distribution) :
- [sudo] aptitude install python3-jinja2 (for GNU/Linux Debian for example)
- [sudo] aptitude install python3-docopt
- [sudo] aptitude install python3-setuptools
- [sudo] aptitude install python3-sphinx
Jinja2 installation instructions here
Docopt installation instructions here
$ python3 test_cases_generator.py -l cs
Artistic can indent C# source code.
Instructions :
$ ./astyle -r TestSuiteXXX*.cs --style=java --suffix=none --delete-empty-lines --indent-switches
where TestSuiteXXX*.cs is the path to the file you want to indent (it won't save a copy).
$ python3 test_cases_generator.py --help
For discussion please send me an email at: Bertrand 'dot' STIVALET 'at' gmail.com