New feature: command-line interface
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 30/100
Línea de trabajo
Start by reading the package entry points and existing Hypothesis strategy tests to see how schema-based generation is exposed. The issue proposes two CLI modes: emit unique JSON instances, or run a script and shrink failing examples. Done means both modes accept the described arguments and produce the specified output and failure behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
It occurs to me that having a jsonschema and wanting to test something is by no means limited to projects using Python, and we can pretty easily provide a useful tool or two. Specifically:
hypothesis json SCHEMA --num=100 --seed=0: write NUM instances conforming to SCHEMA to standard out, one line each. The schema can be provided inline, or as a filename. We use the obvious translation to a test under the hood, no database, and bump up max_examples so that we can ensure every line is unique.
hypothesis json SCHEMA --num=100 --script=test.sh: write each example to testcase.json, execute ./test.sh testcase.json, shrink to minimal failing example as usual. Key database off the schema itself, but not the test script; NUM is the max_examples setting directly for this one. The classic fuzzer interface.
- Lenguaje dominante
- Python
- Estrellas
- 281
- Forks
- 35
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de python-jsonschema/hypothesis-jsonschema
-
Missing test files in Pypi releasePosiblemente ocupada @blouirts123 la tomó hace 49 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
-
Shouldn't PKG-INFO Homepage point to https://github.com/python-jsonschema/hypothesis-jsonschema ?Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 58/100
python-jsonschema/hypothesis-jsonschema#114 · 1 comentario ·
-
Push release tags to github?Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 55/100
python-jsonschema/hypothesis-jsonschema#113 · 1 reacción ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
python-jsonschema/hypothesis-jsonschema#104 · 3 reacciones ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Todos los issues de python-jsonschema/hypothesis-jsonschema
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Techiebutler/freeframe#687 ·
Los mantenedores suelen responder en 1 día
-
bug verbose GC
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
IBM/javacore-analyser#677 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 2 días
-
area/config comp/plugins P1 platform/qqbot tool/file type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NousResearch/hermes-agent#163932 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
plugins/dsh: todayStr() computes UTC but is documented as local — journal entries written 00:00–08:00 local land in the previous day's filePosiblemente ocupada @Beehtrix la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
zilliztech/memsearch#907 · 1 comentario ·
Los mantenedores suelen responder en 1 día