forked from Codeception/codeception.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.html
More file actions
111 lines (85 loc) · 2.56 KB
/
install.html
File metadata and controls
111 lines (85 loc) · 2.56 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
layout: bootstrap
title: Codeception Installation
---
<div class="page-header">
<div class="pull-right well">
<h4>Requirements</h4>
<strong>
<div>PHP 5.3</div>
<div>CURL enabled</div>
</strong>
</div>
<h1>Installation</h1>
</div>
<div class="row">
<div class="span8">
<div class="page-header">
<a class="pull-right btn btn-large btn-primary" href="/quickstart"><span class="btn-label">QuickStart Guide</span></a>
<h4>Follow QuickStart Guide to Install and execute your first test in 6 easy
steps.
Alternatively you can choose one of the packages to install Codeception
</h4>
</div>
</div>
</div>
<div class="row">
<div class="span4">
<div class="well">
<h3>Phar (Recommended)</h3>
<a class="btn btn-large btn-success" href="/thanks"><span class="btn-label">Download Codeception</span></a>
<p>Grab Codeception phar executable</p>
<div>
<p>
<code>wget http://codeception.com/codecept.phar .</code>
</p>
</div>
<p>Prepare tests directory and configs</p>
<div>
<p>
<code>php codecept.phar bootstrap</code>
</p>
</div>
</div>
</div>
<div class="span4">
<div>
<h4>Composer</h4>
<p>Install a <a href="http://getcomposer.org">Composer</a> to your project's root</p>
<p>Run</p>
<p>
<code>php composer.phar require "codeception/codeception:@stable"</code>
</p>
<p>From now on Codeception (with installed PHPUnit) can be run as:</p>
<p>
<code>vendor/bin/codecept</code>
</p>
<p>Initialize your testing environment with</p>
<p>
<code>vendor/bin/codecept bootstrap</code>
</p>
</div>
</div>
<div class="span4">
<h4>PEAR</h4>
<p>Old-school style</p>
<p>
<code>$ pear channel-discover codeception.com/pear</code>
</p>
<p>
<code>$ pear install codeception/Codeception</code>
</p>
<p>If you got troubles running this command, please try full package name:</p>
<p>
<code>$ pear install codeception.github.com/pear/Codeception</code>
</p>
<p>
If this didn't work either, please try to update your PEAR or clear the PEAR cache. Also, please, check you use the same PHP for CLI and Web</p>
<p>
Initialize your testing environment with
</p>
<p>
<code>$ codecept bootstrap</code>
</p>
</div>
</div>