{ "info": { "author": "Jan-Eric Duden", "author_email": "jan-eric.duden@kpn.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP" ], "description": "Detox Python Bridge\n===========================\n\n.. image:: https://secure.travis-ci.org/kpn-digital/py-detox-bridge.svg?branch=master\n :target: http://travis-ci.org/kpn-digital/py-detox-bridge?branch=master\n\n.. image:: https://img.shields.io/codecov/c/github/kpn-digital/py-detox-bridge/master.svg\n :target: http://codecov.io/github/kpn-digital/py-detox-bridge?branch=master\n\n.. image:: https://img.shields.io/pypi/v/detox-bridge.svg\n :target: https://pypi.python.org/pypi/detox-bridge\n\n.. image:: https://readthedocs.org/projects/detox-bridge/badge/?version=latest\n :target: http://detox-bridge.readthedocs.org/en/latest/?badge=latest\n\nA bridge to enable python code to use the detox grey-box testing API ( https://github.com/wix/detox )\n\n\nRequirements\n============\n\nNVM\n---\n\nThe package requires nvm to be installed. Either the NVM environment variable needs to contain the full path of the nvm.sh script, or \nthe NVM_DIR environment variable needs to point at the root directory of nvm containing the nvm.sh script.\n\nNODE\n----\n\nThe code emitted by this bridge requires node 7.6.0 or higher.\n\n\nPython\n------\n\n3.5 or 3.6 is required to use the package.\n\nDetox\n-----\n\nFollow the getting started guide from detox ( https://github.com/wix/detox/blob/master/docs/Introduction.GettingStarted.md )\n\n\nUsage\n=====\n\n.. code:: python\n\n from detox_bridge import await, by, detox, device, element, expect, node_with_detox\n\n app_path = \"detox/examples/demo-react-native\"\n\n # Start Node server in app_path root folder that contains node_modules\n\n with node_with_detox(app_path=app_path, default_timeout=10) as appserver:\n\n # Detox Config (we could also load this from package.json)\n\n ios_sim_release = {\n \"binaryPath\": \"ios/build/Build/Products/Release-iphonesimulator/example.app\",\n \"type\": \"ios.simulator\",\n \"name\": \"iPhone 7 Plus\"\n }\n\n configurations_obj = {\"configurations\": {\"ios.sim.release\": ios_sim_release}}\n\n # Longer timeout since the app may be installed\n\n appserver(await(detox.init(configurations_obj)), timeout=360)\n\n # Reload react native\n\n appserver(await(device.reloadReactNative()))\n\n # Expectation\n\n appserver(await(expect(element(by.id('welcome'))).toBeVisible()))\n\n # Cleanup\n\n appserver(await(detox.cleanup()))\n\nDevelopment\n===========\n\n\nRequirements\n------------\n\nBoth python 3.5 and python 3.6 are required to run the suite suite.\n\nCheckout\n--------\n\nAfter checkout run::\n\n git submodule update --init --recursive \n\n\nRunning tests\n-------------\n\nTo run the test suite::\n\n make test\n\n\nOnce the venv is there you can also run some tests via tox::\n\n venv/bin/tox -e py35 -- -k ", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kpn-digital/py-detox-bridge", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "detox-bridge", "package_url": "https://pypi.org/project/detox-bridge/", "platform": "", "project_url": "https://pypi.org/project/detox-bridge/", "project_urls": { "Homepage": "https://github.com/kpn-digital/py-detox-bridge" }, "release_url": "https://pypi.org/project/detox-bridge/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "A python bridge to the detox greybox testing library", "version": "1.0.2" }, "last_serial": 3017874, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "b7f6900d2fc93939c26a28a390082f3c", "sha256": "6e8741289e27298b6afb01824b6d5e440fdcc9514da571c95b8deabce08aa9aa" }, "downloads": -1, "filename": "detox-bridge-1.0.2.tar.gz", "has_sig": false, "md5_digest": "b7f6900d2fc93939c26a28a390082f3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14293, "upload_time": "2017-07-12T15:23:20", "url": "https://files.pythonhosted.org/packages/52/7d/6a218f53be4742e3a4c3e9a370d5ac088de04ae838ab7d00c6b0d5f4a56b/detox-bridge-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b7f6900d2fc93939c26a28a390082f3c", "sha256": "6e8741289e27298b6afb01824b6d5e440fdcc9514da571c95b8deabce08aa9aa" }, "downloads": -1, "filename": "detox-bridge-1.0.2.tar.gz", "has_sig": false, "md5_digest": "b7f6900d2fc93939c26a28a390082f3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14293, "upload_time": "2017-07-12T15:23:20", "url": "https://files.pythonhosted.org/packages/52/7d/6a218f53be4742e3a4c3e9a370d5ac088de04ae838ab7d00c6b0d5f4a56b/detox-bridge-1.0.2.tar.gz" } ] }