Remove test_data folder from build?

Right now I have to use a post build script to remove the folder ‘test_data’ (generated from running the tests) from cloud build. There is any any alternative or hidden option within unity cloud build?

Not sure if this would work but anything in ‘Editor\Resources’ will be excluded from the build so you could potentially put the test_data there and not bother deleting it.

I did not explain myself correctly, What I mean is that the folder is put by unity cloud build itself and I see not an option to deactivate it

Ah, sorry - I didn’t realise that’s what you meant. Whereabouts is the test_data folder being created? There are functions to remove assets and you can probably also use standard C# folder delete functionality to remove things before the build too.

Right now the folder appears in the build root folder if you activate the tests in unity cloud-build. I assume then that the only option that I have right now is to delete the folder after the tests run. I hope they add this functionality in the future, I doubt that everyone wants the unit tests report folder inside the zip of the game.

Yeah I’m currently looking at generating those files inside of Editor/Resources instead, just waiting on testing before we can deploy that.

1 Like

Took a while to make it through testing but this just released, let me know if it’s working as you expected.