pytest-fast-first


Namepytest-fast-first JSON
Version 1.0.5 PyPI version JSON
download
home_pagehttps://github.com/moser/pytest-fast-first
SummaryPytest plugin that runs fast tests first
upload_time2023-01-19 13:25:35
maintainer
docs_urlNone
authorMartin Vielsmaier
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pytest fast first

When applying TDD, a key to successful, fast development is quick feedback. This
plugin tries to shorten the time to feedback by ordering fast tests before slower
ones.

It measures the runtime of your tests and on subsequent sessions orders faster tests
before slower ones. 


## Installation

```bash
pip install pytest-fast-first
```


## Options

* `--ff-inverse`: Inverts the order (can be used to optimize the runtime of a test
  suite when run with xdist)
* `--ff-group-by-module`: By default tests are just ordered by their runtime. If 
  you have module-scoped fixtures, this can help with better fixture reuse.
* `--ff-filepath: Use the given filepath to store/read results. Default: .pytest-runtimes
## State file

The plugin creates the file `.pytest-runtimes` in which it stores the runtimes
in JSON format. If you want runtime-based ordering in CI builds, you can check
it in to your version control system (you will have to live with merge
conflicts though).


## License: [MIT](https://opensource.org/licenses/MIT)

Copyright 2021 Martin Vielsmaier & Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

## Contributors

* Cem Yusuf Aydogdu: Custom filename option

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/moser/pytest-fast-first",
    "name": "pytest-fast-first",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Martin Vielsmaier",
    "author_email": "moser@moserei.de",
    "download_url": "https://files.pythonhosted.org/packages/89/cb/aedf82ed29efbe8ee3dfa0d4555f95fd14ff8a9b895ad8b9e20259fad9f6/pytest-fast-first-1.0.5.tar.gz",
    "platform": null,
    "description": "# pytest fast first\n\nWhen applying TDD, a key to successful, fast development is quick feedback. This\nplugin tries to shorten the time to feedback by ordering fast tests before slower\nones.\n\nIt measures the runtime of your tests and on subsequent sessions orders faster tests\nbefore slower ones. \n\n\n## Installation\n\n```bash\npip install pytest-fast-first\n```\n\n\n## Options\n\n* `--ff-inverse`: Inverts the order (can be used to optimize the runtime of a test\n  suite when run with xdist)\n* `--ff-group-by-module`: By default tests are just ordered by their runtime. If \n  you have module-scoped fixtures, this can help with better fixture reuse.\n* `--ff-filepath: Use the given filepath to store/read results. Default: .pytest-runtimes\n## State file\n\nThe plugin creates the file `.pytest-runtimes` in which it stores the runtimes\nin JSON format. If you want runtime-based ordering in CI builds, you can check\nit in to your version control system (you will have to live with merge\nconflicts though).\n\n\n## License: [MIT](https://opensource.org/licenses/MIT)\n\nCopyright 2021 Martin Vielsmaier & Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## Contributors\n\n* Cem Yusuf Aydogdu: Custom filename option\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Pytest plugin that runs fast tests first",
    "version": "1.0.5",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f5e2c43299974fe6195ac197370bf9bb1dbc880fe1151d7834c4152f6af1ceb5",
                "md5": "a3f0d98f2ec279de9186485bbeef689e",
                "sha256": "5dfceb0407e66e9b3c5a5211cf283c23c7bb369c94d6468dcd79e3e1a12a9502"
            },
            "downloads": -1,
            "filename": "pytest_fast_first-1.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a3f0d98f2ec279de9186485bbeef689e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4369,
            "upload_time": "2023-01-19T13:25:31",
            "upload_time_iso_8601": "2023-01-19T13:25:31.730130Z",
            "url": "https://files.pythonhosted.org/packages/f5/e2/c43299974fe6195ac197370bf9bb1dbc880fe1151d7834c4152f6af1ceb5/pytest_fast_first-1.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89cbaedf82ed29efbe8ee3dfa0d4555f95fd14ff8a9b895ad8b9e20259fad9f6",
                "md5": "c0bf251a0668b563fb6a0bc6b3bc3945",
                "sha256": "4940d8196290b22804c92b3d6316781895ba6e361011df112f976376ae2e6631"
            },
            "downloads": -1,
            "filename": "pytest-fast-first-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "c0bf251a0668b563fb6a0bc6b3bc3945",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3376,
            "upload_time": "2023-01-19T13:25:35",
            "upload_time_iso_8601": "2023-01-19T13:25:35.133325Z",
            "url": "https://files.pythonhosted.org/packages/89/cb/aedf82ed29efbe8ee3dfa0d4555f95fd14ff8a9b895ad8b9e20259fad9f6/pytest-fast-first-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-19 13:25:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "moser",
    "github_project": "pytest-fast-first",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pytest-fast-first"
}
        
Elapsed time: 0.04113s