phpunit, to random
@phpunit@phpc.social avatar
markusstaab, to random German
@markusstaab@phpc.social avatar

With todays contributed patch, process isolation on windows has 20-25% less overhead per test.

phpunit end-to-end test-suite is running 15 seconds faster.

should translate to any process isolated test on windows after next release.

dbu, to random
@dbu@phpc.social avatar

asking for some tech help: in the FOSHttpCache test listener, we start a PHP web server if needed. with phpunit 9, we checked the test suite for a specific group to know if we need to start it. i am moving to phpunit 10 but can't find how to detect the groups anymore: https://github.com/FriendsOfSymfony/FOSHttpCache/pull/565/files#r1538713152
#phpunit

sebastian, to php
@sebastian@phpc.social avatar

Over the last few months, I've been asked time and again:

"Sebastian, which PHP extension do you use to collect code coverage data?"

This question may sound simple, but to answer it I'm afraid I need to elaborate a little ...

https://thephp.cc/articles/pcov-or-xdebug?ref=mastodon

phpunit, to random
@phpunit@phpc.social avatar
alda, to php
@alda@topspicy.social avatar

wp-tests-strapon has been finally published on Packagist as aldavigdis/wp-tests-strapon.

PHPUnit 9 (which large parts of the WP community is stuck with) is now supported out of the box as well as the more recent version 10.

This means that it can be installed using composer require --dev aldavigdis/wp-tests-strapon directly.

More at https://packagist.org/packages/aldavigdis/wp-tests-strapon

sebastian, to berlin
@sebastian@phpc.social avatar

I am happy to announce that I will return to #SymfonyLive #Berlin this year.

Come to my talk "Testing with Doubles: Why, When, and How?" and learn the ins and outs of stubs and mocks. You will understand how #PHPUnit's test double functionality works and which parts of it you should stay clear of.

ctietze, to random
@ctietze@mastodon.social avatar

Powerful thing I learned about today:

#PHPUnit 'data providers'.

It's a tool to meta-program your tests. Declare a test function with input parameters, and use a data provider (a function that returns an array of positional parameters to fit your function) and you'll end up with as many test variations as you have items in the data provider's array.

I guess this is a step in the direction of property based testing, but with manual test data generation and it's associated flaws.

markusstaab, to opensource German
@markusstaab@phpc.social avatar

anyone aware of a which is heavily relying on process isolation?

I am working on reducing overhead of process isolation and would love testing my progress on a real world test-suite.

RT welcome

oliklee, to php German
@oliklee@chaos.social avatar

Die -Beispielextension zum mit und die -Live-Templates von meiner Session auf dem sind hier zu finden: https://github.com/FriendsOfTYPO3/tea/ https://github.com/oliverklee/tdd-reader/tree/main/Resources/PhpStorm

sebastian, to php
@sebastian@phpc.social avatar

Looking at the website, I do not see a Call for Papers. Is it already over? Will there be none? Am I blind? I would like to share what we have been up to in land with the community 😉

markusstaab, to random German
@markusstaab@phpc.social avatar

#microoptimizing #phpunit progress until now.

a few 0.x% improvements and finally some 1.5% and 2-3% things.

lots of work for tiny improvements... if your test-suite runs 10-20 minutes you should see 20-40 seconds faster runs.

please consider sponsoring my efforts :-)

sebastian, to php
@sebastian@phpc.social avatar

It's that time again: I'm thinking about what I want to share at conferences about in general and with in particular.

Feel free to write your ideas and wishes in a reply to this toot.

phpunit, to random
@phpunit@phpc.social avatar
sebastian, to random
@sebastian@phpc.social avatar

I wrote about last week's #PHPUnit Code Sprint:

https://thephp.cc/articles/phpunit-code-sprint-march-2024

Thank you, @theseer, @localheinz, @sebastianheuer, @Schrank, and Frank!

sebastian, (edited ) to random
@sebastian@phpc.social avatar

#PHPUnit 10.5.12 and 11.0.5 are the first releases that use GitHub's Releases feature:

https://github.com/sebastianbergmann/phpunit/releases

Schrank, (edited ) to random German
@Schrank@phpc.social avatar

RLRT #phpunit Code Sprint @sebastian to @localheinz "If it helps, I remove your write permission" 😂

while building on a github release action.

sebastian, to random
@sebastian@phpc.social avatar

The first day of the #PHPUnit Code Sprint yesterday was great.

Among other things, @theseer, @localheinz, @sebastianheuer, @Schrank, Frank Sons, and I looked into a weird issue related to PHP's hrtime() function that is used for telemetry information in PHPUnit's event system.

https://github.com/sebastianbergmann/phpunit/commit/fac35fd7a94cc505e2b5e19157d6238beefe3f05

sebastian,
@sebastian@phpc.social avatar

In a mob programming session with @theseer, @localheinz, @sebastianheuer, @Schrank, Frank Sons, we overcame that brick wall together.

As a result, #PHPUnit 11.1 will support filtering when listing tests. This will make some tooling around PHPUnit a lot easier to implement.

phpunit, to random
@phpunit@phpc.social avatar
supergarv, to php German
@supergarv@phpc.social avatar

Auf dem Weg zum #TYPO3 Community-Sprint von Mo-Mi. 50km Luftlinie in 2,5h mit ÖPNV regelt. Gut, dass ich diesmal dort übernachte 🥲

Habe mir einiges vorgenommen, mal schauen was realistisch ist: https://notes.typo3.org/NzA5lharQI2Uvq4iNVmlvw?view

sebastian,
@sebastian@phpc.social avatar

@supergarv Viel Spaß! Ich freue mich auf den #PHPUnit Code Sprint in Hamburg am Freitag und Samstag :)

sebastian, to random
@sebastian@phpc.social avatar

I do not understand this patch coverage report from #Codecov for a pull request for #PHPUnit.

It says at the top that code coverage decreases by 0.06% overall, but the code coverage of the individual files increases.

What am I missing?

alda, to php
@alda@topspicy.social avatar

Just found out that the wp-tests-strapon Composer package works on macOS during today's pair programming session.

The only difference is that macOS seems to use a different temp directory, but PHP handles that very well.

So that's great.

https://github.com/aldavigdis/wp-tests-strapon

#PHP #WordPress #PHPUnit

symfonystation, (edited ) to php
@symfonystation@newsletter.mobileatom.net avatar

Reblog via Alejandro Celaya

New blog post! 📘

Capturing remote code coverage in #e2e tests with #phpunit #php

https://acel.me/sNvEk

#phpunit #php #e2e

https://newsletter.mobileatom.net/8736-2/

#e2e #PHP #phpunit

acelaya, to php Spanish
@acelaya@mastodon.social avatar

New blog post! 📘
Capturing remote code coverage in tests with
https://acel.me/sNvEk

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines