前言介紹
- 這款 WordPress 外掛「wp-unit」是 2011-01-11 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2011-01-26,距離現在已有 5212 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
aaires | nunomorgadinho |
外掛標籤
phpunit | unit testing |
內容簡介
此外掛可讓您建立單元測試(unit tests)用於您的外掛(plugin),方便您集中運行與檢查測試結果。
從 2.0 版本開始,此外掛已預先安裝 phpunit,因此您只需要安裝此外掛就能立即開始建立單元測試。
此外掛基於 WordPress 自動化系統而開發,同時也是一個外掛,不需要新的資料庫或設定檔,因此當您建立單元測試時,請特別注意您的資料庫訪問權限以保留一致的資料庫結果。
每個單元測試必須擴展(PHPUnit_Framework_TestCase),並包含在 wp-unit 外掛目錄下的 testcase 目錄中。
要運行測試,請到管理面板中的 Unit Testing 選單,並按下 Run 按鈕。測試結果將顯示在同一頁面上。
歡迎隨時聯繫我們,提出任何反饋意見。
原文外掛簡介
Enables you to create unit tests for your plugins, run and check the results in a centralized way.
Since version 2.0 it has phpunit bundled in so all you need to get started with unit testing is to install this plugin.
Its based on the WordPress automated system but distributed as a plugin. Also it does not require a new database and a new configuration file so when you create your unit tests pay special attention to your database access so you keep a consistent database.
Every unit test must extend PHPUnit_Framework_TestCase and be included in the testcase directory you will find under the wp-unit plugin directory.
To run the tests go to the Unit Testing menu in the admin panel and press the Run buttom. The results will be displayed on the same page.
Feel free to give us some feedback.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「wp-unit」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Object Oriented Plugin Template Solution 》提供一個經過精心設計的 WordPress 外掛範本,讓新的外掛作者有助於創建一個優秀且易於維護的外掛。現有的外掛作者可提取個別組件和概念,以移植到自己的專案...。