How do you handle creating different configurations for tests?
Current tests require creating a certain number of users with different preconditions. Practically every test creates a different set of users. I don’t want to unify everything into one test, because then it’s difficult to track what exactly failed.
Right now, I just created a file called playersSetup.config.ts where I simply create a conditional array with players in the approximate format
data driven testing - basically where you run the same tests , but with different data sets. Good practice, never lets your data go stale. Look into generating data artificially with adverserial (naughty) data. Generating naughty data is a security test in some cases. At some point it will scale and you will have to change how to group or trigger tests, but don’t let that stop you experimenting, expanding and learning.
What you’re doing works, but a cleaner approach is to use test data builders or factory functions instead of one large conditional config file. Create a base player object and small helper functions like createDefaultPlayer() or createPlayer(overrides) where each test only overrides the fields it needs. This keeps test setup clearer, avoids a large shared config, and makes it easier to see exactly what conditions each test is creating.