f63308d60f
Add JavaScript unit tests code base |
||
---|---|---|
api_tests | ||
craton_dashboard | ||
tools | ||
.eslintrc | ||
.gitignore | ||
.testr.conf | ||
.travis.yml | ||
AUTHORS | ||
ChangeLog | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
karma.conf.js | ||
manage.py | ||
package.json | ||
requirements.txt | ||
run_test.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
test.txt | ||
tox.ini |
README.rst
Craton UI for Horizon Dashboard
Test
- Python tests: ./run_test.sh
- JS tests:
- npm install (first do ./run_tests.sh to create virtual environment)
- npm run lint for eslint
- npm run test for JS unit tests
Install
From http://docs.openstack.org/developer/horizon/tutorials/plugin.html
- plugin is the location of your plugin
- horizon is the location of horizon
- package is the complete name of your packaged plugin
- Run “cd plugin & python setup.py sdist”
- Run “cp -rv enabled horizon/openstack_dashboard/local/”
- Run “horizon/tools/with_venv.sh pip install dist/package.tar.gz”
- Restart Apache or your Django test server