diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9de0f0475..0bc45d58c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: token: ${{ secrets.GH_PAT }} @@ -33,7 +33,7 @@ jobs: env: COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - php-version: 8.0 + php-version: 8.1 - name: Install dependencies run: composer install --prefer-dist --no-progress diff --git a/Gemfile b/Gemfile index a8ba13c82..52816f1c6 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source 'https://rubygems.org' -gem 'jekyll', '~> 4.3.1' +gem 'jekyll', '~> 4.3.3' gem 'kramdown' gem 'rouge' gem 'webrick' diff --git a/README.md b/README.md index 918c34b10..925d83538 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Codeception Site +# Codeception.com Website https://codeception.com diff --git a/RoboFile.php b/RoboFile.php index 770ca1403..cb6a82e2f 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -11,7 +11,8 @@ class RoboFile extends \Robo\Tasks const REPO_BLOB_URL = 'https://github.com/Codeception/Codeception/blob'; const BRANCH_4x = '4.2'; - const BRANCH_5x = '5.0'; + const BRANCH_5x = '5.1'; + const BRANCH_MAIN = 'main'; function post() { @@ -263,7 +264,7 @@ public function buildDocsExtensions() ->prepend("# Official Extensions\n") ->processClassSignature(function (ReflectionClass $r, $text) { $name = $r->getShortName(); - return "## $name\n\n[See Source](" . self::REPO_BLOB_URL . "/" . self::BRANCH_5x . "/ext/$name.php)"; + return "## $name\n\n[See Source](" . self::REPO_BLOB_URL . "/" . self::BRANCH_MAIN . "/ext/$name.php)"; }) ->filterMethods(function (ReflectionMethod $r) { return false; @@ -419,7 +420,7 @@ public function buildPhar80() $this->stopOnFail(); $this->taskFilesystemStack()->mkdir('build/80')->run(); - $this->setCodeceptionVersionTo('^5.0'); + $this->setCodeceptionVersionTo('^' . self::BRANCH_5x); $this->setPlatformVersionTo('8.0.2'); $buildFile = 'build/80/codecept.phar'; $this->buildPhar($buildFile); diff --git a/_config.yml b/_config.yml index 4be72f287..1339b5f28 100644 --- a/_config.yml +++ b/_config.yml @@ -29,4 +29,4 @@ banner: # disable content to show last blogpost # content: '๐ŸŽ‰ Codeception truns 10! Join online celebration on November 30!' # content: 'Codeception is on OpenCollective! Support us ๐Ÿ’–' - content: '๐ŸŽ‰ Codeception 5 is out! | ๐Ÿ‡บ๐Ÿ‡ฆ Help Ukraine!' + content: '๐Ÿ‡บ๐Ÿ‡ฆ Help Ukraine!' diff --git a/_data/extensions.yml b/_data/extensions.yml index fc0428a10..f5c77f180 100644 --- a/_data/extensions.yml +++ b/_data/extensions.yml @@ -1,3 +1,8 @@ +- name: Testomat.io Reporter + link: https://github.com/testomatio/php-reporter + description: Run reports and analytics via [Testomat.io](https://testomat.io) + image: https://testomat.io/wp-content/uploads/2022/03/Real_time_report_test_result-936x573.jpg + - name: Allure Codeception Adapter link: https://github.com/allure-framework/allure-codeception description: This is a Codeception adapter for [Allure Framework](http://allure.qatools.ru) diff --git a/_data/modules.yml b/_data/modules.yml index 6b8b770e3..06df2206a 100644 --- a/_data/modules.yml +++ b/_data/modules.yml @@ -87,10 +87,14 @@ description: Codeception module to test email using MailCare.io (Free, Open Source or paid services). color: "#e65722" +- name: Mailpit + image: ../images/mailpit.svg + link: https://github.com/koehnlein/codeception-email-mailpit + description: Mailpit is a standalone local SMTP server to test email deliveries. The Codeception module provides assertions such as `$I->haveUnreadEmails();` or `$I->seeInOpenedEmailHtmlBody()`. + - name: MailCatcher link: https://github.com/captbaritone/codeception-mailcatcher-module description: MailCatcher is a standalone software which can be configured to catch *any* email sent by your development server, and display it on a webpage. The MailCatcher Module allows you to test the contents of those emails in an acceptance test. - color: "#FFF5C4" - name: MailSMTP link: https://github.com/AhmedSamy/codeception-smtp-mail @@ -161,3 +165,7 @@ - name: Yandex link: https://github.com/portrino/codeception-yandex-module description: Validation of structured data via yandex API. + +- name: Grpc + link: https://github.com/MercerMorning/codeception-grpc-module + description: Validation of grpc server. diff --git a/_includes/algolia.html b/_includes/algolia.html index 58043c85f..415a7dad3 100644 --- a/_includes/algolia.html +++ b/_includes/algolia.html @@ -1,24 +1,25 @@ diff --git a/_includes/announcement.html b/_includes/announcement.html deleted file mode 100644 index 3a23886a3..000000000 --- a/_includes/announcement.html +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/_includes/cloudways.html b/_includes/cloudways.html index 2ee33cbda..b283aee3a 100644 --- a/_includes/cloudways.html +++ b/_includes/cloudways.html @@ -1,3 +1,4 @@ - - cloudways + + cloudways diff --git a/_includes/extensions.md b/_includes/extensions.md index 107bd5f04..9d9df2b06 100644 --- a/_includes/extensions.md +++ b/_includes/extensions.md @@ -2,10 +2,10 @@ ## DotReporter -[See Source](https://github.com/Codeception/Codeception/blob/5.0/ext/DotReporter.php) +[See Source](https://github.com/Codeception/Codeception/blob/main/ext/DotReporter.php) DotReporter provides less verbose output for test execution. -Like PHPUnit printer it prints dots "." for successful testes and "F" for failures. +Like PHPUnit printer it prints dots "." for successful tests and "F" for failures. ![](https://cloud.githubusercontent.com/assets/220264/26132800/4d23f336-3aab-11e7-81ba-2896a4c623d2.png) @@ -38,7 +38,7 @@ Use this extension as an example for building custom reporters. ## Logger -[See Source](https://github.com/Codeception/Codeception/blob/5.0/ext/Logger.php) +[See Source](https://github.com/Codeception/Codeception/blob/main/ext/Logger.php) Log suites/tests/steps using Monolog library. Monolog should be installed additionally by Composer. @@ -66,16 +66,16 @@ extensions: ## Recorder -[See Source](https://github.com/Codeception/Codeception/blob/5.0/ext/Recorder.php) +[See Source](https://github.com/Codeception/Codeception/blob/main/ext/Recorder.php) -Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](https://codeception.com/images/recorder.gif)) -Activated only for suites with WebDriver module enabled. +Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](https://codeception.com/images/recorder.gif)). +Works only for suites with WebDriver module enabled. The screenshots are saved to `tests/_output/record_*` directories, open `index.html` to see them as a slideshow. #### Installation -Add this to the list of enabled extensions in `codeception.yml` or `acceptance.suite.yml`: +Add this to the list of enabled extensions in `codeception.yml` or `Acceptance.suite.yml`: ``` yaml extensions: @@ -106,7 +106,7 @@ extensions: ``` #### Skipping recording of steps with annotations -It is also possible to skip recording of steps for specified tests by using the @skipRecording annotation. +It is also possible to skip recording of steps for specified tests by using the `@skipRecording` annotation. ```php /** @@ -122,10 +122,9 @@ public function testLogin(AcceptanceTester $I) - ## RunBefore -[See Source](https://github.com/Codeception/Codeception/blob/5.0/ext/RunBefore.php) +[See Source](https://github.com/Codeception/Codeception/blob/main/ext/RunBefore.php) Extension for execution of some processes before running tests. @@ -156,9 +155,9 @@ HINT: you can use different configurations per environment. ## RunFailed -[See Source](https://github.com/Codeception/Codeception/blob/5.0/ext/RunFailed.php) +[See Source](https://github.com/Codeception/Codeception/blob/main/ext/RunFailed.php) -Saves failed tests into tests/_output/failed in order to rerun failed tests. +Saves failed tests into `tests/_output/failed` in order to rerun failed tests. To rerun failed tests just run the `failed` group: @@ -170,9 +169,9 @@ To change failed group name add: ``` --override "extensions: config: Codeception\Extension\RunFailed: fail-group: another_group1" ``` -Remember: if you run tests and they generated custom-named fail group, to run this group, you should add override too +Remember: If you run tests and they generated custom-named fail group, to run this group, you should add override too -Starting from Codeception 2.1 **this extension is enabled by default**. +**This extension is enabled by default.** ``` yaml extensions: @@ -185,15 +184,16 @@ On each execution failed tests are logged and saved into `tests/_output/failed` ## RunProcess -[See Source](https://github.com/Codeception/Codeception/blob/5.0/ext/RunProcess.php) +[See Source](https://github.com/Codeception/Codeception/blob/main/ext/RunProcess.php) Extension to start and stop processes per suite. -Can be used to start/stop selenium server, chromedriver, mailcatcher, etc. +Can be used to start/stop selenium server, chromedriver, [MailCatcher](https://mailcatcher.me/), etc. +Each command is executed only once, at the beginning of the test suite. To execute a command before each test, see [Before/After Attributes](https://codeception.com/docs/AdvancedUsage#BeforeAfter-Attributes). -Can be configured in suite config: +Can be enabled in suite config: ```yaml -# acceptance.suite.yml +# Acceptance.suite.yml extensions: enabled: - Codeception\Extension\RunProcess: @@ -203,8 +203,7 @@ extensions: Multiple parameters can be passed as array: ```yaml -# acceptance.suite.yml - +# Acceptance.suite.yml extensions: enabled: - Codeception\Extension\RunProcess: @@ -214,8 +213,7 @@ extensions: In the end of a suite all launched processes will be stopped. -To wait for the process to be launched use `sleep` option. -In this case you need configuration to be specified as object: +To wait for the process to be launched use `sleep` option. In this case you need configuration to be specified as object: ```yaml extensions: @@ -226,13 +224,13 @@ extensions: sleep: 5 # wait 5 seconds for processes to boot ``` -HINT: you can use different configurations per environment. +HINT: You can use different configurations per environment. ## SimpleReporter -[See Source](https://github.com/Codeception/Codeception/blob/5.0/ext/SimpleReporter.php) +[See Source](https://github.com/Codeception/Codeception/blob/main/ext/SimpleReporter.php) This extension demonstrates how you can implement console output of your own. Recommended to be used for development purposes only. diff --git a/_includes/for.html b/_includes/for.html deleted file mode 100644 index c2d66ef98..000000000 --- a/_includes/for.html +++ /dev/null @@ -1,55 +0,0 @@ -
-
- -
- Symfony -

