On Thu, 14 Jul 2016 21:45:03 GMT, Steven Schveighoffer wrote:

I am working on a vibe.d project, and I was adding some unittests.

I'm allowing vibe.d to define its own main function for the project.

When running dub test, I get the error: only one main allowed
dmd failed with exit code 1.

How do I fix dub test so it doesn't create its own main function? Shouldn't this be the default config for vibe.d programs?

I have the same issue. The workaround is to move versions "VibeDefaultMain" to an application configuration:

configuration "application" {
  targetType "executable"
  versions "VibeDefaultMain"
}

For more information see this discussion: https://github.com/rejectedsoftware/vibe.d/pull/1417