Closed shewer closed 2 years ago
If I get it correctly, you want to create a kind of restricted environment / sandbox, where you would run your luaunit tests ?
Did you try to run it already ? The only problem I could see is how luaunit discovers tests. Normally, it discovers them from the global namespace. If that does not work, it is possible to run an explicit test function using something like:
runSuiteByInstances( { { 'test_abc', test_abc } } )
thank you a lot, The question has been resolved
I want to test sub env for example as below. thk,.