Skip to content

Add execution policy for the tests #8

@Yaraslaut

Description

@Yaraslaut

It would be great to be able to run tests in parallel without any additional code, this still should be configurable by the user, maybe as a cli arguments

raw example would be

template <auto refl> 
void run_tests() {
  std::vector<std::thread> pool;
  [: expand(members_of(refl, std::meta::access_context::current())):] >> [&]<auto mem>
  {
      pool.emplace_back(std::thread([&]() {
          [:mem:]();
      }));
   };
   for (auto &t : pool) {
      t.join();
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions