Skip to content
Snippets Groups Projects
Commit 42b6c289 authored by Leštáková, Michaela's avatar Leštáková, Michaela
Browse files

Update README.md

parent 74719211
No related branches found
No related tags found
No related merge requests found
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
## Clone Repo ## Clone Repo
Navigate to the folder of your choice and clone this repository using HTTPS Navigate to the folder of your choice and clone this repository using HTTPS
```console ```bash
$ git clone https://git.rwth-aachen.de/fst-tuda/projects/rdm/unit-testing-workshop.git git clone https://git.rwth-aachen.de/fst-tuda/projects/rdm/unit-testing-workshop.git
$ cd unit-testing-workshop cd unit-testing-workshop
``` ```
or using SSH: or using SSH:
```console ```bash
$ git clone git@git.rwth-aachen.de:fst-tuda/projects/rdm/unit-testing-workshop.git git clone git@git.rwth-aachen.de:fst-tuda/projects/rdm/unit-testing-workshop.git
$ cd unit-testing-workshop cd unit-testing-workshop
``` ```
## Setting up virtual environment (venv) ## Setting up virtual environment (venv)
...@@ -20,48 +20,54 @@ In order to use the same version of python and other packages, we will set up a ...@@ -20,48 +20,54 @@ In order to use the same version of python and other packages, we will set up a
### Create the virtual environment called `venv` ### Create the virtual environment called `venv`
Windows: Windows:
```console ```bash
py -m venv venv py -m venv venv
``` ```
(By problems try `C:\> py -m venv venv`) (By problems try `C:\> py -m venv venv`)
Mac: Mac:
```console ```bash
$ python3 -m venv venv python3 -m venv venv
``` ```
### Activate the virtual environment venv ### Activate the virtual environment venv
Windows: Windows:
```console ```bash
venv\Scripts\activate venv\Scripts\activate
``` ```
(By problems try `C:\> venv\Scripts\activate`) (By problems try `C:\> venv\Scripts\activate`)
Mac: Mac:
```console ```bash
$ source venv/bin/activate source venv/bin/activate
``` ```
### Upgrade packages in venv ### Upgrade packages in venv
```console ```bash
$ pip install -U pip setuptools pip install -U pip setuptools
``` ```
If you get an error that looks like this:
```
ERROR: Could not install packages due to an OSError: [WinError 5] Zugriff verweigert: 'C:\\Users\\Lestakova\\AppData\\Local\\Temp\\pip-uninstall-f8cwia31\\pip.exe'mp\\pip-uninstall-f8cwia31\\pip.exe'
Check the permissions.
```
ignore it.
### Install dependencies from requirements.txt ### Install dependencies from requirements.txt
```console ```bash
$ pip install -r requirements.txt pip install -r requirements.txt
``` ```
With this step, the setup is complete. With this step, the setup is complete.
## Running tests ## Running tests
```console ```bash
$ pytest pytest
``` ```
## Generate test coverage ## Generate test coverage
```console ```bash
$ pytest --cov=math_operations tests/ --cov-report=html --cov-branch pytest --cov=math_operations tests/ --cov-report=html --cov-branch
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment