An open API service indexing awesome lists of open source software.

https://github.com/ffmeyer/testeunitario_trabalho2


https://github.com/ffmeyer/testeunitario_trabalho2

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# ETA

## Setup

```bash
pip install -r requirements.txt
```

## Unittest

```bash
python -m unittest -v
```

## Pytest

```bash
pytest .
```

## Test Coverage

- `coverage` and `pytest-cov` packages are required
- Add `pragma: no cover` to exclude code from coverage report

### With `pytest`

Terminal report:

```bash
pytest --cov-report term-missing --cov .
```

HTML report:

```bash
pytest --cov-report html --cov .
```

### With `unittest`

To generate report:

```bash
python -m coverage run -m unittest
```

To view report in terminal:

```bash
python -m coverage report
```

To view report in HTML:

```bash
python -m coverage html
```