runUrl method

String runUrl(
  1. int testRunId
)

The customer-facing link to a test run.

Implementation

String runUrl(int testRunId) {
  var base = config.baseURL;
  final publicUrl = _appConfig?.publicAppUrl;
  if (publicUrl != null && publicUrl.isNotEmpty) base = publicUrl;
  while (base.endsWith('/')) {
    base = base.substring(0, base.length - 1);
  }
  return '$base/project/${config.projectId}/test-runs/$testRunId';
}