Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsalesdeandrade committed Jun 14, 2024
1 parent 9c3a8d0 commit de7dbbf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Pytest Allure Report Example

This repo contains the sample code for the article - [How To Create Interactive Test Reports with Pytest and Allure](https://pytest-with-eric.com/reporting/pytest-allure-report/)


## Requirements
* Python (3.12)
* Allure Report

## Installation

To install the project, you need to have Poetry installed. If you don't have it installed, you can install it by following the instructions [here](https://python-poetry.org/docs/#installation).

## Usage

To generate the allure reports, you can use the following command:

```bash
$ poetry run pytest --alluredir=allure-results
```

To view the allure reports, you can use the following command:

```bash
$ poetry run allure serve allure-results
```

If you have any questions about the project please raise an Issue on GitHub.
2 changes: 1 addition & 1 deletion text_processor/text_processor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def count_words(text: str) -> int:
def count_words(text: str) -> int | bool:
"""Return the number of words in the given text."""
if not text:
return False
Expand Down

0 comments on commit de7dbbf

Please sign in to comment.