mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
Fix React Native test configuration
This commit is contained in:
parent
3f4c7e40c6
commit
7a6f116ed4
@ -14,11 +14,17 @@
|
|||||||
|
|
||||||
#import "RCTAssert.h"
|
#import "RCTAssert.h"
|
||||||
|
|
||||||
@interface IntegrationTests : XCTestCase
|
#define RCT_TEST(name) \
|
||||||
|
- (void)test##name \
|
||||||
|
{ \
|
||||||
|
[_runner runTest:_cmd module:@#name]; \
|
||||||
|
}
|
||||||
|
|
||||||
|
@interface UIExplorerIntegrationTests : XCTestCase
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation IntegrationTests
|
@implementation UIExplorerIntegrationTests
|
||||||
{
|
{
|
||||||
RCTTestRunner *_runner;
|
RCTTestRunner *_runner;
|
||||||
}
|
}
|
||||||
@ -36,11 +42,6 @@
|
|||||||
|
|
||||||
#pragma mark Logic Tests
|
#pragma mark Logic Tests
|
||||||
|
|
||||||
- (void)testTheTester
|
|
||||||
{
|
|
||||||
[_runner runTest:_cmd module:@"IntegrationTestHarnessTest"];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)testTheTester_waitOneFrame
|
- (void)testTheTester_waitOneFrame
|
||||||
{
|
{
|
||||||
[_runner runTest:_cmd
|
[_runner runTest:_cmd
|
||||||
@ -57,38 +58,12 @@
|
|||||||
expectErrorRegex:@"because shouldThrow"];
|
expectErrorRegex:@"because shouldThrow"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)testTimers
|
RCT_TEST(TimersTest)
|
||||||
{
|
RCT_TEST(IntegrationTestHarnessTest)
|
||||||
[_runner runTest:_cmd module:@"TimersTest"];
|
RCT_TEST(AsyncStorageTest)
|
||||||
}
|
// RCT_TEST(LayoutEventsTest) -- Disabled: #8153468
|
||||||
|
RCT_TEST(AppEventsTest)
|
||||||
- (void)testAsyncStorage
|
RCT_TEST(PromiseTest)
|
||||||
{
|
// RCT_TEST(SimpleSnapshotTest) -- Disabled: #8153475
|
||||||
[_runner runTest:_cmd module:@"AsyncStorageTest"];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)DISABLED_testLayoutEvents // #7149037
|
|
||||||
{
|
|
||||||
[_runner runTest:_cmd module:@"LayoutEventsTest"];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)testAppEvents
|
|
||||||
{
|
|
||||||
[_runner runTest:_cmd module:@"AppEventsTest"];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)testPromises
|
|
||||||
{
|
|
||||||
[_runner runTest:_cmd module:@"PromiseTest"];
|
|
||||||
}
|
|
||||||
|
|
||||||
#pragma mark Snapshot Tests
|
|
||||||
|
|
||||||
- (void)testSimpleSnapshot
|
|
||||||
{
|
|
||||||
// If tests have changes, set recordMode = YES below and re-run
|
|
||||||
_runner.recordMode = NO;
|
|
||||||
[_runner runTest:_cmd module:@"SimpleSnapshotTest"];
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
@end
|
Loading…
x
Reference in New Issue
Block a user