=
commited on
Commit
·
3a69c90
1
Parent(s):
13d6fb7
updated guidlines
Browse files- CONTRIBUTING.rst +28 -2
CONTRIBUTING.rst
CHANGED
@@ -109,9 +109,35 @@ Before you submit a pull request, check that it meets these guidelines:
|
|
109 |
Tips
|
110 |
----
|
111 |
|
112 |
-
To run a subset of tests::
|
113 |
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
|
117 |
Deploying
|
|
|
109 |
Tips
|
110 |
----
|
111 |
|
|
|
112 |
|
113 |
+
- Install dev requirements
|
114 |
+
|
115 |
+
.. code-block:: console
|
116 |
+
|
117 |
+
$ pip install -r requirements_dev.txt
|
118 |
+
|
119 |
+
- Or just install pytest
|
120 |
+
|
121 |
+
.. code-block:: console
|
122 |
+
|
123 |
+
$ pip install pytest
|
124 |
+
|
125 |
+
|
126 |
+
- you can run tests individually for each translator by passing the prefix **test_** followed by the translator name as an argument to pytest.
|
127 |
+
|
128 |
+
.. code-block:: console
|
129 |
+
|
130 |
+
$ pytest test_google_trans
|
131 |
+
$ pytest test_linguee
|
132 |
+
$ pytest test_mymemory
|
133 |
+
$ pytest test_pons
|
134 |
+
|
135 |
+
- Alternatively, you can run the test suite
|
136 |
+
|
137 |
+
.. code-block:: console
|
138 |
+
|
139 |
+
$ pytest -ra
|
140 |
+
|
141 |
|
142 |
|
143 |
Deploying
|