Adding include paths to CLI testrunner
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.9k
- Forks
- 359
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I think it would be useful to have something like --include=PATH for the CLI testrunner. That way you can setup your testsuite without having to know about the actual location of the test suite in the directory structure. The call to the CLI testrunner then can take care of setting up the enviroment using --include. No need to repeat
```
require =("../lib/LibrarySubjectToBeTested");
```
but do
```
require('LibrarySubjectToBeTested");
```
and simply call
```
nodeunit --include=../lib/
```
I implemented a patch that would add this functionality to the testrunner. Have a look at it: 1db0b284d70829d4fe5f8a1fe20274562cdc5bd8
Please let me know what you think and if there's anything I missed. If you like it, feel free to pull it in.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reviewing commit 1db0b284d70829d4fe5f8a1fe20274562cdc5bd8 and the CLI testrunner entry point. Check how the proposed --include=PATH option sets the module lookup environment, then run the existing test suite; done means nodeunit --include=../lib/ permits requiring LibrarySubjectToBeTested without a relative path.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- cli, testing-qa
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100