Symfony

-
-
-
-
- -
- laravel -

Laravel

-
-
-
-
- -
- wordPress -

WordPress

-
-
-
-
- -
-
- -
- joomla -

joomla

-
-
-
-
- -
- yii -

Yii Framework

-
-
-
- -
- -
- Phalcon -

Phalcon

-
-
-
-
- diff --git a/_includes/frameworks.html b/_includes/frameworks.html new file mode 100644 index 000000000..e8e305b13 --- /dev/null +++ b/_includes/frameworks.html @@ -0,0 +1,35 @@ +
+
+ +
+ Symfony +

Symfony

+
+
+
+
+ +
+ laravel +

Laravel

+
+
+
+
+ +
+ yii +

Yii Framework

+
+
+
+
+ +
+ Phalcon +

Phalcon

+
+
+
+
+ diff --git a/_includes/hero.html b/_includes/hero.html index cb9ecbbbc..b63456449 100644 --- a/_includes/hero.html +++ b/_includes/hero.html @@ -1,26 +1,19 @@ - -
-
-
- code example - -

PHP Testing for
everyone_

- -

- Codeception collects and shares best practices and solutions for testing PHP web applications. With a flexible - set of included modules tests are easy to write, easy to use and easy to maintain.
-

- - -
-
+
+
+ code example +

