Skip to content

feat: add --log-embedding pytest flag and document custom pytest options - #1702

Merged
dipinknair merged 2 commits into
mainfrom
feat/pytestlog
Jul 27, 2026
Merged

dipinknair merged 2 commits into
mainfrom
feat/pytestlog

Conversation

@dipinknair

@dipinknair dipinknair commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a --log-embedding pytest CLI option that configures the PyMechanical embedding logger before the embedded App is started, and documents all custom pytest flags in the contributor guide

Changes

  • added --log-embedding option to pytest_addoption in conftest.py with choices debug, info, warning, error (default: omitted / no-op)
  • Updated start_embedding_app to call Configuration.configure(level=..., to_stdout=True) when --log-embedding is supplied, before App(...) is initialised
  • Added Custom pytest flags section to developer.rst documenting --ansys-version, --addin-configuration, --log-embedding, and --remote-server-type with usage examples

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Checklist

  • Title follows Conventional Commits (e.g. feat: add modal analysis support)
  • Tests added or updated
  • Documentation updated

@dipinknair
dipinknair requested a review from a team as a code owner July 24, 2026 19:06
@github-actions github-actions Bot added documentation Improvements or additions to documentation enhancement New features or code improvements labels Jul 24, 2026
@codacy-production

codacy-production Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

🟢 Coverage ∅ diff coverage · -0.03% coverage variation

Metric Results
Coverage variation ✅ -0.03% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (686e79e) 3321 2685 80.85%
Head commit (5182596) 3321 (+0) 2684 (-1) 80.82% (-0.03%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1702) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.81%. Comparing base (686e79e) to head (5182596).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1702      +/-   ##
==========================================
- Coverage   80.84%   80.81%   -0.04%     
==========================================
  Files          43       43              
  Lines        3321     3321              
==========================================
- Hits         2685     2684       -1     
- Misses        636      637       +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dipinknair
dipinknair requested a review from RobPasMue July 27, 2026 17:17
@dipinknair
dipinknair merged commit 21d097f into main Jul 27, 2026
99 of 101 checks passed
@dipinknair
dipinknair deleted the feat/pytestlog branch July 27, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New features or code improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants