touchstone

A tool for making the writing of tests in WordPress plugins and themes easier.

MIT License

Downloads
303
Stars
17
Committers
3

Bot releases are hidden (Show)

touchstone - v4.0.0 Latest Release

Published by SebKay about 1 year ago

touchstone - v3.0.0

Published by SebKay about 1 year ago

Important

  • PHP 8.0+ is now the minimum requirement

What's Changed

Full Changelog: https://github.com/SebKay/touchstone/compare/2.2.0...3.0.0

touchstone - v2.2.0

Published by SebKay almost 2 years ago

What's Changed

Full Changelog: https://github.com/SebKay/touchstone/compare/2.1.0...2.2.0

touchstone - v2.1.0

Published by SebKay almost 2 years ago

What's Changed

Full Changelog: https://github.com/SebKay/touchstone/compare/2.0.0...2.1.0

touchstone - v2.0.0

Published by SebKay almost 2 years ago

What's Changed

Full Changelog: https://github.com/SebKay/touchstone/compare/1.3.1...2.0.0

touchstone - v1.3.1

Published by SebKay over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/SebKay/touchstone/compare/1.3.0...1.3.1

touchstone - v1.3.0

Published by SebKay over 2 years ago

What's Changed

Full Changelog: https://github.com/SebKay/touchstone/compare/1.2.0...1.3.0

Highlights

Unix Socket Support

If you need to connect to your test database via a unix socket, you can now pass the --db-socket option to the setup command.

# Example
./vendor/bin/touchstone setup --db-host=127.0.0.1:8889 --db-socket="/path/to/mysqld.sock" --db-name=touchstone_tests --db-user=root --db-pass=root
touchstone - v1.2.0

Published by SebKay almost 3 years ago

What's Changed

Full Changelog: https://github.com/SebKay/touchstone/compare/1.1.0...1.2.0

Highlights

Plugins and Theme Configuration

You can can now configure plugins and themes to use in tests, like so:

# config.touchstone.php

<?php

return [
    'plugins' => [
        [
            'name' => 'Hello Dolly',
            'file' => dirname(__FILE__) . '/bin/plugins/hello-dolly/hello.php',
        ],
    ],
    'theme' => [
        'root' => dirname(__FILE__) . '/../../themes/twentytwentyone',
    ],
];
touchstone - 1.1.0

Published by SebKay almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/SebKay/touchstone/compare/1.0.1...1.1.0

touchstone - v1.0.1

Published by SebKay about 3 years ago

touchstone - v1.0.0

Published by SebKay about 3 years ago

touchstone - v1.0.0-beta-3

Published by SebKay about 3 years ago

In this release:

  • Added: Tests for the 'setup' command.
touchstone - v1.0.0-beta-2

Published by SebKay about 3 years ago

In this beta release:

  • New: Checks to make sure test files exist before running tests.
  • Improvement: Minor tweaks to readme documentation for set up and running tests.
touchstone - v1.0.0-beta

Published by SebKay about 3 years ago

Beta release of v1 that has all the functionality, but zero test coverage of said functionality.

touchstone - v0.3.1

Published by SebKay over 3 years ago

In this release:

  • New: Added sebkay/wp-unit-test-stubs package to help with IDE class/function lookup when writing tests.
  • Fix: Added parent::setup() call to WPTS\Unit\UniteTest::setUp() method.
  • Fix: Fixed the touchstone bash script from only working when running database setup.
touchstone - v0.3.0

Published by SebKay over 3 years ago

In this release:

  • Moved all separate bash scripts into one bash file.
  • Database details can now be passed as parameters when running setup, e.g. ./vendor/bin/touchstone setup DB_NAME DB_USER DB_PASSWORD DB_HOST
touchstone - v0.2.0

Published by SebKay over 3 years ago

Integration testing support (via WP_UnitTestCase).

touchstone - v0.1.0

Published by SebKay over 3 years ago

Unit testing support.

Package Rankings
Top 18.28% on Packagist.org
Badges
Extracted from project README
PHP
Related Projects