Issues with Implementing Values Attribute and Customizing Name Format

Abierto
#305 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Área
testing

Línea de trabajo

Revise primero la documentación de Values, TestCaseSource y los nombres de test generados; el issue no especifica ningún archivo ni test. Determine si el formato solicitado para los nombres de parámetros es un cambio en la documentación o una solicitud de funcionalidad, y defina el formato mostrado esperado antes de continuar.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

This may be an issue with documentation(or a feature request, i'll lean on the side that i'm missing something), however I am currently running into an issue that i'm having difficulty finding a workaround.

Currently I am able to use the Values attribute correctly, however i am not able to use the Values attribute in conjuncture with a custom name assigned to the collection of test cases.
I've attempted TestCaseSource, however I am unable to implement this change using the Values attribute (with it's current restrictions).

Simple Business Description:

  • I have a test with 3+ parameters (all using the value property, (all enums in this case))
  • I have Label that is generated, however it does not accurately convey what that test is doing.

Desired Result:

  • Have the parameters used displayed along with the name of the variable they're assigned to.

Ex:
The shared enum has 3 values, All, Some, and None.
Test will display as:
Test("Param1Name : All, Param2Name: Some, Param3Name: None")

Instead, I am getting:
Test(All,Some,None)

Lenguaje dominante
Dockerfile
Estrellas
601
Forks
159
Merge medio
22 h 18 min
PR fusionados (30 d)
6

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nunit/docs

Todos los issues de nunit/docs

Issues similares

Más issues de Testing & QA

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.