[ReactNative] Fix BUCK file and reenable tests

This commit is contained in:
Tadeu Zagallo 2015-06-09 05:11:40 -07:00
parent 0a3fca9520
commit 459882ea7e
9 changed files with 8 additions and 11 deletions

View File

@ -36,7 +36,7 @@
* on the same Wi-Fi network.
*/
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle?dev=true"];
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/Examples/UIExplorer/UIExplorerApp.ios.includeRequire.runModule.bundle?dev=true"];
/**
* OPTION 2

View File

@ -39,12 +39,12 @@
#pragma mark Logic Tests
- (void)DISABLED_testTheTester // #7149037
- (void)testTheTester
{
[_runner runTest:_cmd module:@"IntegrationTestHarnessTest"];
}
- (void)DISABLED_testTheTester_waitOneFrame // #7149037
- (void)testTheTester_waitOneFrame
{
[_runner runTest:_cmd
module:@"IntegrationTestHarnessTest"
@ -61,12 +61,12 @@
expectErrorRegex:@"because shouldThrow"];
}
- (void)DISABLED_testTimers // #7149037
- (void)testTimers
{
[_runner runTest:_cmd module:@"TimersTest"];
}
- (void)DISABLED_testAsyncStorage // #7149037
- (void)testAsyncStorage
{
[_runner runTest:_cmd module:@"AsyncStorageTest"];
}
@ -76,14 +76,14 @@
[_runner runTest:_cmd module:@"LayoutEventsTest"];
}
- (void)DISABLED_testAppEvents // #7149037
- (void)testAppEvents
{
[_runner runTest:_cmd module:@"AppEventsTest"];
}
#pragma mark Snapshot Tests
- (void)DISABLED_testSimpleSnapshot // #7149037
- (void)testSimpleSnapshot
{
[_runner runTest:_cmd module:@"SimpleSnapshotTest"];
}

View File

@ -39,7 +39,7 @@
#endif
NSString *version = [[UIDevice currentDevice] systemVersion];
RCTAssert([version isEqualToString:@"8.3"], @"Snapshot tests should be run on iOS 8.3, found %@", version);
_runner = RCTInitRunnerForApp(@"Examples/UIExplorer/UIExplorerApp");
_runner = RCTInitRunnerForApp(@"Examples/UIExplorer/UIExplorerApp.ios");
// If tests have changes, set recordMode = YES below and run the affected
// tests on an iPhone5, iOS 8.1 simulator.
@ -95,15 +95,12 @@
[_runner runTest:_cmd module:@#name]; \
}
/*
These tests are all disabled due to #7149037.
RCT_SNAPSHOT_TEST(ViewExample, NO)
RCT_SNAPSHOT_TEST(LayoutExample, NO)
RCT_SNAPSHOT_TEST(TextExample, NO)
RCT_SNAPSHOT_TEST(SwitchExample, NO)
RCT_SNAPSHOT_TEST(SliderExample, NO)
RCT_SNAPSHOT_TEST(TabBarExample, NO)
*/
// Make sure this test runs last
- (void)testZZZ_NotInRecordMode