32
32
33
33
You can do this with `git commit --allow-empty `
34
34
35
- Running Tests
36
- -------------
35
+ Running Tests - Python
36
+ ----------------------
37
37
38
38
You will need `Tox <https://tox.readthedocs.io >`_ installed to run the tests
39
39
against the supported Python versions. If you're using `Pipenv `_ it will be
@@ -52,18 +52,38 @@ Otherwise, to install and run, do:
52
52
$ pip install tox
53
53
$ tox
54
54
55
+ Running Tests - JavaScript
56
+ --------------------------
57
+
58
+ You will need `npm <https://www.npmjs.com >`_ installed to run the JavaScript tests.
59
+ Internally, we use `Grunt <https://gruntjs.com >`_ and `QUnit <https://qunitjs.com >`_ to run the tests.
60
+
61
+ Once ``npm `` is installed, you can install all needed dependencies by running:
62
+
63
+ .. code-block :: bash
64
+
65
+ $ npm install
66
+
67
+ Run the following to execute the tests:
68
+
69
+ .. code-block :: bash
70
+
71
+ $ npm test
72
+
55
73
Releasing a new version
56
74
-----------------------
57
75
58
76
Follow these steps to release a new version of the project:
59
77
60
- 1. Update your local master with the upstream master (``git pull --rebase upstream master ``)
61
- 2. Create a new branch and update ``CHANGES.rst `` with the new version, today's date, and all changes/new features
62
- 3. Commit and push the new branch and then create a new pull request
63
- 4. Wait for tests and reviews and then merge the branch
64
- 5. Once merged, update your local master again (``git pull --rebase upstream master ``)
65
- 6. Tag the release with the new release version (``git tag v<new tag> ``)
66
- 7. Push the tag (``git push upstream --tags ``)
67
- 8. Done. Check `CI <https://github.com/pytest-dev/pytest-html/actions >`_ for release progress.
78
+ 1. Update your local master with the upstream master (``git pull --rebase upstream master ``)
79
+ 2. Create a new branch
80
+ 3. Update ``CHANGES.rst `` with the new version, today's date, and all changes/new features
81
+ 4. Update the ``version `` field in ``package.json `` with the new version
82
+ 5. Commit and push the new branch and then create a new pull request
83
+ 6. Wait for tests and reviews and then merge the branch
84
+ 7. Once merged, update your local master again (``git pull --rebase upstream master ``)
85
+ 8. Tag the release with the new release version (``git tag v<new tag> ``)
86
+ 9. Push the tag (``git push upstream --tags ``)
87
+ 10. Done. Check `CI <https://github.com/pytest-dev/pytest-html/actions >`_ for release progress.
68
88
69
89
.. _Pipenv : https://pipenv.pypa.io/en/latest/
0 commit comments