Skip to content

This project is created to generate data for ui-coverage plugin

License

Notifications You must be signed in to change notification settings

JamalZeynalov/ui-coverage-example

Repository files navigation

ui-coverage-example

This project is created to generate data for ui-coverage plugin

Main Parts:

  1. Record used locators during testing (in pages and blocks):
  2. Save all recorded locators after all tests are done. The code is in: conftest.py

How to get .json file with locators:

  1. Run all tests in the project with Pytest
  2. Copy coverage results file: ui_coverage/used_locators_gw0.json

If you run parallely using xdist

  1. Run all tests in the project with Pytest and xdist
  2. Run the following command to merge all coverage results:
    python merge_ui_coverage_files.py
  3. Copy coverage results file: used_locators.json

About

This project is created to generate data for ui-coverage plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages