Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielfalcao/sure
sophisticated automated test library and runner
https://github.com/gabrielfalcao/sure
bdd behavior-driven-development python3 software-craftsmanship tdd test test-automation test-driven-development
Last synced: about 1 month ago
JSON representation
sophisticated automated test library and runner
- Host: GitHub
- URL: https://github.com/gabrielfalcao/sure
- Owner: gabrielfalcao
- License: gpl-3.0
- Created: 2010-06-06T07:27:25.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T23:48:18.000Z (3 months ago)
- Last Synced: 2024-09-09T17:43:31.060Z (2 months ago)
- Topics: bdd, behavior-driven-development, python3, software-craftsmanship, tdd, test, test-automation, test-driven-development
- Language: Python
- Homepage: https://sure.readthedocs.io
- Size: 1.1 MB
- Stars: 698
- Watchers: 19
- Forks: 74
- Open Issues: 21
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: COPYING
Awesome Lists containing this project
- awesome-python-testing - sure - An idiomatic assertion toolkit with human-friendly failure messages, inspired by RSpec Expectations and should.js. (Assertions)
- awesome-made-by-brazilians - sure
README
sure
====.. image:: https://img.shields.io/pypi/dm/sure
:target: https://pypi.org/project/sure.. image:: https://github.com/gabrielfalcao/sure/workflows/Sure%20Tests/badge.svg
:target: https://github.com/gabrielfalcao/sure/actions?query=workflow%3A%22Sure+Tests%22.. image:: https://img.shields.io/readthedocs/sure
:target: https://sure.readthedocs.io/.. image:: https://img.shields.io/github/license/gabrielfalcao/sure?label=Github%20License
:target: https://github.com/gabrielfalcao/sure/blob/master/LICENSE.. image:: https://img.shields.io/pypi/v/sure
:target: https://pypi.org/project/sure.. image:: https://img.shields.io/pypi/l/sure?label=PyPi%20License
:target: https://pypi.org/project/sure.. image:: https://img.shields.io/pypi/format/sure
:target: https://pypi.org/project/sure.. image:: https://img.shields.io/pypi/status/sure
:target: https://pypi.org/project/sure.. image:: https://img.shields.io/pypi/pyversions/sure
:target: https://pypi.org/project/sure.. image:: https://img.shields.io/pypi/implementation/sure
:target: https://pypi.org/project/sure.. image:: https://img.shields.io/github/v/tag/gabrielfalcao/sure
:target: https://github.com/gabrielfalcao/sure/releasesThe sophisticated automated test tool for Python, featuring a test
runner and a library with powerful and flexible assertions.Originally authored by `Gabriel Falcão `_.
Installing
----------.. code:: bash
pip install sure
Running tests
-------------.. code:: bash
sure tests
For More Information:
.. code:: bash
sure --help
Documentation
-------------Available on `sure.readthedocs.io `_.
To build locally run:
.. code:: bash
make docs
Quick Library Showcase
----------------------.. code:: python
from sure import expects
expects(4).to.be.equal(2 + 2)
expects(7.5).to.be.eql(3.5 + 4)expects(3).to.not_be.equal(5)
expects(9).to_not.be.equal(11).. code:: python
from sure import expects
expects({'foo': 'bar'}).to.equal({'foo': 'bar'})
expects({'foo': 'bar'}).to.have.key('foo').being.equal('bar').. code:: python
"Awesome ASSERTIONS".lower().split().should.equal(['awesome', 'assertions'])