Re: Get module file path from ModuleInfo

2019-06-07 Thread Jacob Carlborg via Digitalmars-d-learn
On 2019-06-06 12:43, Andre Pany wrote: Also __traits(getUnitTests) does not return the module file name. The approach above is working fine in the d-unit library (https://code.dlang.org/packages/d-unit) Well, to use __traits(getUnitTests) you need to collect all the files and generate a new

Re: Get module file path from ModuleInfo

2019-06-06 Thread Andre Pany via Digitalmars-d-learn
On Thursday, 6 June 2019 at 10:16:17 UTC, Jacob Carlborg wrote: On Thursday, 6 June 2019 at 04:20:52 UTC, Andre Pany wrote: Hi, I want to enhance a unittest framework to also report the results in SonarQube Generic Execution format. This format lists the file paths. The unittest framework

Re: Get module file path from ModuleInfo

2019-06-06 Thread Jacob Carlborg via Digitalmars-d-learn
On Thursday, 6 June 2019 at 04:20:52 UTC, Andre Pany wrote: Hi, I want to enhance a unittest framework to also report the results in SonarQube Generic Execution format. This format lists the file paths. The unittest framework loops through the modules and collects the module name and the

Get module file path from ModuleInfo

2019-06-05 Thread Andre Pany via Digitalmars-d-learn
Hi, I want to enhance a unittest framework to also report the results in SonarQube Generic Execution format. This format lists the file paths. The unittest framework loops through the modules and collects the module name and the unittests: foreach (moduleInfo; ModuleInfo) { if