Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Dummy auxiliary Android Test
// Detox requires the project to have a single dummy native Android Test with some special content,
// which will be picked up by the testRunner.
 
package com.reactnativeonnxruntimemodule;
 
import android.content.Intent;
 
import com.wix.detox.Detox;
import com.wix.detox.config.DetoxConfig;
 
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
 
import androidx.test.core.app.ApplicationProvider;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.LargeTest;
import androidx.test.rule.ActivityTestRule;
 
@RunWith(AndroidJUnit4.class)
@LargeTest
public class DetoxTest {
    @Rule
    public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false);
 
    @Test
    public void runDetoxTests() {
        // try to close any existing ANR dialog which will interfere with the UI tests
        ApplicationProvider.getApplicationContext().sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
 
        DetoxConfig detoxConfig = new DetoxConfig();
        detoxConfig.idlePolicyConfig.masterTimeoutSec = 90;
        detoxConfig.idlePolicyConfig.idleResourceTimeoutSec = 60;
        detoxConfig.rnContextLoadTimeoutSec = (BuildConfig.DEBUG ? 180 : 60);
 
        Detox.runTests(mActivityRule, detoxConfig);
    }
}