Skip to content

Low Prio/Nice to have: add the possibility of passing xtc module paths to files instead of module names to the runner.x parallel test runner, and maybe other places needed for XUnit called through build interaction. #172

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

Open
lagergren opened this issue Feb 28, 2024 · 0 comments
Assignees

Comments

@lagergren
Copy link
Contributor

The "runner.x", i.e. the parallel XTC test runner module takes a list of module names only, as arguments to run in parallel. If it could be modified to support paths to actual xtc module files, instead of their names, we could very nicely generate calls to the parallel test tasks by just passing the included source set outputs instead of module names, that run the risk of including or excluding some module names that are no longer present in the test suite or the source set. It also shows that we can do something powerful with the build system.

This is not a high priority report, or a bug or anything, but it's little "nice to have" feature request that can be done wherever. I suspect that its ramifications are wider and more generic than just modifying a test harness class, that may be replaced with e.g. the XUnit framework later. I see several situations when wanting to compute which modules to process / launch / compile would benefit from being able to be passed as the paths to their modules. It is an operation that would likely be re-used quite a lot for things like unit- and integration test frameworks. Especially, as the build system has no knowledge of what module name a generated xtc file contains. I'm sure that info can be grabbed by calling methods in Javatools, but it's probably not a good idea to weaken the strict abstraction barrier between build and javatools execution.

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

No branches or pull requests

4 participants