1

I am new to phpunit. I have developed some test cases for my php code and I am able to run them.

Is it possible to run those test cases when the classes, for which test cases are generated, are used during actual software is running?

For example, when I run software and a class A's method myMethod() is called. I want test cases for that method to run, too.

I have searched a lot but have not found anything that says how to do it. So I wonder whether it is possible.

1 Answer 1

1

You don't want to do such a thing, because it will immensely slow down your software. Typically your software (and your tests) only changes when you deploy a new version to your production server. You could use an continues integration (CI) server which you can configure to automatically run your testsuite whenever you commit to VCS or before you deploy.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.