Skip to content

Add execution policy for the tests #8

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();
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions