Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • silly silly
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Anton F.
  • sillysilly
  • Issues
  • #32
Closed
Open
Issue created Apr 23, 2020 by Andrey Zherikov@andreyzherikov

"Couldn't find 'dub_test_root'. Make sure you are running tests with dub test"

Got the error with minimal dub application.

Steps to reproduce:

C:\test>dub init -n
Successfully created an empty project in 'C:\test'.
Package successfully created in .

C:\test>dub test
No source files found in configuration 'library'. Falling back to "dub -b unittest".
Performing "unittest" build using C:\D\dmd2\windows\bin\dmd.exe for x86_64.
test ~master: building configuration "application"...
Linking...
Running .\test.exe
Edit source/app.d to start your project.

C:\test>dub add silly
Adding dependency silly ~>1.0.2

C:\test>dub test
No source files found in configuration 'library'. Falling back to "dub -b unittest".
Performing "unittest" build using C:\D\dmd2\windows\bin\dmd.exe for x86_64.
test ~master: building configuration "application"...
C:\Users\andrey\AppData\Local\dub\packages\silly-1.0.2\silly\silly.d(15,2): Error: static assert:  "Couldn't find 'dub_test_root'. Make sure you are running tests with dub test"
C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.

D tools used:

C:\test>dub --version
DUB version 1.20.0, built on Mar  9 2020

C:\test>dmd --version
DMD32 D Compiler v2.091.0-dirty
Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved written by Walter Bright
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking