Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 May 2021 at 22:21 UTC
Updated:
24 Jul 2026 at 14:42 UTC
Jump to comment: Most recent
Comments
Comment #3
mcdruid commentedThanks, I think this is a great idea.
Personally I'd probably go for something like
--failuresor--fail-onlyinstead of--no_pass.Will take a proper look at this ASAP.
Comment #4
beakerboyI chose “no_pass” because the test results are either pass, fail, or exception. I didn’t want anyone to be surprised if “fail-only” also printed exceptions. I’m not going to fight over it though, so whatever you want to get it merged is fine by me.
Comment #5
mcdruid commentedAh I see, that makes sense. I'll see what @Fabianx thinks, but I'd be happy with
--no-passor--fail-only(I don't think it's horribly unexpected for the latter to include exceptions too).(There's already an arg called
test_nameswhich is likely why you went for underscore, but I don't think it's expected to passtest_nameson the cli, and I'd prefer dashes to underscores in the arg names.)We can tweak the arg name on commit.
A quick bit of manual testing; I added this:
Without the new
--no_passarg:...and with it:
So LGTM!
I suppose we could emit a message if the new arg is passed without
--verbose, but that's very much a nice-to-have.Comment #6
fabianx commentedRTBC + 1, let's use --fail-only as it's more descriptive and an exception is technically a failure that simpletest just chooses to display differently.
Comment #8
mcdruid commentedThis is great; only wish we'd done it sooner!
Thanks!