Skip to content

Commit 9e58248

Browse files
committed
update
Signed-off-by: pranjalg1331 <[email protected]>
1 parent 5d8c990 commit 9e58248

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/IntelOwl/contribute.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,11 @@ Follow these guides to understand how to start to contribute to them while devel
661661

662662
## How to test the application
663663

664-
IntelOwl makes use of the django testing framework and the `unittest` library for unit testing of the API endpoints and End-to-End testing of the analyzers and connectors.
664+
IntelOwl makes use of the django testing framework and the `unittest` library for unit testing of the API endpoints and End-to-End testing of the analyzers and connectors.
665665

666666
### Configuration
667667

668-
- In the encrypted folder `tests/test_files.zip` (password: "intelowl") there are some files that you can use for testing purposes.
668+
- In the encrypted folder `tests/test_files.zip` (password: "intelowl") there are some files that you can use for testing purposes. The async_tests/ dir has mainly transactional test cases as they are run separately from other unit tests.
669669

670670
- With the following environment variables you can customize your tests:
671671

@@ -711,6 +711,17 @@ To test a plugin in real environment, i.e. without mocked data, we suggest that
711711
Meaning that you have your plugin configured, you have selected a correct observable/file to analyze,
712712
and the final report shown in the GUI of IntelOwl is exactly what you wanted.
713713

714+
### Running Tests for a Specific Analyzer
715+
716+
To test a particular analyzer, locate its corresponding unittest file inside: tests/api_app/analyzers_manager/unit_tests/[observable_analyzers / file_analyzers]
717+
718+
719+
Once you’ve identified the test file, you can run it individually with:
720+
721+
```bash
722+
docker exec -ti intelowl_uwsgi python manage.py test tests.api_app.analyzers_manager.unit_tests.observable_analyzers.<test_file>
723+
```
724+
714725
##### Run tests available in a particular file
715726

716727
Examples:

0 commit comments

Comments
 (0)