-
Notifications
You must be signed in to change notification settings - Fork 139
ci: add InProcess testing module #4185
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a testing framework for the MAPDL InProcess interface, which allows testing Python code execution within MAPDL. The framework provides a test runner that executes MAPDL commands in batch mode and validates Python command functionality.
- Introduces
MapdlInProcessRunner
class for executing MAPDL commands with Python integration - Adds pytest fixture for InProcess testing with version and environment checks
- Provides basic test cases to verify Python command execution within MAPDL
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4185 +/- ##
==========================================
+ Coverage 91.39% 91.41% +0.02%
==========================================
Files 193 193
Lines 15715 15720 +5
==========================================
+ Hits 14362 14370 +8
+ Misses 1353 1350 -3 🚀 New features to boost your workflow:
|
@valallansys this should gives you a nice headstart for InProcess testing. It should be noticed that you should set the env variable |
Co-authored-by: Copilot <[email protected]>
a0411f6
to
c6445a3
Compare
Tests are failing on windows (locally). It seems to be an issue with the arguments given to subprocess.run. |
…function to avoid running the function in MAPDL < 25.2
MacOS does not support MAPDL, so we do not have to test it. What was the issue? I saw your last commit and I dont know if the error was comming from the MAPDL env var or from the additional switches... |
for more information, see https://pre-commit.ci
5055eda
to
9b326f0
Compare
Deleting the additional switches was a mistake, the error came from the env argument. But we didn't need it as we set the en var in the init |
@valallansys how are you doing with this? do you need any support? |
Description
Adding framework for testing MAPDL InProcess interface
Issue linked
NA
Checklist
draft
if it is not ready to be reviewed yet.feat: adding new MAPDL command
)