Page MenuHomePhabricator

MWCli improve mediawiki phpunit command help docs
Closed, DeclinedPublicFeature

Description

Feature summary (what you would like to be able to do):

It would be awesome if the phpunit help docs had examples of how to run tests.

$ mw dev mediawiki phpunit --help
Runs MediaWiki phpunit in the MediaWiki container

Usage:
  mw docker mediawiki phpunit [flags]

Flags:
  -h, --help          help for phpunit
  -u, --user string   User to run as, defaults to current OS user uid:gid (default "1000:1000")

Global Flags:
  -v, --verbosity int   verbosity level (1-2) (default 1)

right now the help information doesn't even describe that it's possible to run a command,

Steps to reproduce (a list of clear steps to create the situation that made you report this, including full links if applicable):

  • mw dev mediawiki phpunit --help
  • read the output

Use case(s) (describe the actual underlying problem which you want to solve, and not only a solution):
I want to know how I should run phpunit tests using mwcli without having to read to documentation