Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a more comprehensive printing in pytest #2920

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Mar 20, 2024

As the title.

It am added some printing related to env vars:

------------------------------------------------------------Testing variables-------------------------------------------------------------
Session dependent: ON_CI (False), TESTING_MINIMAL (False), SUPPORT_PLOTTING (True)
OS dependent: ON_LINUX (False), ON_UBUNTU (False), ON_WINDOWS (False), ON_MACOS )(True)
MAPDL dependent: ON_LOCAL (False), ON_STUDENT (False), HAS_GRPC (True), HAS_DPF (True), IS_SMP (True)
----------------------------------------------------------Environment variables-----------------------------------------------------------
PYMAPDL_START_INSTANCE ('False'), PYMAPDL_PORT ('50092'), PYMAPDL_DB_PORT ('50095'), DPF_PORT ('50056'), DPF_START_SERVER ('false'), 
-----------------------------------------------------------Pytest configuration-----------------------------------------------------------

This is how it looks like:

$ pytest
========================================================== test session starts ===========================================================
platform darwin -- Python 3.10.13, pytest-8.0.0, pluggy-1.3.0
------------------------------------------------------------Testing variables-------------------------------------------------------------
Session dependent: ON_CI (False), TESTING_MINIMAL (False), SUPPORT_PLOTTING (True)
OS dependent: ON_LINUX (False), ON_UBUNTU (False), ON_WINDOWS (False), ON_MACOS )(True)
MAPDL dependent: ON_LOCAL (False), ON_STUDENT (False), HAS_GRPC (True), HAS_DPF (True), IS_SMP (True)
----------------------------------------------------------Environment variables-----------------------------------------------------------
PYMAPDL_START_INSTANCE ('False'), PYMAPDL_PORT ('50092'), PYMAPDL_DB_PORT ('50095'), DPF_PORT ('50056'), DPF_START_SERVER ('false'), 
-----------------------------------------------------------Pytest configuration-----------------------------------------------------------
rootdir: /Users/german.ayuso/pymapdl
configfile: pyproject.toml
testpaths: tests
plugins: sphinx-0.6.0, timeout-2.2.0, cov-4.1.0, rerunfailures-13.0, anyio-4.1.0, pytest_pyvista-0.1.9
collected 1695 items          

@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@wiz-inc-572fc38784
Copy link
Contributor

wiz-inc-572fc38784 bot commented Mar 20, 2024

Wiz Scan Summary

IaC Misconfigurations 0C 0H 0M 0L 0I
Vulnerabilities 0C 0H 0M 0L 0I
Sensitive Data 0C 0H 0M 0L 0I
Total 0C 0H 0M 0L 0I
Secrets 0🔑

@germa89 germa89 self-assigned this Mar 20, 2024
@germa89 germa89 requested a review from clatapie March 20, 2024 13:19
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.69%. Comparing base (ba6d8fe) to head (033bac1).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2920      +/-   ##
==========================================
- Coverage   86.59%   84.69%   -1.90%     
==========================================
  Files          48       48              
  Lines        9449     9461      +12     
==========================================
- Hits         8182     8013     -169     
- Misses       1267     1448     +181     

Copy link
Contributor

@clatapie clatapie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@germa89 germa89 merged commit 3f16bf6 into main Mar 21, 2024
33 checks passed
@germa89 germa89 deleted the maint/adding-env-var-prints-to-pytest-header branch March 21, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants