IntegrationTestPlugin.h 921 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Flutter/Flutter.h>

NS_ASSUME_NONNULL_BEGIN

/** A Flutter plugin that's responsible for communicating the test results back
 * to iOS XCTest. */
@interface IntegrationTestPlugin : NSObject <FlutterPlugin>

/**
 * Test results that are sent from Dart when integration test completes. Before the
15
 * completion, it is @c nil.
16 17 18
 */
@property(nonatomic, readonly, nullable) NSDictionary<NSString *, NSString *> *testResults;

19 20 21 22 23
/**
 * Mapping of screenshot images by suggested names, captured by the dart tests.
 */
@property (copy, readonly) NSDictionary<NSString *, UIImage *> *capturedScreenshotsByName;

24
/** Fetches the singleton instance of the plugin. */
25
+ (instancetype)instance;
26 27 28 29 30 31

- (instancetype)init NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END