Datasets Outside tests
Directory
#1302
Unanswered
jpau-besmartee
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I have a use-case where the project I am working on is aiming to have a module-based approach to the architecture where we group all related functionality to a specific resource within a directory under a generic
modules
directory. An example would look like:I know by default Pest will only load datasets within the
tests
and was thinking of ways of bringing them in manually. The solution I came up with was by replicating the logic found inBootFiles.php::bootDatasets
in myPest.php
file like so:I'm manually pulling the php files within the tests directory under each module and then, following the same logic to determine if it's a dataset file, use the TestSuiteLoader to load the file. I realize that this introduces the danger of breaking when things are updated within the Pest package itself but wanted to see if it were possible.
My question is, are there any major dangers to using this implementation by loading the datasets in this fashion?
Beta Was this translation helpful? Give feedback.
All reactions