Skip to main content

HiL Self Test Package

Project description

Testing Framework

Framework to test embedded systems

Clone repository

cd <path-to-directory>
git clone git@gitlab.com:pass-testing-solutions/hil-test-framework.git
cd hil-test-framework/
git pull origin main
git checkout -b <your-new-branch>  # Please follow the branch naming convention as mentioned in the coding guidelines

Virtual environment on MacOS

1. Virtualenvwrapper

You can install virtualenv and virtualenvwrapper with:

pip3 install virtualenv
pip3 install virtualenvwrapper
mkdir ~/.virtualenvs
# Might need to query where the virtualenv and virtualenvwrapper.sh are
which virtualenv
which virtualenvwrapper.sh
which python3

Add these lines in the ~/.zshrc file

# Setting PATH for Python 3 installed by brew
export PATH=<path-to-your-python3>:$PATH

# Configuration for virtualenv
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=<path-to-your-python3>
export VIRTUALENVWRAPPER_VIRTUALENV=<path-to-your-virtualenv>
source <path-to-your-virtualenvwrapper.sh>

source $ZSH/oh-my-zsh.sh

Make sure to save these changes in your file and close your terminal for them to take effect. Now you can create a virtual environment by simply typing:

mkvirtualenv <name-of-your-virtual-env>
cd <your-git-repository>
workon <name-of-your-virtual-env>
deactivate <name-of-your-virtual-env>

To add the correct interpreter for your repository on PyCharm:

- PyCharm IDE > Preferences > Project > Python Interpreter
- Select the 'Add' button for interpreters
- Choose the 'Existing environments' in 'Virtualenv'
- Add the python3 file from /bin/ of your venv folder
E.g. - .virtualenvs/demo_repo_venv/bin/python3

After setting up the venv for the repo please install all the requirements and allow some time for the IDE to do indexing. If your repository has a requirements.txt:

pip3 install -r requirements.txt

2. Pipenv

Install pipenv

pip3 install pipenv 
# or
brew install pipenv

pipenv shell         # will create a virtualenv for the project
pipenv install       # will install dependencies for the repo from the Pipfile and Pipfile.lock

# Install any further packages in this environment as

pipenv install rich  # rich is a python library to nicely print on terminal

Your pipenv environment will be in the ~./virtualenvs folder. Make sure to add the interpreter on your IDE if not automatically added by navigating to the virtualenv folder for your repo and selecting the correct python3 file from /bin/.


Maintainers

Maintainers: @julianpass and @shuparnadeb_pts

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hil-test-framework-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hil_test_framework-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file hil-test-framework-0.0.1.tar.gz.

File metadata

  • Download URL: hil-test-framework-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for hil-test-framework-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8ae60d1b7e964fc56de2a26d8b6933c4453bd9ede153dc22079568811592ba29
MD5 b771b89e3686c4e03e5e2bc3d4230a3f
BLAKE2b-256 b9bb9a7ad37a08916eee8a42f3fcce13b3c9b536373ab17c32387e259f96ee9a

See more details on using hashes here.

File details

Details for the file hil_test_framework-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hil_test_framework-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03e23a702424deb64d75b7cb46e630388a7d1e8c8d92ee5c2b05cf4c2df1a5e7
MD5 382fc8756a98b27cadff05b253c4c009
BLAKE2b-256 0a1f78ed052e8dc19edc11344273525cfb1fccfc13f6a06b4411552da8ade0be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page