#codeception — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #codeception, aggregated by home.social.
-
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...
-
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...
-
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...
-
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...
-
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...
-
#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
-
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.
-
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
-
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...
-
Running #codeception on a #PHP >=8.1 project?
Don't do a full composer update, latest #phpunit 10.x is incompatible with current codeception, due to changes in internal API:
-
When I need to do this kind of refactoring:
https://gitlab.com/johanv/1jg/-/merge_requests/10/diffs
I'm glad that I use value objects for identifiers, and that I have static analysis and automatic tests. #php #1jg #phpstan #codeception -
Can anybody try to explain to me what I need #codeception for? From my perspective it has no real advantages over using #PHPUnit with a few additional libraries. It just introduces more code that might fail or be unsupported in the future, requires quite a lot of boilerplate and there are probably far less developers knowing codeception than PHPUnit. And acception testing can be done with either of those, I don't see much value added here as well.
-
First unit test failing with #codeception. Kind of prod that finally it shows something. It showed, though, that I should not rely on existing random data for my tests, because what? Yes, data kill disappear. Now I have to go back and learn the toolset and do it properly. :) #phpunit
-
The Workshop: Accept testing with Codeception - php[architect] Magazine April 2022
-
Someone is running and debugging code on my SW model already! #codeception