File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -40,23 +40,18 @@ You can install "pytest-splunk-addon" via `pip`_ from `PyPI`_::
40
40
Developing
41
41
------------
42
42
43
- Note: Must install docker desktop, vscode or pycharm pro optional
43
+ Note: Must install docker desktop.
44
44
45
45
.. code :: bash
46
46
47
47
$ git clone --recurse-submodules -j8 [email protected] :splunk/pytest-splunk-addon.git
48
-
49
- $ # setup python venv must be 3.7
50
- $ /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -m venv .venv
51
-
52
- $ source .venv/bin/activate
53
-
54
48
$ cd pytest-splunk-addon
55
-
56
- $ pip3 install -r requirements.txt
57
-
58
- $ python setup.py develop
59
-
49
+ $ poetry install
50
+ $ ... (change something)
51
+ # run unit tests
52
+ $ poetry run pytest tests/unit
53
+ # run some of the docker-based tests to verify end-to-end behaviour, example:
54
+ $ poetry run pytest -v --splunk-version=8.2 -m docker tests/test_splunk_addon.py::test_splunk_app_requirements_modinput
60
55
61
56
62
57
Usage
@@ -86,9 +81,11 @@ Create a test file in the tests folder
86
81
.. code :: python3
87
82
88
83
from pytest_splunk_addon.standard_lib.addon_basic import Basic
89
- class Test_App(Basic):
90
- def empty_method():
91
- pass
84
+
85
+
86
+ class Test_App(Basic):
87
+ def empty_method():
88
+ pass
92
89
93
90
Create a Dockerfile-splunk file
94
91
You can’t perform that action at this time.
0 commit comments