ansys / ansys/pyfluent

Shared test functions between PyFluent and the Fluent Python Console

Open
#4,877 0 comments 0 reactions 1 assignee Claimed by @Gobot1234 View on GitHub
testing
Dominant language
Python
Stars
497
Forks
77
Avg merge
22h 37m
Merged PRs (30d)
45

Description

Existing code:
1. `pytest --write-fluent-journals` writes out Fluent journal files for each PyFluent unit test. The pytest flag has been implemted in `tests\conftest.py`.
2. `python .ci/fluent_test_runner.py tests` can run those journals with Fluent container as tested within in a local wsl environment. A `.github\workflows\test-fluent-journals.yml` for github run is available, but there were some issues in running it in github.

Planned work:
1. We want to run this on internal Fluent side, so `.ci/fluent_test_runner.py` needs to be rewritten to run with standalone Fluent.
2. Update `pytest --write-fluent-journals` to fix any missing test or fixture.
3. Make the PyFluent unittest functions and the scripts available in ADO runner. PyFluent can possibly be cloned from github in the ADO runner, otherwise we can consider creating an optional package, e.g. `ansys-fluent-core[tests]`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.