precice / fenicsx-adapter

Experimental preCICE-adapter for the open source computing platform FEniCSx
GNU Lesser General Public License v3.0
10 stars 4 forks source link

Testing via `python3 setup.py test` fails #16

Closed PhilipHildebrand closed 1 year ago

PhilipHildebrand commented 1 year ago

Executing the tests/test suites individually does work, but using python3 setup.py test results in this error:

ERROR: XML parser was unable to open configuration file "/home/philip/Schreibtisch/fenicsx-adapter fork/fenicsx-adapter/tests/dummy.xml"
BenjaminRodenberg commented 1 year ago

What's interesting: Our tests in the CI Pipeline seem to work (see https://github.com/precice/fenicsx-adapter/actions/runs/3696371322/jobs/6259975439). Did you try to run the commands that our CI pipeline uses?

https://github.com/precice/fenicsx-adapter/blob/5d70f0242b356a9509655f1d0065e2a84291587e/.github/workflows/build-and-test.yml#L41-L44

Another thing that would be interesting for further debugging is to run python3 setup.py test in the CI pipeline.

BenjaminRodenberg commented 1 year ago

Just checked running python3 setup.py test on my local system using 9e6510aad549a59cf3e57d5d94173e0bbd647638 and everything worked as expected. Since this is also not reproducible with the CI pipeline, I will close this issue. @PhilipHildebrand: For your local setup you have a work-around, so there is no need for further investigating this issue, correct?

PhilipHildebrand commented 1 year ago

What's interesting: Our tests in the CI Pipeline seem to work (see https://github.com/precice/fenicsx-adapter/actions/runs/3696371322/jobs/6259975439). Did you try to run the commands that our CI pipeline uses?

https://github.com/precice/fenicsx-adapter/blob/5d70f0242b356a9509655f1d0065e2a84291587e/.github/workflows/build-and-test.yml#L41-L44

Another thing that would be interesting for further debugging is to run python3 setup.py test in the CI pipeline.

Running these commands does work, so I don't think we have to pursue this further.