Skip to content

Pytest integrated#3331

Open
tomc271 wants to merge 203 commits into
nextfrom
pytest-integrated
Open

Pytest integrated#3331
tomc271 wants to merge 203 commits into
nextfrom
pytest-integrated

Conversation

@tomc271

@tomc271 tomc271 commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread tests/run_integrated_tests.sh Outdated
Comment thread tests/run_integrated_tests.sh Outdated
Comment thread pyproject.toml
Comment thread CMakeLists.txt Outdated
Comment thread .ci_with_cmake.sh
Comment thread tests/integrated/test-boutpp/slicing/test_slicing.py Outdated
Comment thread tests/integrated/test-boutpp/slicing/test_slicing.py Outdated
Comment thread tests/integrated/test-boutpp/slicing/test_slicing.py Outdated
Comment thread tests/integrated/test-command-args/test_command_args.py Outdated
matching either to a file named `test_foo.py`.
Native configuration is x86_64-pc-linux-gnu

		===  tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.

		===  Summary === to  in CMakeLists.txt
so that the `input` directory is found.
so that the `test` directory is found.
Fails due to missing file `grid.fci.nc`.
Change directory to exe location prior to attempting to run it.
Change directory to exe location prior to attempting to run it.
Change directory to exe location prior to attempting to run it.
@tomc271 tomc271 force-pushed the pytest-integrated branch from 303d76c to b6b4e1c Compare May 15, 2026 15:24
@tomc271 tomc271 force-pushed the pytest-integrated branch from 9cf1c95 to 3e91b3a Compare June 11, 2026 08:52
@tomc271 tomc271 force-pushed the pytest-integrated branch from 3e91b3a to 7f920ac Compare June 11, 2026 12:48

@dschwoerer dschwoerer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems one of the MMS tests is missing. That certainly needs fixing.

I find it also increadibly hard to review, as in some case the rename from runtest to test_* is not rendered correctly on github. In some cases this seems to be done such that git itself is not aware of the the rename, e.g. test-fci-mpi/runtest.

This makes it even harder to figure out what was changed, as you clearly did not write the whole test new.

I have reviewed test-fci-mpi/runtest more carefully, and it is doing only part what is in next. It is skipping the iteration over the different test cases:
https://github.com/boutproject/BOUT-dev/blob/next/tests/integrated/test-fci-mpi/runtest#L49

Also, it would only output the errors after the assert:

assert success, "\nSome tests failed:"

So this is never printed.

# Requires: netcdf
# Requires: not metric_3d
# Cores: 4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I doubt the current test system still parses and process them, so the can be removed?

@dschwoerer

Copy link
Copy Markdown
Contributor

I forgot - the new pytest is much faster, which is nice, but I am wondering this comes from skipping tests.

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.

4 participants