Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
silly
silly
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Anton Fediushin
  • sillysilly
  • Issues
  • #12

Closed
Open
Opened Aug 16, 2018 by Ali Akhtarzada@aliak00
  • Report abuse
  • New issue
Report abuse New issue

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

Hey, I'm trying to check this out, and I get this right now. Not sure why:

> Executing task: dub test <

Non-selected package unit-threaded is available with version 0.7.49.
Use "dub upgrade" to perform those changes.
Executable configuration "unittest" of package optional defines no main source file, this may cause certain build modes to fail. Add an explicit "mainSourceFile" to the package description to fix this.
Running custom 'unittest' configuration.
Performing "unittest" build using dmd for x86_64.
bolts 0.7.1: target for configuration "library" is up to date.
optional 0.4.1+commit.59.gff28b9f: building configuration "unittest"...
../../.dub/packages/silly-0.0.2/silly/silly.d(6,2): Error: static assert:  "Couldn't find 'dub_test_root'. Make sure you are running tests with dub test"
dmd failed with exit code 1.

I do have a custom unittest configuration because I have a separate tests folder as well as inline unittests. So I had this:

configurations": [
        {
            "name": "unittest",
            "importPaths": [
                "./tests"
            ],
            "sourcePaths": [
                "./tests"
            ],
            "targetType": "executable",
            "dependencies": {
                "silly": "~>0.0.2"
            }
        },

And just to check, I tried putting my entire "tests" folder under my source folder to match dub requirements, then it build but there's a

dmd failed with exit code -11.
The terminal process terminated with exit code: 2

Only if I have silly as a dep though.

Cheers!

Related issues

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
3
Labels
bug confirmed external
Assign labels
  • View project labels
Reference: AntonMeep/silly#12