All Projects â†’ anapaulagomes â†’ Pytest Picked

anapaulagomes / Pytest Picked

Licence: mit
Run the tests related to the changed files (according to Git) 🤓

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pytest Picked

Openjdk Tests
Home of test infrastructure for AdoptOpenJDK builds
Stars: ✭ 73 (-72.14%)
Mutual labels:  hacktoberfest, tests
Schemathesis
A modern API testing tool for web applications built with Open API and GraphQL specifications.
Stars: ✭ 768 (+193.13%)
Mutual labels:  hacktoberfest, pytest
Pytest Mock
Thin-wrapper around the mock package for easier use with pytest
Stars: ✭ 1,020 (+289.31%)
Mutual labels:  hacktoberfest, pytest
Pytest Regressions
Pytest plugin for regression testing: https://pytest-regressions.readthedocs.io
Stars: ✭ 89 (-66.03%)
Mutual labels:  hacktoberfest, pytest
Pytest Recording
A pytest plugin that allows recording network interactions via VCR.py
Stars: ✭ 98 (-62.6%)
Mutual labels:  hacktoberfest, pytest
Pytest Qt
pytest plugin for Qt (PyQt4, PyQt5 and PySide) application testing
Stars: ✭ 210 (-19.85%)
Mutual labels:  hacktoberfest, pytest
Xamarin.forms.mocks
Library for running Xamarin.Forms inside of unit tests
Stars: ✭ 179 (-31.68%)
Mutual labels:  hacktoberfest, tests
Testimo
Testimo is PowerShell module for running health checks for Active Directory (and later on any other server type) against a bunch of different tests
Stars: ✭ 249 (-4.96%)
Mutual labels:  hacktoberfest, tests
Core
Gibbon is a flexible, open source school management platform designed to make life better for teachers, students, parents and leaders.
Stars: ✭ 261 (-0.38%)
Mutual labels:  hacktoberfest
React Block Ui
Easy way to block the user from interacting with your UI.
Stars: ✭ 261 (-0.38%)
Mutual labels:  hacktoberfest
Transcripts
Changelog episode transcripts in Markdown format 📚
Stars: ✭ 260 (-0.76%)
Mutual labels:  hacktoberfest
Phpctags
An enhanced ctags compatible index generator written in pure PHP. Released under GPLv2 license.
Stars: ✭ 260 (-0.76%)
Mutual labels:  hacktoberfest
Yii2 Migration
Yii 2 Migration Creator And Updater
Stars: ✭ 262 (+0%)
Mutual labels:  hacktoberfest
Ember Cli Update
Update Ember CLI projects
Stars: ✭ 261 (-0.38%)
Mutual labels:  hacktoberfest
Resizetizernt
Add SVG's and PNG's to your shared Xamarin Project
Stars: ✭ 263 (+0.38%)
Mutual labels:  hacktoberfest
Haystack
Top level repository for Haystack, containing documentation and deployment scripts
Stars: ✭ 261 (-0.38%)
Mutual labels:  hacktoberfest
Jschema
A simple, easy to use data modeling framework for JavaScript
Stars: ✭ 261 (-0.38%)
Mutual labels:  hacktoberfest
Pine64 Arch
PKGBUILD for running Arch Linux on PinePhone/PineTab.
Stars: ✭ 258 (-1.53%)
Mutual labels:  hacktoberfest
Fsociety
A Modular Penetration Testing Framework
Stars: ✭ 259 (-1.15%)
Mutual labels:  hacktoberfest
React Head
⛑ SSR-ready Document Head tag management for React 16+
Stars: ✭ 262 (+0%)
Mutual labels:  hacktoberfest

=============== pytest-picked

.. image:: https://github.com/anapaulagomes/pytest-picked/workflows/Tests/badge.svg :target: https://github.com/anapaulagomes/pytest-picked/actions?query=workflow%3ATests :alt: See Test Status on Github Actions

.. image:: https://github.com/anapaulagomes/pytest-picked/workflows/Publish%20to%20Test%20PyPi/badge.svg :target: https://test.pypi.org/project/pytest-picked/ :alt: See Package Status on Test PyPI

.. image:: https://github.com/anapaulagomes/pytest-picked/workflows/Publish%20to%20PyPI/badge.svg :target: https://pypi.org/project/pytest-picked/ :alt: See Package Status on PyPI

.. image:: https://img.shields.io/conda/vn/conda-forge/pytest-picked.svg :target: https://anaconda.org/conda-forge/pytest-picked :alt: Conda forge package

.. image:: https://img.shields.io/pypi/pyversions/pytest-picked.svg :target: https://pypi.org/project/pytest-picked :alt: Supported Python versions

Run the tests related to the unstaged files or the current branch (according to Git)


.. image:: demo.gif :height: 400px :alt: Demo

Let's say you have the following output from git status:

::

$ git status

On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits)

Untracked files: (use "git add ..." to include in what will be committed)

api.py
tests/api/
tests/test_board.py

nothing added to commit but untracked files present (use "git add" to track)

Running pytest --picked, the plugin will run all tests that come from this output.

::

$ pytest --picked

============================= test session starts ============================= platform darwin -- Python 3.6.4, pytest-3.6.0, py-1.5.3, pluggy-0.6.0 rootdir: /Users/ana.gomes/personal-workspace/grandma, inifile: plugins: picked-0.1.0, mock-1.10.0, flask-0.10.0, deadfixtures-2.0.1 collecting 34 items Changed test files... 1. ['tests/test_board.py'] Changed test folders... 1. ['tests/api/'] collected 34 items

tests/test_board.py . [ 50%] tests/api/test_new.py . [100%]

=========================== 2 passed in 0.07 seconds ===========================

All tests will be run from files and folders which are modified but not yet committed. No more copy and paste!

Usage

::

$ pytest --picked

$ pytest --picked=first

$ pytest --picked --mode=branch

$ pytest --picked --mode=unstaged # default

$ pytest --picked --mode=branch --parent-branch=main # if your parent branch differs from "master"

Features

Using git status, this plugin allows you to:

  • Run only tests from modified test files
  • Run tests from modified test files first, followed by all unmodified tests

Installation

You can install pytest-picked via pip_ from PyPI_::

$ pip install pytest-picked

Contributing

Contributions are very welcome. Tests can be run with tox_, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT_ license, "pytest-picked" is free and open source software

Issues

If you encounter any problems, please file an issue_ along with a detailed description.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _@hackebrot: https://github.com/hackebrot .. _MIT: http://opensource.org/licenses/MIT .. _BSD-3: http://opensource.org/licenses/BSD-3-Clause .. _GNU GPL v3.0: http://www.gnu.org/licenses/gpl-3.0.txt .. _Apache Software License 2.0: http://www.apache.org/licenses/LICENSE-2.0 .. _cookiecutter-pytest-plugin: https://github.com/pytest-dev/cookiecutter-pytest-plugin .. _file an issue: https://github.com/anapaulagomes/pytest-picked/issues .. _pytest: https://github.com/pytest-dev/pytest .. _tox: https://tox.readthedocs.io/en/latest/ .. _pip: https://pypi.org/project/pytest-picked/ .. _PyPI: https://pypi.org/project/pytest-picked/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].