fuchsia_unittest_package
  
      
    
  
  
  
  
  
    
  
  
    
    
    
不含元件的 fuchsia_test_package 包裝函式。
套用這項規則後,使用者就能直接建構 fuchsia_test_package
為每個測試建立元件如此一來,使用者就能在
例如 fuchsia_cc_test。
規則的作者取決於規則的作者。
將產生的測試元件公開到這項規則中。慣例
確保 unit_test 目標也必須建立 fuchsia_test_component
名稱為 .unittest_component.
如要瞭解其他引數,請參閱 fuchsia_test_package。
參數
| 名稱 | 說明 | 預設 | 
| name | 這個目標名稱。 | - | 
| unit_tests | unit_test 目標。這些目標必須具有名為 <name>.unittest_component 的 fuchsia_test_component。
 | - | 
| 關鍵字 | 轉送至 fuchsia_test_package 的引數。 | - | 
  
  
  
 
  
    
    
    
  
  
  除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-07-25 (世界標準時間)。
  
  
  
    
      [[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],[]]