Create test workingDir if it doesn't exist

Now test task fails if i specify not existing folder.
Is it possible to configure task to create working directory if it doesn’t exist?