How can I unit test on a site without the "test_" site name prefix?

I seem to remember seeing someone show unit testing on a site that was not named with “test_” as a prefix to the name of the site.

Am I mistaken or is there a way to do it?

Are you facing some issue while doing without the prefix?

Try this command:

bench --site localhost set-config allow_tests true

I could run tests on site called localhost

1 Like

Well…
I read the docs years ago, and learned it can’t be done.
I read the docs again recently, and learned it still can’t be done.

Fabulous!

Thank you, yet again, for all the help you have given me. I do appreciate it very much.

1 Like