toaster.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/8] Toaster: Update toaster-requirements.txt to add pytest and some plugin's
@ 2023-11-09 15:55 Alassane Yattara
  2023-11-09 15:55 ` [PATCH v3 2/8] Toaster: Update orm.models to catch error ProcessLookupError Alassane Yattara
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Alassane Yattara @ 2023-11-09 15:55 UTC (permalink / raw)
  To: toaster; +Cc: Alassane Yattara

The pytest framework makes it easy to write small, readable tests, and can scale
to support complex functional testing for applications and libraries.
- Pytest-html is a plugin for pytest that generates a HTML report for test results.
- Pytest-django allows us to test Django project/applications with the pytest testing tool.
- Pytest-env is a pytest plugin that enables us to set environment variables in a pytest.ini or pyproject.toml file
- Pytest-metadata is a plugin for pytest that provides access to test session metadata, required by pytest-html plugin
to provides metadata information in the HTML report like below:

Python 3.10.12
Platform Linux-6.2.0-35-generic-x86_64-with-glibc2.35
Packages:
    - pytest: 7.4.2
    - pluggy: 1.3.0
Plugins	:
    - django: 4.5.2
    - metadata: 3.0.0
    - order: 1.1.0
    - html: 4.0.2
    - env: 1.1.0

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
---
 toaster-requirements.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/toaster-requirements.txt b/toaster-requirements.txt
index d8e48b7f..19bf6fd2 100644
--- a/toaster-requirements.txt
+++ b/toaster-requirements.txt
@@ -2,3 +2,8 @@ Django>4.2,<4.3
 beautifulsoup4>=4.4.0
 pytz
 django-log-viewer==1.1.7
+pytest==7.4.2
+pytest-django==4.5.2
+pytest-env==1.1.0
+pytest-html==4.0.2
+pytest-metadata==3.0.0
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-11-09 16:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-09 15:55 [PATCH v3 1/8] Toaster: Update toaster-requirements.txt to add pytest and some plugin's Alassane Yattara
2023-11-09 15:55 ` [PATCH v3 2/8] Toaster: Update orm.models to catch error ProcessLookupError Alassane Yattara
2023-11-09 15:55 ` [PATCH v3 3/8] Toaster: Bug-fix pytest and Failed: Database access not allowed Alassane Yattara
2023-11-09 15:55 ` [PATCH v3 4/8] Toaster: fixed pytest error: Database access not allowed, use the "django_db" Alassane Yattara
2023-11-09 15:55 ` [PATCH v3 5/8] Toaster: Bug-fix django.db.utils.IntegrityError: Problem installing fixture Alassane Yattara
2023-11-09 15:55 ` [PATCH v3 6/8] Toaster: Move toaster tests requirements in bitbake/lib/toaster/toaster-tests-requirements Alassane Yattara
2023-11-09 16:29   ` [Toaster] " Richard Purdie
2023-11-09 15:55 ` [PATCH v3 7/8] Toaster: fixed: Tests fail when executed one after the other out of sequence Alassane Yattara
2023-11-09 15:55 ` [PATCH v3 8/8] Toaster: Added pytest.ini file Alassane Yattara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).