Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several tests fail when executing "dub test" #14

Open
eduardogarre opened this issue Jun 27, 2018 · 0 comments
Open

Several tests fail when executing "dub test" #14

eduardogarre opened this issue Jun 27, 2018 · 0 comments

Comments

@eduardogarre
Copy link

eduardogarre commented Jun 27, 2018

Here is the console output:

PS C:\Users\XXXX\Documents\projects\docopt.d> dub test
Generating test runner configuration '__test__library__' for 'library' (library).
Performing "unittest" build using dmd for x86.
docopt 0.6.1-b.6: building configuration "__test__library__"...
Linking...
Running .\__test__library__.exe
26 failed
usage: prog [options]

options:
    -a        Add
    -r        Remote
    -m <msg>  Message



27 failed
usage: prog [options]

options:
    -a        Add
    -r        Remote
    -m <msg>  Message



28 failed
usage: prog [options]

options:
    -a        Add
    -r        Remote
    -m <msg>  Message



33 failed
usage: prog [-a -r -m <msg>]

options:
 -a        Add
 -r        Remote
 -m <msg>  Message



34 failed
usage: prog [-armmsg]

options: -a        Add
         -r        Remote
         -m <msg>  Message



103 failed
Naval Fate.

Usage:
  prog ship new <name>...
  prog ship [<name>] move <x> <y> [--speed=<kn>]
  prog ship shoot <x> <y>
  prog mine (set|remove) <x> <y> [--moored|--drifting]
  prog -h | --help
  prog --version

Options:
  -h --help     Show this screen.
  --version     Show version.
  --speed=<kn>  Speed in knots [default: 10].
  --moored      Mored (anchored) mine.
  --drifting    Drifting mine.



expect: {"-q":false,"-v":false,"A":"arg"}
result: {"-q":false,"A":"arg"}
133 failed
Usage: prog [options] A
Options:
    -q  Be quiet
    -v  Be verbose.



134 failed
Usage: prog [options] A
Options:
    -q  Be quiet
    -v  Be verbose.



expect: {"-q":true,"-v":false,"A":"arg"}
result: {"-q":true,"A":"arg"}
135 failed
Usage: prog [options] A
Options:
    -q  Be quiet
    -v  Be verbose.



expect: {"-a":true,"-m":null}
result: {"-a":true}
140 failed
usage: prog [options]
options:
 -a        Add
 -m <msg>  Message



expect: {"--bar":false,"--foo":true}
result: {"--foo":true}
172 failed
Usage:
 prog --foo
 prog --bar

NOT PART OF SECTION

expect: {"--bar":false,"--foo":true}
result: {"--foo":true}
173 failed
Usage:
 prog --foo
 prog --bar
NOT PART OF SECTION

expect: {"--bar":false,"--baz":true,"--egg":true,"--foo":false,"--spam":false}
result: {"--bar":false,"--baz":true,"--egg":true,"--foo":false}
174 failed
Usage: prog [options]

global options: --foo
local options: --baz
               --bar
other options:
 --egg
 --spam
-not-an-option-



162 passed of 175 run : 92.6%

core.exception.AssertError@source\unittests.d(142): unittest failure
----------------
0x0045D2F1 in _d_unittest
0x00458961 in void unittests.__unittestL11_5() at C:\Users\XXXX\Documents\projects\docopt.d\source\unittests.d(146)
0x004596B8 in void unittests.__modtest()
0x00467E7D in int core.runtime.runModuleUnitTests().__foreachbody1(object.ModuleInfo*)
0x0046E047 in int object.ModuleInfo.opApply(scope int delegate(object.ModuleInfo*)).__lambda2(immutable(object.ModuleInfo*))
Program exited with code 1
@eduardogarre eduardogarre changed the title Multiple tests fail when executing "dub test" on the master branch (Windows 10) Multiple tests fail when executing "dub test" on master Jun 27, 2018
@eduardogarre eduardogarre changed the title Multiple tests fail when executing "dub test" on master Multiple tests fail when executing "dub test" (Windows 10) Jun 27, 2018
@eduardogarre eduardogarre changed the title Multiple tests fail when executing "dub test" (Windows 10) Multiple tests fail when executing "dub test" Jun 27, 2018
@eduardogarre eduardogarre changed the title Multiple tests fail when executing "dub test" Several tests fail when executing "dub test" Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant