Plugin development: How many plugin and WordPress version combinations to support?

I’m developing a plugin (my first plugin), and I wonder how to think about [supporting and testing various plugin version and WordPress version combinations]. For example, if I develop a plugin, and release versions 1.0 and 1.1 and 2.0. Meanwhile, WordPress releases versions 3.2, 3.3 and 3.4. Now, at the one extreme: Should I assume … Read more

How do I get my Maven Integration tests to run

I have a maven2 multi-module project and in each of my child modules I have JUnit tests that are named Test.java and Integration.java for unit tests and integration tests respectively. When I execute: mvn test all of the JUnit tests *Test.java within the child modules are executed. When I execute mvn test -Dtest=**/*Integration none of … Read more

How to test code dependent on environment variables using JUnit?

I have a piece of Java code which uses an environment variable and the behaviour of the code depends on the value of this variable. I would like to test this code with different values of the environment variable. How can I do this in JUnit? I’ve seen some ways to set environment variables in … Read more

Is there a way to activate different theme for specified users? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Asking to recommend a product (plugin, theme, book, hosting provider), tool, library or off-site resource is out of scope of the site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. Closed … Read more

ReferenceError: describe is not defined NodeJs

I am trying to define some endpoints and do a test using nodejs. In server.js I have: var express = require(‘express’); var func1 = require(‘./func1.js’); var port = 8080; var server = express(); server.configure(function(){ server.use(express.bodyParser()); }); server.post(‘/testend/’, func1.testend); and in func1.js: var testend = function(req, res) { serialPort.write(“1”, function(err, results) { serialPort.write(“2” + “\n”, function(err, … Read more

Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update

My server is updating to PHP 5.6 next week. I manage about 30 WordPress websites. I looked for a plugin that would check if any of the code throughout the other plugins and theme would break with the update. I tried using the log deprecated notices plugin but it didn’t seem very conclusive as to … Read more

Disadvantages of Test Driven Development? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

Best way to notify WordPress plugin users of new release candidates for beta testing?

Over the years I have developed a few WordPress plugins for my own use and shared some via the WordPress.org plugins directory. I have recently made some changes to one of my shared plugins and would like to share the updates but I don’t want to risk breaking a website that uses it. I believe … Read more

Deploy WordPress From Local Docker to Hosting Provider

I’ve seen articles that teach how to migrate WordPress into Docker containers (see also here). I want to do the opposite. I am already running WordPress locally via Docker on my Windows 10 laptop. I want to migrate my local (containerized) WordPress instance into a hosted provider (e.g. WP Engine, GoDaddy, Bluehost, etc.). I don’t … Read more