mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Update README about WebUI unit tests
Add information how to run tests from command line Related: https://pagure.io/freeipa/issue/7278 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
committed by
Christian Heimes
parent
2dd7741075
commit
905a0abfd6
@@ -1,18 +1,28 @@
|
|||||||
# WebUI Unit Tests
|
# WebUI Unit Tests
|
||||||
|
|
||||||
How to run tests:
|
## Prerequisites
|
||||||
|
|
||||||
1. Run "autoreconf" command in the root of the repository
|
1. Run `./autogen.sh` command in the root of the repository
|
||||||
2. Run "./configure" in the root of the repository
|
2. Run `make -C install/ui/src/libs/` - this step generates loader.js which is necessary for load
|
||||||
3. Go to install/ui/src/libs/ directory
|
|
||||||
4. Run "$ make" - this step generates loader.js which is necessary for load
|
|
||||||
current API version into WebUI. This version is necessary for checking
|
current API version into WebUI. This version is necessary for checking
|
||||||
response of each API call.
|
response of each API call.
|
||||||
5. Go to install/ui/test
|
|
||||||
6. Run "$ firefox index.html"
|
## Running tests:
|
||||||
|
|
||||||
|
### In browser
|
||||||
|
|
||||||
|
1. Go to install/ui/test
|
||||||
|
2. Run `firefox index.html`
|
||||||
|
|
||||||
Only Firefox browser is supported, because Google Chrome does not allow
|
Only Firefox browser is supported, because Google Chrome does not allow
|
||||||
to fetch files using AJAX and file:// protocol.
|
to fetch files using AJAX and file:// protocol.
|
||||||
|
|
||||||
|
### From command line:
|
||||||
|
|
||||||
|
1. Go to `install/ui`
|
||||||
|
2. Run `npm install`, it installs required packages specified
|
||||||
|
in package.json file
|
||||||
|
3. Run `grunt --verbose qunit`
|
||||||
|
|
||||||
For more information about WebUI unit tests please read following:
|
For more information about WebUI unit tests please read following:
|
||||||
https://www.freeipa.org/page/FreeIPAv2:UI_Unit_Tests
|
https://www.freeipa.org/page/FreeIPAv2:UI_Unit_Tests
|
||||||
|
|||||||
Reference in New Issue
Block a user