- Download test data:
git clone https://github.com/openvinotoolkit/testdata
- Run
gradle
to build a package and run tests:
gradle build -Prun_tests -DMODELS_PATH=/path/to/testdata -Ddevice=CPU --info
This guide describes the steps to run tests for this module using IntelliJ IDEA. Before starting, ensure that you have IntelliJ IDEA installed and the project has been imported to IntelliJ IDEA.
Clone the following GitHub repository that contains the models needed to run the tests:
git clone https://github.com/openvinotoolkit/testdata
-
Open the Edit Configurations dialog box from the IntelliJ IDEA toolbar, then select Add New Configuration > Gradle configuration from the dropdown menu
-
In the Name field, choose an appropriate name for the configuration, such as "AllTests", and enter the following command in the Tasks and arguments input box.
test -Prun_tests -DMODELS_PATH=<path-to-testdata> -Ddevice=CPU
-
Click on the Edit Environment Variables button beside the Environment Variables input box and add the following environment variable:
INTEL_OPENVINO_DIR=<path-to-openvino_install>
-
Select OK to save the configuration
Once the gradle configuration is created, run the tests using the following steps:
- Select the Gradle configuration that was created in the Run/Debug configurations dropdown menu
- Click on the Run button to run the tests
- To run the tests in debug mode, click on the Debug button