Chuyển đến nội dung
Skillpedia
Kiểm thử75k · #2895

integration-testing

Skill này làm gì

Skill này rà soát các luồng công việc chính của bạn và thêm test bao phủ cách dịch vụ, cơ sở dữ liệu và thành phần tương tác với nhau. Skill dành cho lập trình viên muốn các bản phát hành đáng tin cậy.

Khi nào nên dùng

  • ✓Khi một tính năng vượt qua unit test nhưng lỗi khi mọi phần được kết nối.
  • ✓Khi các route API gọi dịch vụ và cơ sở dữ liệu mà không có test ở giữa.
  • ✓Khi bạn muốn kiểm tra tự động các luồng người dùng quan trọng nhất.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/integration-testing/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/integration-testing/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể viết integration test cho luồng thanh toán trong ứng dụng của tôi không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent xác định các điểm mà các phần của hệ thống gặp nhau và viết test cho những kết nối đó. Agent gợi ý dùng cơ sở dữ liệu test thật thay vì giả lập mọi thứ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Write integration tests for key workflows

Unit tests verify individual functions in isolation, but they can't catch the bugs that occur when those functions interact — a perfectly correct validation function and a correct database function can still fail when wired together incorrectly. Integration tests catch these wiring bugs before they reach production, where they're expensive to diagnose.

Quick Reference

  • Integration tests verify that multiple units work correctly together
  • Test at the boundary where different parts of your system meet
  • Use a real database in tests (test DB or in-memory) rather than mocking everything
  • Test happy paths and the most critical error paths

Check

Identify the key integration points in this codebase — where API routes call services, where services interact with the database, and where components interact with state management. Are these tested?

Fix

Write integration tests for the identified critical paths, testing the interactions between components rather than each in isolation.

Explain

Explain integration testing, how it differs from unit and E2E testing, and what tools to use for API and component integration tests.

Code Review

Review tests, CI workflows, and enforcement points related to Write integration tests for key workflows. Flag exact gaps where the rule is not automatically verified or where failures do not block regressions.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/testing/integration-testing

Câu hỏi thường gặp

Khác gì so với end-to-end test?

Skill mô tả integration test là kiểm tra nhiều đơn vị cùng hoạt động, còn end-to-end test bao phủ toàn bộ hành trình người dùng.

Có nên giả lập cơ sở dữ liệu không?

Skill khuyên dùng cơ sở dữ liệu test thật, hoặc cơ sở dữ liệu trong bộ nhớ khi có thể.

Nên test những đường đi nào?

Skill gợi ý các đường đi thành công và các đường đi lỗi quan trọng nhất.

Chi tiết

Mô tả gốc của tác giả

Use when reviewing CI coverage, automated checks, or test strategy related to Write integration tests for key workflows. Focus on whether the rule is continuously verified, not just documented.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2895
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự