Add first tests for valdi_rxjs

Đang mở
#218 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C++
Star
16.4k
Fork
538
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Snapchat/Valdi

Tất cả issue của Snapchat/Valdi

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.