You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-28Lines changed: 36 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,47 +6,53 @@ Use it and adapt it as you wish, and have fun with Dataiku!
6
6
7
7
8
8
# How to test your plugin
9
-
Development cycles should be supported with unit and integration tests.
10
-
To operate integration tests you will need the help of the `dataiku-plugin-tests-utils` pacakge in order
11
-
to automate their executions while targeting DSS instances that should be dedicated to them.
12
9
13
-
`dataiku-plugin-tests-utils` will be installed as a `pytest plugin`. So only install that package inside an environment dédicated for integration tests, otherwise `pytest` will complain about unused fixtures inside your unit tests.
10
+
We recommend supporting your development cycle with unit and integration tests.
11
+
To operate integration tests, you will need the help of the `dataiku-plugin-tests-utils` package to automate their executions while targeting dedicated DSS instances.
12
+
13
+
`dataiku-plugin-tests-utils` will be installed as a `pytest plugin`. Install that package inside an environment dedicated to integration tests; otherwise, `pytest` will complain about unused fixtures inside your unit tests.
14
14
15
15
# How to install in your plugin
16
-
To install the `dataiku-plugin-tests-utils` package for your plugins use the
17
-
following line depending on your prefered way to managed packages and situation
18
-
you are in.
19
-
## Using Requierement.txt
20
-
### Development cycle
16
+
17
+
To install the `dataiku-plugin-tests-utils` package for your plugins, use the following line depending on your preferred way to managed packages.
-`user_dss_clients`: representing the dss client corresponding to the desired user.
110
+
-`user_dss_clients`: representing the DSS client corresponding to the desired user.
104
111
-`PROJECT_KEY`: The project that holds the test scenarios
105
112
-`scenario_id`: The test scenario to run
106
-
-`user`: Specify the user to run the scenario with. It is an optionnal argument, by default it equalt to "default".
113
+
-`user`: Specify the user to run the scenario with. It is an optional argument. By default, it is "default".
107
114
108
115
## How to generate a graphical report with Allure for integration tests
109
116
110
-
For each plugin, a folder named `allure_report` should exists inside the `test` folder, reports will be generated inside that folder.
111
-
To generate the graphical report, you must have allure installed on your system as described [on their installation guide](https://docs.qameta.io/allure/#_manual_installation). Once the installation is done, run the following :
117
+
For each plugin, a folder named `allure_report` should exist inside the `test` folder; reports will be generated inside that folder.
118
+
To generate the graphical report, you must have Allure installed on your system as described [on their installation guide](https://docs.qameta.io/allure/#_manual_installation). Once the installation is done, run the following :
0 commit comments