defineReflectiveSuite function

void defineReflectiveSuite(
  1. void define(
    1. {String name = ''}

    Run the define function parameter that calls defineReflectiveTests to add normal and "solo" tests, and also calls defineReflectiveSuite to create embedded suites. If the current suite is the top-level one, perform check for "solo" groups and tests, and run all or only "solo" items.


    void defineReflectiveSuite(void Function() define, {String name = ''}) {
      String groupName = _currentSuiteName;
      try {
        _currentSuiteName = _combineNames(_currentSuiteName, name);
      } finally {
        _currentSuiteName = groupName;