Add `help` option to `runCmdStanTests.py`

Aperta
#650 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Inizia leggendo runCmdStanTests.py e analizza il suo utilizzo attuale o il comportamento nell'analisi degli argomenti. Confrontalo con l'output dell'help di runTests.py di Stan, quindi esegui runCmdStanTests.py -h per verificare che la nuova opzione di help visualizzi l'utilizzo e gli argomenti e termini correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C++
Stelle
240
Fork
105
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stan-dev/cmdstan

Tutte le issue di stan-dev/cmdstan

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.