-
Notifications
You must be signed in to change notification settings - Fork 3
Setup for web app
This page lists steps required to make LAVA work with so called simple web app - meaning web application without any framework,consisting only of html and javascript files.
- Do the initial setup: https://github.com/msporna/LAVA-test-coverage/wiki/Initial-setup or skip if done already
- open src/config.json and update required fields:
source_root_absolute_path: [absolute path to folder containing .html and .js files]
web_routes_available: [list routes that can be visited by end user]
INJECT_MODE: "web"
All paths must be absolute. For config details go to config.json-explained page.
- start LAVA server from /server by executing the following command manually:
python instrument_server.py
or if you are on Windows you can simply run:
run_api_windows.bat
-
go to /client and from your terminal run
python instrument_client.py
and pass config.json path as command line argument so the command becomes:python instrument_client.py config.json
-
the process of injecting probes will start
-
check your project's files, should be appended by instrumentation code
-
your website's root folder will now have instrument.js file and index.html will be referencing it (done automatically)
-
serve the website on a web server you like - it's ready for testing
related example:https://github.com/msporna/LAVA-test-coverage/tree/master/examples/web_demo
- How it works
- Initial setup
- Setup for Unity game
- Setup for Android app
- Setup for javascript
- Setup for Angular app
- GETTING THE COVERAGE
- Getting coverage for build (multiple coverage sessions consolidated
- Setup modules
- Managing tags
- Managing users
- Create and End test session automatically (CI)
- Instrumenting code on every iteration
- Coverage report explained
- Accessing latest report
- How to interpret covered lines report
- Config explained
- Settings
- Send custom values along with line statistics
- Examples
- Extended-CI-use-case
- Troubleshooting