Skip to content
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

Add option to extract_examples to allow changing the directory the files are placed in. #273

Open
fingolfin opened this issue Dec 20, 2023 · 0 comments

Comments

@fingolfin
Copy link
Member

This was suggested by @FriedrichRober : instead of putting the generated .tst files directly into .tst, it would be nice if one could also put them into a subdirectory; that way, one can separate generated files from manually handled files (which e.g. helps to prevent one from editing the generated test files manually).

One way to do this would be to add an entry subdir (or prefix or target_dir, or ...) to the extract_examples record. If present, then we change tst to something else... Some options:

  1. subdir could be relative to the package directory, for maximal flexibility: so it would default to tst, but you could also use tst/generated or even some/other/path
  2. subdir could be relative to the tst directory; so it would default to be empty, and we'd prefix it with tst/

It should be rather easy to implement this, too. The hardest part as usual is naming the option and deciding on its behavior ;-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant