Thread overview
[Issue 20500] running examples on the home page only displays '1 unittests passed'
Jan 18, 2020
Mathias LANG
Jan 22, 2020
ZombineDev
Jan 23, 2020
Dlang Bot
Jan 23, 2020
Dlang Bot
Jan 23, 2020
Dlang Bot
Jan 23, 2020
Dlang Bot
January 18, 2020
https://issues.dlang.org/show_bug.cgi?id=20500

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pro.mathias.lang@gmail.com

--- Comment #1 from Mathias LANG <pro.mathias.lang@gmail.com> ---
Caused by https://github.com/dlang/druntime/pull/2877

--
January 22, 2020
https://issues.dlang.org/show_bug.cgi?id=20500

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--- Comment #2 from ZombineDev <petar.p.kirov@gmail.com> ---
Yes, we need to update dlang-tour to pass the right -DRT option when running the compiled executable.

--
January 22, 2020
https://issues.dlang.org/show_bug.cgi?id=20500

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@yahoo.com

--- Comment #3 from Steven Schveighoffer <schveiguy@yahoo.com> ---
If I compile with unittests enabled, I shouldn't get any unittests inserted from Phobos or druntime. IMO that's a bug in Phobos.

On top of that, yes, the default for the online program runner should be to run both unittests and main, as that's the most useful thing you might want to do.

--
January 23, 2020
https://issues.dlang.org/show_bug.cgi?id=20500

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@rainers created dlang/phobos pull request #7359 "fix Issue 20500 - running examples on the home page only displays '1 …" fixing this issue:

- fix Issue 20500 - running examples on the home page only displays '1 unittests passed'

  move unittests out of templated struct FormatSpec so they are not generated
when using the template

https://github.com/dlang/phobos/pull/7359

--
January 23, 2020
https://issues.dlang.org/show_bug.cgi?id=20500

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@wilzbach created dlang/dlang.org pull request #2739 "Fix Issue 20500 - always pass -unittest and --DRT-testmode=run-main" fixing this issue:

- Fix Issue 20500 - always pass -unittest and --DRT-testmode=run-main

https://github.com/dlang/dlang.org/pull/2739

--
January 23, 2020
https://issues.dlang.org/show_bug.cgi?id=20500

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #7359 "fix Issue 20500 - running examples on the home page only displays '1 …" was merged into stable:

- 0105fc924f3c9be14269a833de0d8b57288816f0 by Rainer Schuetze:
  fix Issue 20500 - running examples on the home page only displays '1
unittests passed'

  move unittests out of templated struct FormatSpec so they are not generated
when using the template

https://github.com/dlang/phobos/pull/7359

--
January 23, 2020
https://issues.dlang.org/show_bug.cgi?id=20500

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dlang.org pull request #2739 "Fix Issue 20500 - always pass -unittest and --DRT-testmode=run-main" was merged into master:

- 74a2d08bb4614df0483a7d64a104084b25e46b04 by Sebastian Wilzbach:
  Fix Issue 20500 - always pass -unittest and --DRT-testmode=run-main

https://github.com/dlang/dlang.org/pull/2739

--