Add option to extract_examples
to allow changing the directory the files are placed in.
#273
Labels
extract_examples
to allow changing the directory the files are placed in.
#273
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
(orprefix
ortarget_dir
, or ...) to theextract_examples
record. If present, then we changetst
to something else... Some options:subdir
could be relative to the package directory, for maximal flexibility: so it would default totst
, but you could also usetst/generated
or evensome/other/path
subdir
could be relative to thetst
directory; so it would default to be empty, and we'd prefix it withtst/
It should be rather easy to implement this, too. The hardest part as usual is naming the option and deciding on its behavior ;-).
The text was updated successfully, but these errors were encountered: