Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A python bridge to the detox greybox testing library

Project description

Detox Python Bridge

A bridge to enable python code to use the detox grey-box testing API ( )



The package requires nvm to be installed. Either the NVM environment variable needs to contain the full path of the script, or the NVM_DIR environment variable needs to point at the root directory of nvm containing the script.


The code emitted by this bridge requires node 7.6.0 or higher.


3.5 or 3.6 is required to use the package.


Follow the getting started guide from detox ( )


from detox_bridge import await, by, detox, device, element, expect, node_with_detox

app_path = "detox/examples/demo-react-native"

# Start Node server in app_path root folder that contains node_modules

with node_with_detox(app_path=app_path, default_timeout=10) as appserver:

    # Detox Config (we could also load this from package.json)

    ios_sim_release = {
        "binaryPath": "ios/build/Build/Products/Release-iphonesimulator/",
        "type": "ios.simulator",
        "name": "iPhone 7 Plus"

    configurations_obj = {"configurations": {"ios.sim.release": ios_sim_release}}

    # Longer timeout since the app may be installed

    appserver(await(detox.init(configurations_obj)), timeout=360)

    # Reload react native


    # Expectation


    # Cleanup




Both python 3.5 and python 3.6 are required to run the suite suite.


After checkout run:

git submodule update --init --recursive

Running tests

To run the test suite:

make test

Once the venv is there you can also run some tests via tox:

venv/bin/tox -e py35 -- -k <regex>

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for detox-bridge, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size detox-bridge-1.0.2.tar.gz (14.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page