argparse
argparse copied to clipboard
Coverage analysis ignores code executed at CTFE
Fix: dub test --build=unittest-cov-ctfe --verbose.
https://dub.pm/package-format-sdl.html#build-types
Unfortunately dmd segfaults:
$ dub test --build=unittest-cov-ctfe
Generating test runner configuration 'argparse-test-library' for 'library' (library).
Starting Performing "unittest-cov-ctfe" build using /usr/bin/dmd for x86_64.
Building argparse 1.3.0+commit.30.ga907d08: building configuration [argparse-test-library]
Segmentation fault
Error /usr/bin/dmd failed with exit code 139.
I tried dmd 2.103.1 and 2.104. Also the latest one (2.106.0) is failing in CI as well.
There is no way to fix this issue until compiler is fixed.
Sorry, should have checked myself.
Seems there is a compiler bug to work around. I’ll see if I can track it down.