Project 2 - V&V SW Analysis II
Static Code Review Analysis:
To perform a static code review analysis, you typically use a code analysis tool or an integrated development environment (IDE) with built-in code analysis features. Popular tools for static code analysis include SonarQube, Checkmarx, and LDRA.
Here's a general outline of the process:
a. Open your code analysis tool and create a new project or workspace.
b. Import the source code file "Testrain.c" located at "C:**\LDRA_workarea\Examples\C_Testbed_examples\Testrain\Testrain.c" into your project.
c. Configure the analysis rules and settings according to your coding standards and project requirements.
d. Run the static code analysis on the imported file.
e. Generate a code review report with the analysis results, including any code violations, warnings, and recommendations for improvement.
f. Save the code review report in a suitable format (e.g., PDF, HTML).
g. Upload the generated code review report.
2. Integration Testing:
For integration testing with multiple .C files, you can use testing frameworks like Google Test or write your custom test cases. Additionally, you mentioned TBExtreme, which is a tool for test automation.
a. Manual Test Case Creation: - Create test cases that cover different integration scenarios between the .C files in the specified folder. - Document the test cases, including inputs, expected outputs, and any dependencies.
b. Automated Test Case Creation with TBExtreme: - Launch TBExtreme and create a new test suite. - Add test cases for your integration tests, specifying inputs and expected outputs. - Configure test execution settings, including which .C files to test and how to execute them. - Execute the automated tests using TBExtreme.
c. Storing Test Cases as .tcf Files: - In TBExtreme, test cases are typically stored as .tcf (Test Configuration File) files. - Save your test suite and test cases as .tcf files in a suitable directory.