On Friday, 8 September 2023 at 13:34:42 UTC, Richard (Rikki) Andrew Cattermole wrote:
In case you didn't know, all you need to get unittests working in -betterC is:

```d
                        foreach (module_; allModules) {
                                foreach (unitTest; __traits(getUnitTests, 
module_)) {
                                        unitTest();
                                }
                        }
```

You'd need to provide allModules somehow, like dub does.

https://github.com/dlang/dub/blob/2ea883833adf085095b07a7dba8250fb3db79a71/source/dub/project.d#L1937

Oh wow!!! How did I missed that? It's either recent (past months) or I'm blind, lol!

As I don't remember unittests however, I would like to as. Do they have automatic symbol order resolution? Which is, testing symbols that other symbol depend on first? Or is it random?
  • malloc error whe... rempas via Digitalmars-d-learn
    • Re: malloc ... evilrat via Digitalmars-d-learn
      • Re: mal... rempas via Digitalmars-d-learn
        • Re:... evilrat via Digitalmars-d-learn
          • ... rempas via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... rempas via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... rempas via Digitalmars-d-learn
              • ... ryuukk_ via Digitalmars-d-learn
            • ... Kagamin via Digitalmars-d-learn
              • ... rempas via Digitalmars-d-learn
    • Re: malloc ... Hipreme via Digitalmars-d-learn
    • Re: malloc ... bachmeier via Digitalmars-d-learn
    • Re: malloc ... rempas via Digitalmars-d-learn
    • Re: malloc ... Basile B. via Digitalmars-d-learn

Reply via email to