From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RDNS_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: from authenticated user by zero.zsh.org with local id 1kixWf-000OLE-5g; Sat, 28 Nov 2020 10:32:21 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wr1-f54.google.com) smtp.remote-ip=209.85.221.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-wr1-f54.google.com ([209.85.221.54]:37286) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kixWI-000O6N-9J; Sat, 28 Nov 2020 10:31:59 +0000 Received: by mail-wr1-f54.google.com with SMTP id i2so8156021wrs.4 for ; Sat, 28 Nov 2020 02:31:58 -0800 (PST) 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=LRiCb97DnA+eBMlSdtTR414tmlvOWjjV7Pr8uUN3kTE=; b=uCSbr0+1HK2RqESfyuZUV5XaRTqM0uYR55yfHiCr7RU+cO1uThm+r3uCE/nL4O3wTJ ury8VeAxNxGc44LZjr7kRMWjiYuBSsDPxhZRIaPRBJbO1sC7rk3feWxA7S0jZc1m5toy HesDwYFYTGdS819Pw54zMsRrpbxMv92vxzDvEJafoJSeQ96bpCN3N3ZhGVQqkUSVZmZL yQCs/jHv6HEYUueGwMPXav1eAsJKS5xta9zOM/5BN1425pyrTHxyNjmLrbCo+TECPkWz I5VAYRU5pYO4JF5JPbknQ6aWIbORtPkgdAsi8CkJ4G+Cw/1tsrOS20y1isho9NKCupnS IqAg== 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=LRiCb97DnA+eBMlSdtTR414tmlvOWjjV7Pr8uUN3kTE=; b=mxkQfzVJcPh15ntnwS4HYSRq8owAcBE/KCOuYQMU4JJxlZx1ooro2qkICc6Sb1ZLgE CSNRqIiFfnmiEtFZRlnV2moc7/rZM5wDU8c8C0qq25rXc+XOqZk6nYg1xUkRKuKIKG5o RP1SV8eoOP6y5kTPUdREvEItUq/GXAz/TjkI5YMHp4B571zbLHq+fFHvszmnFuXSHGqx fa3qg50ntZcjCh1EX0wEJ0bILwHLhg0/AoQaNhNHbpfYN2uvdnBhFLvQJiapC46Dwb09 LgUxIifLZxcHVUvbcikfb53quz5ecDal0eWj/BJZl8ScFvoDBqUzwkCgvAOhPLIXG5Sf kqRg== X-Gm-Message-State: AOAM530AdWagYOxaoMwA460Do2WvQTj/iN0JJsHqA1/DzCKXk+h8lGZV Oyb8gYq4iVxYOC6lQb4QT5pb8jHq0KFq82/0mgaYOaBA2T3Rhw== X-Google-Smtp-Source: ABdhPJzSszhB0LQcOciXtM/LJhnyChAdBxCIZ+xm9u4i5WesXQPs9N+2rCue3G6aXTAEqHLR+X0fzV3KTp1FmdRgI1c= X-Received: by 2002:a5d:4349:: with SMTP id u9mr16308688wrr.319.1606559517653; Sat, 28 Nov 2020 02:31:57 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Felipe Contreras Date: Sat, 28 Nov 2020 04:31:46 -0600 Message-ID: Subject: Re: "make check" suggestion To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47692 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On Sat, Nov 28, 2020 at 12:53 AM Bart Schaefer wrote: > > I haven't messed around with ztst.zsh for some years, so I'm not > familiar with how the newer features like intentionally failed tests > are handled. A suggestion perhaps for someone who has worked on it > more recently: > > It might be nice to have a mode in which ALL the tests in each file > are run, rather than abort the whole test file when one of them fails > (or unexpectedly succeeds). Coming from Git, I have to say their testing framework is the best I've ever seen. It is developed in shell. There may be some bashisms, but they try to avoid them. Last time I tried it in zsh, it didn't work correctly, but shouldn't be too hard to fix (and maybe it was a problem in zsh), and I'm sure they would accept the patches. The project that tried to extirpate the test system from git.git is called sharness [1]. I've used it in all my projects, and it works like a charm. In this test system all you have to do is pass -i to the test, to stop at a failure. For example: ./completion-zsh.t -i Additionally, the system supports Perl's Test Anything Protocol (TAP) [2]. So you can do: prove completion-zsh.t :: -i That's how I developed the git-completion zsh specific tests, which work great, and are integrated into Travis-CI [3]. If anyone is interested, I could give it a try to port some zsh test to sharness. In my personal opinion the testing system of zsh is far from ideal. But that's just my opinion. Cheers. [1] https://github.com/chriscool/sharness [2] https://en.wikipedia.org/wiki/Test_Anything_Protocol [3] https://travis-ci.org/github/felipec/git-completion -- Felipe Contreras