Skip to content

Conversation

@arichardson
Copy link
Contributor

Allows filtering with pytest -k <filter> and parallel execution with pytest-xdist (pytest -n <jobs>/auto. JUnit xml output is also supported natively.

Not ported all the tests yet (lem/ocaml/interpreter) is missing.

Note: I used this to see how well this can be done with AI. Needed quite a few prompts but most of this was generated by Gemini with a few small manual edits.

See #1526

cwd=tmp_path,
)

# For files using a config file, copy the config file to the temporary directory.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This seems a bit hacky and it might be possible to just run the test with the CWD set to the tests directory so it can find the config json file. I did notice that test/c/config_abstract_type2.sail loads the "wrong" config file, not sure if that is intentional?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think they should all use a config file with the same name as the test, so likely a mistake

@github-actions
Copy link

Test Results

   16 files     36 suites   0s ⏱️
1 004 tests 1 001 ✅  3 💤 0 ❌
4 840 runs  4 798 ✅ 42 💤 0 ❌

Results for commit ea98275.

@Alasdair
Copy link
Collaborator

Alasdair commented Nov 5, 2025

The only reason we use JUnit XML output is because that's what our old Jenkins server used, if there's something that works better with GitHub and supported by pytest, we could just use that instead.

@Timmmm
Copy link
Contributor

Timmmm commented Nov 15, 2025

I think if we stick with Python and are adding third party dependencies we need a pyproject.toml. And seeing as this has type annotations we should add a Pyright check in CI too.

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.

3 participants