-
Notifications
You must be signed in to change notification settings - Fork 128
/
install.html
79 lines (79 loc) · 2.83 KB
/
install.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
layout: bootstrap
title: Codeception Installation
---
<div class="container">
<div class="page-header">
<div class="intro-block">
<h1>Installation</h1>
<div class="pull-right well well-custom">
<h4>Requirements</h4>
<strong>PHP 5.6+</strong>
<strong>CURL enabled</strong>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-8 col-lg-8">
<div class="well well-custom-row">
<h4>Follow QuickStart Guide to Install and execute your first test in 6 easy
steps.
</h4>
<a class="btn btn-lg btn-warning" href="/quickstart">QuickStart Guide →</a>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-lg-6">
<div class="page">
<h3>Composer <small><i>(recommended)</i></small></h3>
<p>To install via <a href="https://getcomposer.org">Composer</a>, run this in your project's root:</p>
<div class="highlight">
<pre><code>composer require "codeception/codeception" --dev</code></pre>
</div>
<p>From now on Codeception (with installed PHPUnit) can be run as:</p>
<div class="highlight">
<pre><code>php vendor/bin/codecept</code></pre>
</div>
<p>Initialize your testing environment with</p>
<div class="highlight">
<pre><code>php vendor/bin/codecept bootstrap</code></pre>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-6">
<h3>Phar</h3>
{% include phar.html %}
</div>
</div>
<hr>
<div class="row page">
<h3>Git</h3>
<p>Alternative installation method for bugfixing, contributions and hacking</p>
<p>
Clone from GitHub:
</p>
<div class="highlight">
<pre><code>git clone [email protected]:Codeception/Codeception.git && cd Codeception</code></pre>
</div>
<p>
Install dependencies with Composer
</p>
<div class="highlight">
<pre><code>composer install</code></pre>
</div>
<p>
Execute bootstrap, specifying path to your directory.
</p>
<div class="highlight">
<pre><code>php codecept bootstrap /path/to/demo/project</code></pre>
</div>
<p>
To <strong>run tests</strong> use <code>-c</code> option for specifing path.
</p>
<div class="highlight">
<pre><code>php codecept run -c /path/to/demo/project</code></pre>
</div>
<p>Don't forget to send Pull Requests!</p>
</div>
</div> <!-- /.container -->