andre2007

Results 150 comments of andre2007

The DLang plugin for IntelliJ has support for DUnit, although it is quite limited at the moment. (You can only specify 1 test module for a test run configuration).

My gut feeling is, the unittest function is introduced by dub but I have to do deeper investigations. If I find found out which component causes the additional unittest function...

To get the filepath the mixin can be enhanced like this ```d mixin template UnitTest(string filename = __FILE__) ``` (Thanks to Exil from forum.dlang.org for this tip)

It seems it is not possible to get the filename for D unittests ): ModuleInfo does not contain this info.

There is a pr which will add a new __traits to determine the file location of a given symbol: https://github.com/dlang/dmd/pull/10013

PR was merged and new __traits ```getloc``` is available: https://dlang.org/changelog/2.088.0.html#getloc

In my test I want to check whether the http service call was triggered. The http client is mocked for the test and while it is triggered a delegate is...

I checked the logs, there is only one interesting error message in the log: > GetLineByInlineContextWide failed. Symbols are not loaded or no source information available. I started debugging for...

You are right, I was using dmd. I now tried ldc with the mentioned arguments and it seems to work. After executing the script the graphical representation of e.g. a...

![20210527_094959.jpg](https://user-images.githubusercontent.com/1451047/119787145-31ed2700-bed1-11eb-870a-c385d2451edb.jpg)