Add first tests for valdi_rxjs

Abierto
#218 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
78/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
testing

Línea de trabajo

Start in src/valdi_modules/src/valdi/valdi_rxjs and look at its BUILD.bazel, then copy the test layout from valdi_test/BUILD.bazel, adding a test/ folder with test/**/*.ts in srcs and the jasmine dependency in test_deps. Read the Observable, Subject, BehaviorSubject and ReplaySubject sources, plus the helpers in src/testing/ for marble tests. Done when bazel test //src/valdi_modules/src/valdi/valdi_rxjs:test runs specs for the core types and passes.

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

Descripción

src/valdi_modules/src/valdi/valdi_rxjs has no tests. It's Valdi's port of RxJS (Observable, Subject, BehaviorSubject, ReplaySubject, the operators, firstValueFrom/lastValueFrom and so on), and other modules depend on it.

What to do

  1. Add a test/ folder to the module, and add test/**/*.ts to srcs in its BUILD.bazel. Add //src/valdi_modules/src/valdi/jasmine to test_deps. valdi_test/BUILD.bazel is a working example.
  2. Write a first set of specs for the core types: subscribe and unsubscribe, Subject and BehaviorSubject emission, ReplaySubject buffering, error and complete propagation, and a few common operators (map, filter, switchMap). The helpers in src/testing/ can be used for marble-style tests.

A first PR doesn't need to cover everything. A small, solid set of specs is a good start.

How to run

bazel test //src/valdi_modules/src/valdi/valdi_rxjs:test

See Testing for how module tests work.

Done when: the module has a test target with specs for the core types, and it passes.

See CONTRIBUTING.md before opening a pull request.

Lenguaje dominante
C++
Estrellas
16.4k
Forks
538
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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 Snapchat/Valdi

Todos los issues de Snapchat/Valdi

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.