Add acceptance tests that elaborate expected behaviour
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- rust
- Área
- cli, testing-qa
Línea de trabajo
Revisa el manejo existente de funcionalidades y flags de la utilidad junto con Cargo.toml y, después, reproduce el caso de nueva línea de -F en Linux usando hostname::set(). Define pruebas de aceptación para los flags y las funcionalidades pendientes descritos, incluido el comportamiento esperado y si las discrepancias corresponden a la utilidad o a la dependencia hostname.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
While it is nice to have a reference point against which to check the utility's behaviour, it will still be immensely helpful to integrate certain acceptance tests for all features/flags (even the ones that are "todo"). Besides it will also determine scoping vis-a-vis say, the crate, hostname (0.4) that is currently a dependency.
Here's a case in point as far as librarr crate vs utility bin goes:
- when attempting to introduce the "set" option, one way is to invoke the crate hostname(0.4)'s set call, i.e. hostname::set(), and also including the feature "set" in the Cargo.toml
- for a file passed as input with -F, this basically means reading it in a buffer, calling trim() on it and then calling hostname::set() on it - at a very basic level
- however, if one tests it on Linux boxes with a file input, for an input even with a newline say
test name 1
t e s t name
it (hostname::set() ) still sets the name as is i.e. with the new lines and a total of 3 lines of the hostname. This is very different from how the usual Linux/Mac hostname utility behaves - question is, who owns the discrepancy and its fixing - the utility or the crate?
- now, it is unclear whether this will be called out as a bug in the utility or needs to be escalated as a bug in the dependency crate named hostname
Other cases might arise too; therefore, it will be great to articulate all the reqs as test cases
- Lenguaje dominante
- Rust
- Estrellas
- 34
- Forks
- 15
- Merge medio
- 5 h 44 min
- PR fusionados (30 d)
- 6
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 uutils/hostname
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Implement -F for hostnameAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
-
Dependency DashboardAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
-
Implement `ypdomainname`Quizá libre de nuevo @HaitaiNg la tomó hace 297 días y no hay ningún pull request abierto. Abiertogood first issue
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
-
Implement `nisdomainname`Abiertogood first issue
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
Todos los issues de uutils/hostname
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pact-foundation/pact-cli#154 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
antithesishq/bombadil#361 ·
Los mantenedores suelen responder en 1 día
-
test(executor_l0): assert execute() TaskOutcome, not only bus events / 断言 execute() 返回的 TaskOutcomeAbiertotype:debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
skaiy/wild_agentos#425 ·
Los mantenedores suelen responder en 1 día
-
Default-import note suggests `import * as process` for velt:process, which does not name the builtinAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug ticket
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cratestack/cratestack#1154 ·
Los mantenedores suelen responder en 1 día