Add first tests for valdi_navigation

Đang mở Phù hợp với người mới
#219 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/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

Bắt đầu từ src/valdi_modules/src/valdi/valdi_navigation/BUILD.bazel, file này đã dùng glob cho test/**/*.ts và test/**/*.tsx, sau đó thêm //src/valdi_modules/src/valdi/jasmine vào test_deps giống cách valdi_test/BUILD.bazel làm. Đọc NavigationController và NavigationRoot trong mã nguồn module, và valdi_test/test/ để render component trong test. Hoàn thành khi bazel test //src/valdi_modules/src/valdi/valdi_navigation:test chạy đạt, với các spec cho push, pop, page stack và trang đầu tiên của root.

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_navigation has no tests. It provides NavigationController, NavigationPage, NavigationPageComponent, NavigationRoot and NavigationView.

What to do

  1. Add a test/ folder. The module's BUILD.bazel already includes test/**/*.ts and test/**/*.tsx in srcs. Add //src/valdi_modules/src/valdi/jasmine to test_deps, as in valdi_test/BUILD.bazel.
  2. Write a first set of specs. For example: pushing and popping pages through NavigationController, the page stack after each step, and that a NavigationRoot renders its first page. valdi_test/test/ shows how to render components in a test.

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_navigation:test

See Testing for how module tests work.

Done when: the module has a test target with specs for the main navigation flows, 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.