So in #codeception in #php the `#[Group('abc')]` is completely different from the `groups:` config in yml? One is test groups and the other is "tests grouped in folders.

And you can't disable a test group by default, only via CLI param...

WTF, bro?

Has anyone manages to get out a #codeception remote #coverage (selenium) report different from 0. I have an #yii2 #php app and after 2h of struggle I made run but c3 reports 0lines coverage...

🧪 New set of tests for #rosariosis

18 new programs of RosarioSIS are now tested with #codeception through acceptance tests.

Acceptance testing is browser automation to check the app works correctly, just like a user would do by clicking buttons, filling fields, etc...

https://gitlab.com/francoisjacquet/rosariosis-meta/#codeception

#freesoftware #testing #selenium

François Jacquet / RosarioSIS meta · GitLab

Tools for RosarioSIS: Upgrade & PHP Quality Assurance (QA)

GitLab
#codeception docs say the "RunFailed" extension is enabled by default since version 2+ but dumping the config actually proves the opposite. May be I'm somehow overriding some defaults or may be they mean with the "default configuration file".

Все тесты — это юнит тесты :o

Немного веселья на серьезную тему правильного нейминга тестов и 100500 их типов и видов. Обязательно дочитай до конца, иначе пропустишь невероятно мудрый посыл ;)

https://habr.com/ru/articles/820247/

#phpunit #codeception #интеграционное_тестирование #модульное_тестирование #unit_test

Все тесты — это юнит тесты :o

Немного веселья на серьезную тему правильного нейминга тестов и 100500 их типов и видов. Определение юнит теста Пару определений с англицкой вики: Unit testing, a.k.a. component / module testing, is a...

Хабр

TIL: Codeceptions `::wantTo("xyz")` is evaluated at parsing time, not at runtime.

Means, you can't use variables or expressions in the argument. Now that was funny to discover...

If the generated FunctionalTester would at least keep the method docblocks, so IDE would have the doc directly available, that would've been faster to find.

https://github.com/Codeception/Codeception/blob/cb80cae36a97113b09065bb1d0225d0fc7746540/src/Codeception/Actor.php#L27-L37

#codeception #php

Codeception/src/Codeception/Actor.php at cb80cae36a97113b09065bb1d0225d0fc7746540 · Codeception/Codeception

Full-stack testing PHP framework. Contribute to Codeception/Codeception development by creating an account on GitHub.

GitHub

Trying to find a straightforward way to merge XML coverage reports generated by #phpunit via #CodeCeption. The end goal is a nice HTML report. I can generate the HTML report or XML for a single chunk, but none of the tooling I can find to combine the chunks works. There's an open bug in #phpcov which prevents the serialized PHP reports from being able to be combined.

I'd consider tools in php, python, node, rust, or binaries for mac or linux.

Does anyone have a go to solution?

Anybody already testing self-written APIs with Codeception? (Trying to explore the codeception REST module for #craftcms https://github.com/craftcms/cms/discussions/10284 🤔) #testing #php #codeception #ddev
What is the recommended way to setup codeception tests for controller actions · craftcms/cms · Discussion #10284

Hi, what is the recommended way to setup codeception tests for API / RESTful controller actions? I was able to setup codeception tests for Craft CMS and know a bit about fixtures, unit tests and st...

GitHub
Has anyone made #yii2 and #codeception unit tests work with no actual DB without mocking objects and etc? I know Laravel can fake it well and I haven't tried Symfony on this, TBH. The current solution (still decent) is it shoves all data changes in a transaction that gets cancelled at the end of a test. Still imperfect as all auto-increment values stay. We use a shared dev DB... don't ask...
Release 5.0.11 · Codeception/Codeception

What's Changed fix sharding for empty tests file by @SamMousa in #6667 Add AllowDynamicProperties attribute to Unit by @erickskrauch in #6666 Include mock expectations in assertion count by @rene...

GitHub