Skip to main content

Test acceleration usable in the YourBase CI

Reason this release was yanked:

Please upgrade to YourBase 4.4 or higher.

Project description

YourBase Python Skipper

What is this?

This is a Python package you can use in conjunction with YourBase.

What does it do?

YourBase has a unique test acceleration that records the execution of your tests and builds a dependency graph that it can use to bypass tests that do not need to be run based on the changes in a commit. This helps to make those commands much finer-grained enabling more acceleration.

To achieve this, when running in the YourBase CI, this package will load a lighweight wrapper for Python that will determine if a test needs to run based on the YourBase runtime dependency graph.

How do I use this?

Simply run

pip install yourbase
pip freeze > requirements.txt

If you use pytest for testing, you're done! YourBase will attach to pytest hooks on its own. If you're using a different testing framework, you will need to decorate your tests with @accelerate_tests():

from yourbase import accelerate_tests

# ...

@accelerate_tests()
class TestApplication:
    # ...

In both situations, when you run your tests locally it will have no impact at all other than printing that it won't accelerate your tests. When you run your tests in the YourBase CI, they will be accelerated where possible.

Local development

This open source package is a lightweight wrapper for your code that plugs it into the more complex proprietary systems powering YourBase CI servers. We welcome contributions to this wrapper, but at this time we have not built shims or mocks to allow it to be tested front to back outside our systems.

Code style

We use Black for code formatting, which is similar in personality to gofmt -- ruthless consistency, no configuration. Your build will not pass CI if the Black run doesn't come back clean, so we recommend you have your editor automatically run it on save. You can run it manually with

black .

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yourbase-0.0.6.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

yourbase-0.0.6-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page