Tests and benchmark profiles

You can add some flags into your test and benchmark profiles.

With those flags, you can disable some logs or some features. It’s very useful for cucumber tests and benchmarks.

Usage

Here, an example to show how to add them it in app.config.json:

{
  "testCucumber": {
    "isTest": true
  }
}
{
  "bench-lightning": {
    "isBench": true
  }
}

Then is code you can do:

import profile from "profile.json";
if (profile.isTest) {
  // Do something for test
}

Caution

Those flags are used by Dana, so do not remove them or set them to false for test and benchmark profiles.