• Resolved akshatjiwan

    (@akshatjiwan)


    Hello,

    Wordpress has a comprehensive test suite that can be run on a development branch.

    However my requirement is to run these tests on a production install. I have a wordpress setup that I downloaded from the wp-cli and it’s directory structure is not similar to the development branch. The tutorial only describes how to run these tests on the development repository.

    How can I run the tests defined in the development branch to the setup I installed from the wp cli? The goal is to be able to execute these tests against the configuration file that I’ve setup in production. Is it even possible? Is there a better way to do what I’m trying to do?

    Thanks,
    Akshat

Viewing 4 replies - 1 through 4 (of 4 total)
  • Those tests are for WordPress contributors for the build of WordPress itself, not something users of WordPress releases should need to run themselves, which is why they are for the development branch. Why do you need to run them?

    Thread Starter akshatjiwan

    (@akshatjiwan)

    Thanks Jacob. I’ve written a few plugins for my wordpress site and thought that it would be a good idea to run it through the tests that the core wordpress devs have already created.

    Even if I have to write a couple of additional tests I can probably build upon the framework that has already been created. As far as I understand there is a way that you can run tests individually as well. So in case I don’t want to run the whole test suite I can always pick the test cases to run. At least that is the intention.

    What would be the best way to achieve my goal? Is there a better way to test custom wordpress setup?

    Thanks,
    Akshat

    Moderator bcworkz

    (@bcworkz)

    PHPunit is a generic command line tool to test PHP code. It can be configured to test any sort of PHP using tests that you’ve designed. You could thus run unit tests automatically on a specified schedule using CRON, directing output to a log file. You can then check the logs at your convenience.

    Thread Starter akshatjiwan

    (@akshatjiwan)

    Thanks @bcworkz. It seems that would be best way.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to run wordpress automated test suite on a release?’ is closed to new replies.