All Projects → pytest-dev → pytest

pytest-dev / pytest

Licence: MIT license
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pytest

teuton
Infrastructure test, mainly useful for sysadmin teachers and making contests
Stars: ✭ 22 (-99.77%)
Mutual labels:  unit-testing, test
Capture Stream
Capture stream output.
Stars: ✭ 10 (-99.9%)
Mutual labels:  unit-testing, test
Goreporter
A Golang tool that does static analysis, unit testing, code review and generate code quality report.
Stars: ✭ 2,943 (-69.76%)
Mutual labels:  unit-testing, test
unittest expander
A library that provides flexible and easy-to-use tools to parameterize Python unit tests, especially those based on unittest.TestCase.
Stars: ✭ 12 (-99.88%)
Mutual labels:  unit-testing, test
Mocktopus
Mocking framework for Rust
Stars: ✭ 179 (-98.16%)
Mutual labels:  unit-testing, test
got
An enjoyable golang test framework.
Stars: ✭ 234 (-97.6%)
Mutual labels:  unit-testing, test
Django Jenkins
Plug and play continuous integration with django and jenkins
Stars: ✭ 933 (-90.41%)
Mutual labels:  unit-testing, test
goreporter
A Golang tool that does static analysis, unit testing, code review and generate code quality report.
Stars: ✭ 3,019 (-68.98%)
Mutual labels:  unit-testing, test
Tablier
A micro-framework for Table Driven Tests.
Stars: ✭ 33 (-99.66%)
Mutual labels:  unit-testing, test
Snap Shot
Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
Stars: ✭ 170 (-98.25%)
Mutual labels:  unit-testing, test
emacs-python-pytest
run pytest inside emacs
Stars: ✭ 105 (-98.92%)
Mutual labels:  unit-testing, test
Alsatian
TypeScript testing framework with test cases
Stars: ✭ 244 (-97.49%)
Mutual labels:  unit-testing, test
logunit
A Java library for unit-testing logging.
Stars: ✭ 40 (-99.59%)
Mutual labels:  unit-testing, test
Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-99.79%)
Mutual labels:  unit-testing, test
tead
Lighting the way to simpler testing
Stars: ✭ 55 (-99.43%)
Mutual labels:  unit-testing, test
Bach
Bach Testing Framework
Stars: ✭ 392 (-95.97%)
Mutual labels:  unit-testing, test
Caraya
Assertion and unit test framework for LabVIEW
Stars: ✭ 45 (-99.54%)
Mutual labels:  unit-testing, test
eat
Json based scenario testing tool(which can have test for functional and non-functional)
Stars: ✭ 41 (-99.58%)
Mutual labels:  unit-testing, test
Atoum
The modern, simple and intuitive PHP unit testing framework.
Stars: ✭ 1,382 (-85.8%)
Mutual labels:  unit-testing, test
Androidunittest
Save time & clear your unit tests on Android !
Stars: ✭ 205 (-97.89%)
Mutual labels:  unit-testing, test
pytest
Code coverage Status pre-commit.ci status Documentation Status Discord Libera chat

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.

An example of a simple test:

# content of test_sample.py
def inc(x):
    return x + 1


def test_answer():
    assert inc(3) == 5

To execute it:

$ pytest
============================= test session starts =============================
collected 1 items

test_sample.py F

================================== FAILURES ===================================
_________________________________ test_answer _________________________________

    def test_answer():
>       assert inc(3) == 5
E       assert 4 == 5
E        +  where 4 = inc(3)

test_sample.py:5: AssertionError
========================== 1 failed in 0.04 seconds ===========================

Due to pytest's detailed assertion introspection, only plain assert statements are used. See getting-started for more examples.

Features

Documentation

For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/.

Bugs/Requests

Please use the GitHub issue tracker to submit bugs or request features.

Changelog

Consult the Changelog page for fixes and enhancements of each version.

Support pytest

Open Collective is an online funding platform for open and transparent communities. It provides tools to raise money and share your finances in full transparency.

It is the platform of choice for individuals and companies that want to make one-time or monthly donations directly to the project.

See more details in the pytest collective.

pytest for enterprise

Available as part of the Tidelift Subscription.

The maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.

Learn more.

Security

pytest has never been associated with a security vulnerability, but in any case, to report a security vulnerability please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

License

Copyright Holger Krekel and others, 2004.

Distributed under the terms of the MIT license, pytest is free and open source software.

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].