You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TeamCity is a hotsed solution from JetBrains. The setup of it can be a bit tricky as TeamCity uses its own reporter format for parsing test results. PHPUnit since verison 5.x has integrated support for this format, so does Codeception. What we need to do is to configure Codeception to use custom reporter. By default there is `--report` option which provides an alternative output. You can change the reporter class in `codeception.yml` configuration:
94
94
@@ -112,7 +112,7 @@ After you create build project you should define build step with Codeception whi
112
112
113
113
Once you execute your first build you should see detailed report inside TeamCity interface:
@@ -132,9 +132,9 @@ Travis doesn't provide visualization for XML or HTML reports so you can't view r
132
132
133
133
## GitLab
134
134
135
-
If a file {% highlight yaml %}
136
-
.gitlab-ci.yml
137
-
{% endhighlight %} exists in the root of the git repository, gitlab will run a pipeline each time you push to the gitlab server. The file configures the docker image that will be called. Below is a sample which loads a php7 docker image, clones your files, installs composer dependencies, runs the built-in php webserver and finally runs codeception:
If a file `.gitlab-ci.yml`exists in the root of the git repository, GitLab will run a pipeline each time you push to the gitlab server. The file configures the docker image that will be called. Below is a sample which loads a php7 docker image, clones your files, installs composer dependencies, runs the built-in php webserver and finally runs codeception:
For acceptance testing you can use `codeception/codeception` docker image as base.
169
+
166
170
## Conclusion
167
171
168
172
It is tringly recommended to use Continuous Integration system in development. Codeception is easy to install and run in any CI systems. However, each of them has their differences you should take into account. You can use different repoters to provide output in format expected by CI system.
0 commit comments