This script automates the process of generating various reports and test scripts for a given unit using VectorCast.
- Automatically creates necessary folders for storing reports.
- Extracts specific strings from a given environment file.
- Generates paths for different types of reports.
- Executes system commands to produce reports and test scripts.
- Ensure you have VectorCast installed and the
VECTORCAST_DIR
environment variable set. - The script should be placed in the directory containing the unit for which reports are to be generated.
- Navigate to the directory containing the script.
- Run the script using Python:
python script_name.py
- You will be prompted to choose whether you want Compound Test Cases. Enter
1
for YES or2
for NO. - The script will then generate the necessary reports and test scripts, and store them in the appropriate directories.
create_folder(path, folder_name)
: Creates a folder and returns its path.generate_report_path(main_path, unit_name, end_type)
: Generates a report path based on the unit name and type.extract_strings_from_env(env_name)
: Extracts specific strings from the provided environment file.main()
: The main function that orchestrates the entire process.
- The script assumes the presence of an environment file named in the format
UNIT_NAME.env
in the current directory. - Reports and test scripts are stored in a folder named
UNIT_NAME_VCAST_SI_Results
within the current directory.
You can save the above content in a file named README.md
and place it alongside the script for documentation purposes.# VectorCast_SI_Report_Generator
Autometically Generate SI Reports from VectoCAST