CURRENT_TEST_GROUP

CURRENT_TEST_GROUP is a read-only built-in string containing the name of the test group that the current XJRunner test function is in. It is particularly useful in a post-function, where it retains the name of the test function's group that was run rather than the name of the post-function.

Example

PostFunction(INT stopMode, INT result)()
  // Open custom CSV log
  FILE log;
  FOPEN("customlog.csv", "a")(log);
  IF FERROR() THEN
    PRINT("Unable to open customlog.csv");
    EXIT(RESULT_FAIL);
  END;

  // Write a log entry
  FWRITE(log, CURRENT_TEST_GROUP + "," + CURRENT_TEST_FUNCTION + "," + FORMAT(result, "%i") + "\n");
  IF FERROR() THEN
    PRINT("An error occurred when writing to customlog.csv");
    EXIT(RESULT_FAIL);
  END;

  FCLOSE(log);
END;