Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
49 lines (33 loc) · 1.04 KB

developing.md

File metadata and controls

49 lines (33 loc) · 1.04 KB

Developing Project Mu Pip Environment

Pre-Requisites

  1. Get the code
git clone https://github.com/Microsoft/mu_pip_environment.git
  1. Install development dependencies
pip install --upgrade -r requirements.txt
  1. Uninstall any copy of mu_environment
pip uninstall mu_environment
  1. Install from local source (run command from root of repo)
pip install -e .

Testing

  1. Run a Basic Syntax/Lint Check (using flake8) and resolve any issues
flake8 MuEnvironment

!!! info Newer editors are very helpful in resolving source formatting errors (whitespace, indentation, etc). In VSCode open the py file and use ++alt+shift+f++ to auto format.

  1. Run pytest with coverage data collected
pytest -v --junitxml=test.junit.xml --html=pytest_MuEnvironment_report.html --self-contained-html --cov=MuEnvironment --cov-report html:cov_html --cov-report xml:cov.xml --cov-config .coveragerc
  1. Look at the reports
  • pytest_MuEnvironment_report.html
  • cov_html/index.html