Add `help` option to `runCmdStanTests.py`

Offen
#650 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
cli

Rechercherichtung

Beginne mit dem Lesen von runCmdStanTests.py und untersuche dessen aktuelle Verwendung oder das Verhalten beim Parsen von Argumenten. Vergleiche es mit der Hilfsausgabe von Stans runTests.py und führe dann runCmdStanTests.py -h aus, um zu überprüfen, dass die neue Hilfeoption die Verwendung und die Argumente anzeigt und erfolgreich beendet wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

documentation user experience
Summary:

Add a help option to runCmdStanTests.py. Currently, there's only usage info.

Description:

Stan's runTests.py has a help option that looks like:

$ ./runTests.py -h
usage: runTests.py [-h] [-j N] [-f F [F ...]] [-d] [-m] [--run-all]
                   tests [tests ...]

Generate and run stan math library tests.

positional arguments:
  tests            The path(s) to the test case(s) to run.
                   Example: 'test/unit', 'test/prob', and/or
                            'test/unit/math/prim/scal/fun/abs_test.cpp'

optional arguments:
  -h, --help       show this help message and exit
  -j N             number of cores for make to use
  -f F [F ...]     Only tests with file names matching these will be executed.
                   Example: '-f chol', '-f gpu', '-f prim mat'
  -d, --debug      request additional script debugging output.
  -m, --make-only  Don't run tests, just try to make them.
  --run-all        Don't stop at the first test failure, run all of them.

See more information at: https://github.com/stan-dev/math

The help should look similar.

Current Version:

v2.18.0

Vorherrschende Sprache
C++
Sterne
240
Forks
105
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus stan-dev/cmdstan

Alle Issues in stan-dev/cmdstan

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.