watcher-dashboard/HACKING.rst
zhulingjie 3e969179a2 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org counterparts.

Change-Id: Id8f56526b61f3ea85835c73666f97e0e4e7e2ffe
2019-04-28 17:14:49 +08:00

2.3 KiB

Contributing

The code repository is located at OpenStack. Please go there if you want to check it out:

git clone https://github.com/openstack/watcher-dashboard.git

The list of bugs and blueprints is on Launchpad:

https://launchpad.net/watcher-dashboard

We use OpenStack's Gerrit for the code contributions:

https://review.opendev.org/#/q/status:open+project:openstack/watcher-dashboard,n,z

and we follow the OpenStack Gerrit Workflow.

If you're interested in the code, here are some key places to start:

Running tests

There are several ways to run tests for watcher-dashboard.

Using tox:

This is the easiest way to run tests. When run, tox installs dependencies, prepares the virtual python environment, then runs test commands. The gate tests in gerrit usually also use tox to run tests. For available tox environments, see tox.ini.

By running run_tests.sh:

Tests can also be run using the run_tests.sh script, to see available options, run it with the --help option. It handles preparing the virtual environment and executing tests, but in contrast with tox, it does not install all dependencies, e.g. jshint must be installed before running the jshint testcase.

Manual tests:

To manually check watcher-dashboard, it is possible to run a development server for watcher-dashboard by running run_tests.sh --runserver.

To run the server with the settings used by the test environment: run_tests.sh --runserver 0.0.0.0:8000

OpenStack Style Commandments