PHP Testing for
everyone_

+

+ Codeception collects and shares best practices and solutions for testing PHP web applications. With a + flexible + set of included modules tests are easy to write, easy to use and easy to maintain.
+

+ +
-
- diff --git a/_includes/joomla_hero.html b/_includes/joomla_hero.html index 4e2b2405e..efea67de8 100644 --- a/_includes/joomla_hero.html +++ b/_includes/joomla_hero.html @@ -1,15 +1,14 @@
-
-
-
-
-

- Codeception for - - Joomla

- +
+
+
+
+

+ Codeception for + Joomla +

+
+
-
-
-
\ No newline at end of file +
diff --git a/_includes/js.html b/_includes/js.html index ab2622bd2..8bee78f05 100644 --- a/_includes/js.html +++ b/_includes/js.html @@ -1,5 +1,7 @@ - + \ No newline at end of file diff --git a/_includes/laravel_hero.html b/_includes/laravel_hero.html index 300478491..fad0bacef 100644 --- a/_includes/laravel_hero.html +++ b/_includes/laravel_hero.html @@ -1,15 +1,14 @@
-
-
-
-
-

- Codeception for - - Laravel Framework Laravel -

+
+
+
+
+

+ Codeception for + Laravel Framework Laravel +

+
+
-
-
\ No newline at end of file diff --git a/_includes/modules.html b/_includes/modules.html index 064f069d6..1a27a238f 100644 --- a/_includes/modules.html +++ b/_includes/modules.html @@ -4,7 +4,7 @@
  • Cli
  • DataFactory
  • Db
  • -
  • Doctrine2
  • +
  • Doctrine
  • FTP
  • Filesystem
  • Laminas
  • @@ -23,4 +23,4 @@
  • SOAP
  • Symfony
  • WebDriver
  • -
  • Yii2
  • \ No newline at end of file +
  • Yii2
  • diff --git a/_includes/phalcon_hero.html b/_includes/phalcon_hero.html index c208c7aaa..5ae0f4a36 100644 --- a/_includes/phalcon_hero.html +++ b/_includes/phalcon_hero.html @@ -1,15 +1,13 @@
    -
    -
    -
    -
    -

    - Codeception for - - Phalcon

    - +
    +
    +
    +
    +

    + Codeception for + Phalcon

    +
    +
    -
    -
    diff --git a/_includes/phar.html b/_includes/phar.html index f561fa3af..203c45952 100644 --- a/_includes/phar.html +++ b/_includes/phar.html @@ -1,125 +1,110 @@ -
    -
    - - -
    - -
    -
    -
    - - Download -
    -
    - -
    -
    wget https://codeception.com/php80/codecept.phardownload 
    +    
    + +
    +
    +
    +
    + Download +
    +
    +
    +
    wget https://codeception.com/php80/codecept.phardownload 
    +
    +
    +
    +

    + Execute it as + php codecept.phar

    - -
    -
    -

    - Execute it as - - php codecept.phar

    -
    -
    - -
    - - -
    - -
    -
    -
    - - Download -
    -
    - -
    +
    + +
    +
    +
    +
    + Download +
    +
    +
    wget https://codeception.com/codecept.phardownload 
    + class="glyphicon glyphicon-download"> +
    +
    +
    +

    + Execute it as + php codecept.phar

    - -
    -
    -

    - Execute it as - - php codecept.phar

    -
    -
    - -
    - -
    -
    -
    -
    - Download -
    -
    - -
    +
    + +
    +
    +
    +
    + Download +
    +
    +
    wget https://codeception.com/php56/codecept.phardownload 
    + class="glyphicon glyphicon-download"> +
    +
    +
    +

    + Execute it as + php codecept.phar

    - -
    -

    - Execute it as - - php codecept.phar

    -
    - -
    - -
    - -
    -
    -
    - -
    sudo curl -LsS https://codeception.com/php80/codecept.phar -o /usr/local/bin/codecept
    -
    sudo chmod a+x /usr/local/bin/codecept
    +
    + +
    +
    +
    +
    sudo curl -LsS https://codeception.com/php80/codecept.phar -o /usr/local/bin/codecept
    +
    sudo chmod a+x /usr/local/bin/codecept
    +
    +

    + Execute it as + codecept

    +
    -

    - Execute it as - - codecept

    - -
    -
    - -
    +
    \ No newline at end of file diff --git a/_includes/reference.html b/_includes/reference.html index 9ff7705ae..0e8a7cfc8 100644 --- a/_includes/reference.html +++ b/_includes/reference.html @@ -1 +1,11 @@ -
  • Autoload
  • Fixtures
  • Functions
  • HttpCode
  • InitTemplate
  • JsonType
  • Locator
  • Mock
  • Module
  • Stub
  • XmlBuilder
  • \ No newline at end of file +
  • Autoload
  • +
  • Fixtures
  • +
  • Functions
  • +
  • HttpCode
  • +
  • InitTemplate
  • +
  • JsonType
  • +
  • Locator
  • +
  • Mock
  • +
  • Module
  • +
  • Stub
  • +
  • XmlBuilder
  • \ No newline at end of file diff --git a/_includes/rss.html b/_includes/rss.html index 2c6815c48..ba7ed178d 100644 --- a/_includes/rss.html +++ b/_includes/rss.html @@ -1,21 +1,22 @@ - {{ site.title }} - - + {{ site.title }} + + + {{ site.time | date_to_xmlschema }} + {{ site.url }} + + Michael Bodnarchuk "Davert" + + Copyright (c) Codeception - {{ site.time | date_to_xmlschema }} - {{ site.url }} - Michael Bodnarchuk "Davert" - Copyright (c) Codeception - - {% for post in site.posts limit:30 %} - - {{ post.title }} - - {{ post.date | date_to_xmlschema }} - {{ site.url }}{{ post.url }}/ - {{ post.content | strip_html | truncatewords: 20 }} - - {% endfor %} + {% for post in site.posts limit:30 %} + + {{ post.title }} + + {{ post.date | date_to_xmlschema }} + {{ site.url }}{{ post.url }}/ + {{ post.content | strip_html | truncatewords: 20 }} + + {% endfor %} \ No newline at end of file diff --git a/_includes/sponsors.html b/_includes/sponsors.html index 426cbd9f7..788179c46 100644 --- a/_includes/sponsors.html +++ b/_includes/sponsors.html @@ -1,44 +1,40 @@
    -
    -
    -
    - -

    Premium Sponsors

    -
    - -
    - - SomewhereWarm - - - OpenClassrooms - - - Cloudways - + + + + + + + + + + + + + +
    - -
    -
    - - -

    Sponsors

    -
    - -
    - - Themeisle - Premium WordPress themes, Templates & Plugins - - - - VPNwelt - Privacy Protection on the Internet 2021 - -
    - -
    -
    -
    diff --git a/_includes/switch.html b/_includes/switch.html index fc6e4cc77..723a5d06f 100644 --- a/_includes/switch.html +++ b/_includes/switch.html @@ -1,5 +1,5 @@ diff --git a/_includes/symfony_hero.html b/_includes/symfony_hero.html index 50c236997..551560d17 100644 --- a/_includes/symfony_hero.html +++ b/_includes/symfony_hero.html @@ -1,15 +1,14 @@
    -
    -
    -
    -
    -

    - Codeception for - - Symfony Framework -

    +
    +
    +
    +
    +

    + Codeception for + Symfony Framework +

    +
    +
    -
    -
    \ No newline at end of file diff --git a/_includes/tweets.html b/_includes/tweets.html index 32179cf74..8bb370128 100644 --- a/_includes/tweets.html +++ b/_includes/tweets.html @@ -1,62 +1,82 @@
    - +
    -
    - +
    -
    - +
    -
    - +
    -
    - +
    -
    - +
    -
    - +
    - - diff --git a/_includes/twitter.html b/_includes/twitter.html index 67bd95994..da40a33a0 100644 --- a/_includes/twitter.html +++ b/_includes/twitter.html @@ -1,17 +1,15 @@ \ No newline at end of file diff --git a/_includes/wp_hero.html b/_includes/wp_hero.html index f4452c8ea..504013364 100644 --- a/_includes/wp_hero.html +++ b/_includes/wp_hero.html @@ -1,14 +1,13 @@
    -
    -
    -
    -
    -

    - Codeception for - - WordPress

    +
    +
    +
    +
    +

    + Codeception for + WordPress

    +
    +
    -
    -
    \ No newline at end of file diff --git a/_includes/yii_hero.html b/_includes/yii_hero.html index d460d8dcd..67f7fbe11 100644 --- a/_includes/yii_hero.html +++ b/_includes/yii_hero.html @@ -1,15 +1,14 @@
    -
    -
    -
    -
    -

    - Codeception for - - Yii Framework -

    +
    +
    +
    +
    +

    + Codeception for + Yii Framework +

    +
    +
    -
    -
    \ No newline at end of file diff --git a/_includes/zf_hero.html b/_includes/zf_hero.html index 02f0c9623..ef3e26f02 100644 --- a/_includes/zf_hero.html +++ b/_includes/zf_hero.html @@ -1,28 +1,26 @@
    - -
    -
    -
    -
    -

    - Codeception for - - Laravel Framework - Zend Framework 2 -

    +
    +
    +
    +
    +

    + Codeception for + Laravel Framework + Zend Framework 2 +

    +
    +
    +
    +

    ZF2 Module

    +

    Maintainer

    +

    +

    Gintautas Miselis

    +

    GitHub

    +

    naktibalda@

    +
    +
    +
    - -
    -
    -

    ZF2 Module

    -

    Maintainer

    -

    -

    Gintautas Miselis

    -

    GitHub

    -

    naktibalda@

    -
    -
    -
    -
    \ No newline at end of file diff --git a/_layouts/bootstrap.html b/_layouts/bootstrap.html index 0fcce1ce5..f8abba6f5 100644 --- a/_layouts/bootstrap.html +++ b/_layouts/bootstrap.html @@ -10,17 +10,15 @@ - - - - + - @@ -31,303 +29,255 @@ - + - - + - - - {% if site.banner %} - - +{% if site.banner %} + + +{% if page.hero %} +
    {% include {{ page.hero }} %}
    +{% endif %} + +
    + {{ content }} +
    +{% if page.hero %} +{% include sponsors.html %} +{% endif %}
    - - -