A
A
Alexey Kuznetsov2013-12-14 20:13:40
PHP
Alexey Kuznetsov, 2013-12-14 20:13:40

How to run tests from PhpStorm on a remote server?

So, we have approximately the following project structure:
- protected
- public
- tests
Index.php and static files are in the public folder. In the protected folder - all the logic. In the tests folder - tests. The code is deployed to a remote server. It is required to run tests on a remote server from PhpStorm. But we have a known restriction on access via http. Running tests via ssh in PhpStorm is still only in the plans . How can I do this now?
PS If you are also not indifferent to this issue, add your vote to the above feature...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OnYourLips, 2013-12-14
@OnYourLips

Those. you don't have a test environment set up on your working machine?
On the machine where the code is running it is configured, on the machine where PhpStorm is running it is not. This is common practice.
It is done like this: Run - Edit Configuration - PHPUnit on Server

_
_ _, 2013-12-14
@AMar4enko

Those. you don't have a test environment set up on your working machine?
Do you develop, upload to a remote server, then run tests there?
What is the profit? How then to see which tests passed and which did not?
Usually the development process is structured in such a way that you make improvements on your machine, immediately write tests for them, make sure that they pass, push the changes to the repository in a separate branch.
A hook is configured in the repository, which drags the code from this branch to the CI server. The CI server once a day, for example, runs all the tests of the project. Before the release, you make sure that all tests pass on your CI server, merge the changes into the master.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question