@@ -15,7 +15,7 @@ <h1>Installation</h1>
1515 </ div >
1616 < div class ="row ">
1717 < div class ="col-sm-8 col-lg-8 ">
18- < div class ="page-header ">
18+ < div class ="well ">
1919 < div class ="pull-right ">
2020
2121 < a class ="btn btn-lg btn-warning " href ="/quickstart "> QuickStart Guide →</ a >
@@ -28,55 +28,37 @@ <h4>Follow QuickStart Guide to Install and execute your first test in 6 easy
2828 </ div >
2929 < div class ="row ">
3030 < div class ="col-sm-6 col-lg-6 ">
31- < div class ="well ">
32- < h3 > Phar</ h3 >
33- < a class ="btn btn-lg btn-success " href ="/thanks "> < span class ="btn-label "> Download Codeception</ span > </ a >
34- < p > Alternatively download it from console</ p >
35- < div >
36- < p >
37- < pre > < code > wget http://codeception.com/codecept.phar</ code > </ pre >
38- </ p >
39- </ div >
40- < p > < a href ="http://codeception.com/php5/codecept.phar "> Download phar for for PHP 5.x</ a > </ p >
41- < p > For PHP 5.3 < a href ="/builds "> use the latest version of Codeception 1.8.x</ a > </ p >
42- < p > Prepare tests directory and configs</ p >
43- < div >
44- < p >
45- < pre > < code > php codecept.phar bootstrap</ code > </ pre >
46- </ p >
47- </ div >
48- </ div >
49- </ div >
50- < div class ="col-sm-6 col-lg-6 ">
51- < div >
52- < h3 > Composer</ h3 >
31+ < div class ="page ">
32+ < h3 > Composer < small > < i > (recommended)</ i > </ small > </ h3 >
5333 < p > Install a < a href ="http://getcomposer.org "> Composer</ a > to your project's root</ p >
5434 < p > Run</ p >
55- < p >
56- < pre > < code > php composer.phar require " codeception/codeception:*" </ code > </ pre >
57- </ p >
35+ < div class =" highlight " >
36+ < pre > < code > composer require codeception/codeception --dev </ code > </ pre >
37+ </ div >
5838 < p > From now on Codeception (with installed PHPUnit) can be run as:</ p >
59- < p >
39+ < div class =" highlight " >
6040 < pre > < code > php vendor/bin/codecept</ code > </ pre >
61- </ p >
41+ </ div >
6242 < p > Initialize your testing environment with</ p >
63- < p >
43+ < div class =" highlight " >
6444 < pre > < code > php vendor/bin/codecept bootstrap</ code > </ pre >
65- </ p >
45+ </ div >
6646 < h3 > Minimal Codeception</ h3 >
6747 < p > Currently Codeception installs Webdriver and Guzzle libraries as dependencies. If you don't plan to do acceptance testing, you can get minimal installation of Codeception by requiring `codeception/base`</ p >
68- </ div >
69- < p > < a href ="http://codeception.com/php54/codecept.phar "> Download phar for PHP 5.4 and 5.5</ a > </ p >
70- < p > For PHP 5.3 < a href ="/builds "> use the latest version of Codeception 1.8.x</ a > </ p >
7148
49+ < p > Prepare tests directory and configs</ p >
50+ < div class ="highlight ">
51+ < pre > < code > composer require codeception/base --dev</ code > </ pre >
52+ </ div >
7253
73- < p > Prepare tests directory and configs</ p >
74- < div >
75- < p >
76- < pre > < code > php composer.phar require "codeception/base:*" --dev</ code > </ pre >
77- </ p >
7854 </ div >
55+
56+ </ div >
57+ < div class ="col-sm-6 col-lg-6 ">
58+ < h3 > Phar</ h3 >
59+ {% include phar.html %}
7960 </ div >
61+
8062 </ div >
8163 < hr >
8264 < div class ="row page ">
@@ -85,26 +67,37 @@ <h3>Git</h3>
8567 < p >
8668 Clone from GitHub:
8769 </ p >
88- < pre > < code > git clone git@github.com:Codeception/Codeception.git</ code > </ pre >
70+ < div class ="highlight ">
71+ < pre > < code > git clone git@github.com:Codeception/Codeception.git && cd Codeception</ code > </ pre >
72+ </ div >
8973 < p >
9074 Install dependencies with Composer
9175 </ p >
92- < p >
76+ < div class =" highlight " >
9377 < pre > < code > cd Codeception
94- curl -s http://getcomposer.org/installer | php
95- php composer.phar install</ code > </ pre >
96- </ p >
78+ composer install</ code > </ pre >
79+ </ div >
9780 < p >
9881 Execute bootstrap, specifying path to your directory.
9982 </ p >
100- < pre > < code > php codecept bootstrap /path/to/my/project</ code > </ pre >
83+ < div class ="highlight ">
84+ < pre > < code > php codecept bootstrap /path/to/demo/project</ code > </ pre >
85+ </ div >
10186 < p >
10287 To < strong > run tests</ strong > use < code > -c</ code > option for specifing path.
10388 </ p >
104- < pre > < code > php codecept run -c /path/to/my/project</ code > </ pre >
89+ < div class ="highlight ">
90+ < pre > < code > php codecept run -c /path/to/demo/project</ code > </ pre >
91+ </ div >
10592 < p > If you want to build phar package you need to install < a href ="http://robo.li "> Robo Task Runner</ a > and execute
106- < code > robo build:phar</ code >
10793 </ p >
94+ < div class ="highlight ">
95+ < pre > < code > robo build:phar</ code > </ pre >
96+ </ div >
97+ < p > To generate documentation files run</ p >
98+ < div class ="highlight ">
99+ < pre > < code > robo build:docs</ code > </ pre >
100+ </ div >
108101 </ p >
109102 < p > Don't forget to send Pull Requests!</ p >
110103 </ div >
0 commit comments