{ "info": { "author": "Jonathan Block", "author_email": "jon.block@flaptastic.com", "bugtrack_url": null, "classifiers": [ "Framework :: Pytest", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent" ], "description": "# pytest-flaptastic\nPy.test plugin for Flaptastic.\n\nhttps://www.flaptastic.com/\n\n## Installation\n\nTo install pytest-flaptastic:\n\n $\u00a0pip install pytest-flaptastic\n\nEnvironment variables:\n\n| Required | Environment Variable Name | Description |\n| -------- | -------------------------- | ----------- |\n| Yes | FLAPTASTIC_ORGANIZATION_ID | Organization id |\n| Yes | FLAPTASTIC_API_TOKEN | API token |\n| Yes | FLAPTASTIC_SERVICE | Name of service (aka microservice) under test |\n| No | FLAPTASTIC_BRANCH | Branch name being tested. In git, you might pass \"master\" or names like \"myFeature\" |\n| No | FLAPTASTIC_COMMIT_ID | Version id of code tested. In git, this would be the commit sha |\n| No | FLAPTASTIC_LINK | Link to CI (Jenkins/Circle/Travis etc) website page where you can find the full details of the test run, if applicable |\n| No | FLAPTASTIC_VERBOSITY | Stdout verbosity. 0=none 1=minimal 2=everything |\n\nExample call pattern:\n\n $\u00a0FLAPTASTIC_ORGANIZATION_ID=123 \\\n FLAPTASTIC_API_TOKEN=foo \\\n FLAPTASTIC_SERVICE=monolith \\\n FLAPTASTIC_BRANCH=master \\\n FLAPTASTIC_COMMIT_ID=2feffa9bf0bf3fc48f9f9e89c5386afe0cb77124 \\\n FLAPTASTIC_LINK=http://jenkins.example.com \\\n py.test\n\n## CircleCI 2.0 Configuration\nA simple project might have a CircleCI 2.0 YML that ultimately does a 'make test' like this:\n```\n - run: make test\n```\nIn CircleCI 2.0, we must map some of Circle's variables to Flaptastic varibles and include the Flaptastic organization id like this:\n```\n - run:\n name: Run PyTest With Flaptastic\n environment:\n FLAPTASTIC_ORGANIZATION_ID: \"\"\n FLAPTASTIC_VERBOSITY: 1\n command: |\n echo 'export FLAPTASTIC_BRANCH=$CIRCLE_BRANCH' >> $BASH_ENV\n echo 'export FLAPTASTIC_LINK=$CIRCLE_BUILD_URL' >> $BASH_ENV\n echo 'export FLAPTASTIC_SERVICE=$CIRCLE_PROJECT_REPONAME' >> $BASH_ENV\n echo 'export FLAPTASTIC_COMMIT_ID=$CIRCLE_SHA1' >> $BASH_ENV\n source $BASH_ENV\n make test\n```\nPlease be sure to pass your selected organization ID as the actual ID value from your Flaptastic account as a string with double quotes. At the time of this writing, CircleCI will botch our 64-bit integer ids without the double quotes.\n\nFinally, find your Flaptastic API token and then go to your CircleCI project page. Navigate to the project environment variables screen and create an enviornment variable called \"FLAPTASTIC_API_TOKEN\" and then paste your token as the value.\n\n![alt text](https://s3.amazonaws.com/www.flaptastic.com/images/circle.png \"Screenshot of how to register the secret token value in CircleCI\")\n\n\n## License\n\npytest-flaptastic is available under the MIT License.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FlaptasticApps/pytest-flaptastic", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pytest-flaptastic", "package_url": "https://pypi.org/project/pytest-flaptastic/", "platform": "", "project_url": "https://pypi.org/project/pytest-flaptastic/", "project_urls": { "Homepage": "https://github.com/FlaptasticApps/pytest-flaptastic" }, "release_url": "https://pypi.org/project/pytest-flaptastic/0.0.25/", "requires_dist": null, "requires_python": "", "summary": "Flaptastic py.test plugin", "version": "0.0.25" }, "last_serial": 4949572, "releases": { "0.0.25": [ { "comment_text": "", "digests": { "md5": "c6d35998ebd7029364ebfceaa0e88cf3", "sha256": "19830bcffaf3ce4ed584cd969e0d56e7d99d8c3cc7967db913df94ea91c43079" }, "downloads": -1, "filename": "pytest-flaptastic-0.0.25.tar.gz", "has_sig": false, "md5_digest": "c6d35998ebd7029364ebfceaa0e88cf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4730, "upload_time": "2019-03-17T06:01:35", "url": "https://files.pythonhosted.org/packages/e5/b8/5200c28f09493f59433cb214fbaac12f5defa26e9c2456343b76b1df5fea/pytest-flaptastic-0.0.25.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c6d35998ebd7029364ebfceaa0e88cf3", "sha256": "19830bcffaf3ce4ed584cd969e0d56e7d99d8c3cc7967db913df94ea91c43079" }, "downloads": -1, "filename": "pytest-flaptastic-0.0.25.tar.gz", "has_sig": false, "md5_digest": "c6d35998ebd7029364ebfceaa0e88cf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4730, "upload_time": "2019-03-17T06:01:35", "url": "https://files.pythonhosted.org/packages/e5/b8/5200c28f09493f59433cb214fbaac12f5defa26e9c2456343b76b1df5fea/pytest-flaptastic-0.0.25.tar.gz" } ] }