Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110393 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 97655 invoked from network); 5 Jun 2020 18:21:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Jun 2020 18:21:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3B13D1804F4 for ; Fri, 5 Jun 2020 10:04:10 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 5 Jun 2020 10:04:09 -0700 (PDT) Received: by mail-lj1-f181.google.com with SMTP id a25so12626807ljp.3 for ; Fri, 05 Jun 2020 10:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vy9YEneT67rYuqYduqvzvRTyo0u1ulfyUYgSMUBNm80=; b=jILxxiRfrbpGL55A3fe2G1MsIqVWrPdnxpBwp3HaIwGpRmj3a7+gqhpAqQVNBGPzSf Y5pVS2p6IbvGDuOOLNCrvMESbUupbBahONuj/3FkdI4H0pTwWh/PhFq6fSYYZdSNYqrA TWaNyRtCClrJZDjkKSX6O6GQKJF597xCIPKNgcVx/WQM/wFBAqZSNs31WRbiQXxx1bBZ 2WR+CR9OqXRbOSHdRiPtMd8hRwBLOgA3vrLdGUJv+VjPCtS0c9Xr4Ne4WI6YkqtfZeqF m4a0I8gX26xDSTl2xCEqocqoMAgH5r4u9W3AIj37hfKYFDtAHKfM790pLveXLuaJUCPE C6iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vy9YEneT67rYuqYduqvzvRTyo0u1ulfyUYgSMUBNm80=; b=qx6MbnmZ4FZSUwarwTtMQJLZarx0ts99h8Nc/TCNBnSetRjy9gALba16ooQvTejORu kY+Nj8AfXvKLy2j2vPKw/uPr9dDTkw/Pzj1kxqMRou+Q2Fq84/dfBViGQzxVegx/i/xv eA1hZW5F5qjLhulYwypRSONS21ch7/8fo4KgbzbwE+7mnApxZV8ur10AmeungPf+0Y8B ez6JgzTkbPNTzWbUVQSiXCh4LrVqCXjDH86uTDuMCwy0gBJ7UfUiazpMM08jevuGcBST 5XkEF5NFLkkt4s1AV6COyRlrOe0UYg0WDZZ/rm2TLMC8I44q8CYXM5A+eUyS012cIO67 iUJA== X-Gm-Message-State: AOAM533r4Q8qFJRbDZtf5yVjuvf1ZAvqlqLgqmN/1chx9b1+GIeUXHYq zp1iIYuspu27tQt/qgXGSInukmq77dVJ1BkxS1Q= X-Google-Smtp-Source: ABdhPJwhO5Si+N/usj6L+SFV87Pc/ajui0CosFfITyj8AwSDPA5B4xGVysH/ZzapvMCWW1co4p/nGwDHHBe+nwjZK9I= X-Received: by 2002:a2e:9115:: with SMTP id m21mr5016373ljg.350.1591376647952; Fri, 05 Jun 2020 10:04:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 5 Jun 2020 19:03:51 +0200 Message-ID: To: Max Semenik Cc: Internals Content-Type: multipart/alternative; boundary="000000000000ce205905a7593f4a" Subject: Re: [PHP-DEV] Refactoring run-tests.php From: nikita.ppv@gmail.com (Nikita Popov) --000000000000ce205905a7593f4a Content-Type: text/plain; charset="UTF-8" On Fri, Jun 5, 2020 at 5:42 PM Max Semenik wrote: > I was thinking about making some improvements to our venerable test runner, > however I wasn't feeling confident about improving the present code base. > Instead, I decided to attempt to refactor it. > > Here's my work in progress: https://github.com/MaxSem/run-tests > > It requires Composer only for development, and has a script to make a > single-file distribution, functionally identical to what we presently have. > > When it comes to integration with php-src, it could be moved to a > subdirectory there or be kept in a separate repository and be used to > generate a new run-tests.php whenever needed. > > Is there interest in this, should I continue? Any suggestions? > Happy to accept run-tests refactorings in general (there is a lot of global state to eradicate!), but please keep it single-file. We definitely need it single-file for distribution purposes, and I don't particularly want to have a "run-tests build system" for what I perceive to be little benefit. I'm not sure why PHP developers in particular seem to be so hung up about this issue, but: There really is no need to split every class into a separate file. This is how we develop in non-PHP, non-Java languages (C/C++/Rust/...) all the time. Regards, Nikita --000000000000ce205905a7593f4a--