###### tags: `課程調整公告` # 【課程更新】R04, R05 測試檔案與說明調整 感謝同學持續提出測試相關疑問,與回報問題。11/16 上午內容團隊進行了以下更新: #### 1. 更新 Travis 連線時間提示資訊 根據同學回報與團隊測試,觸發 Travis CI 觸發需約等待 2-10 min,並非觸發後立刻執行測試檢驗。 內容團隊將於近日於單元:[寫作業 & Pull Request](https://lighthouse.alphacamp.co/courses/118/units/25572) 與相關測試作業,上架等待時間的提示,以利同學判斷是否成功觸發,抑或是需要等待回應。 <div style="width: 100%; border-radius: 3px; box-shadow: 0px 2px 10px #efefef;"> <img src="https://assets-lighthouse.alphacamp.co/uploads/image/file/17942/Screenshot_2021-11-16___3.09.04.png"> </div> #### 2. 若遇測試有新語法、思路,提供同學提示 自動化測試的目的是讓開發者可以「以測試驅動開發」,並藉由自動測試驗收功能的完成性,然而驗收的方式可以有相當多種。 在部分測試檔中,測試開發者與 AC 的內容團隊刻意選用與教案不同的思路,希望同學透過教案的基本引導後,在未來遇到規格能舉一反三,拓展綜合運用、嘗試不同思維的視野與能力。 因此若有這類型教案與測試刻意選用不同語法、思路的情境,內容團隊將於作業中新增如 [A16: Like / Unlike (R04)](https://lighthouse.alphacamp.co/courses/118/assignments/3568) 中的 `提示`,幫助同學更有意識需要有不同思維的地方。 <div style="width: 100%; border-radius: 3px; box-shadow: 0px 2px 10px #efefef;"> <img src="https://assets-lighthouse.alphacamp.co/uploads/image/file/17941/Screenshot_2021-11-16___3.21.15.png"> </div> #### 3. 修正測試檔案 Typo 在原本的 [A16: Like / Unlike (R04)](https://lighthouse.alphacamp.co/courses/118/assignments/3568) 對應分支 `R04-test` 及 [A17: TOP 10 人氣餐廳 (R05)](https://lighthouse.alphacamp.co/courses/118/assignments/3569) 對應分支 `R05-test` 中,有變數大小寫不一致造成的測試結果錯誤得狀況。 上游專案已經於 2021/ 11/16 上午更新,詳見 commit 紀錄: - R04-test:[https://github.com/ALPHACamp/forum-express-grading/commits/R04-test](https://github.com/ALPHACamp/forum-express-grading/commits/R04-test) - R05-test:[https://github.com/ALPHACamp/forum-express-grading/commits/R04-test](https://github.com/ALPHACamp/forum-express-grading/commits/R04-test) ##### 因應測試檔案更新,你可能需要⋯⋯ - 若同學尚未下載 `R04.test.js` 或 `R05.test.js` : 不需特別動作 - 若同學已經下載好 `R04.test.js` 或 `R05.test.js` : 需要重新拉取上游程式碼,合併新版程式碼。本次更新幅度較小,同學也可以參考 commit 紀錄中的 git diff 差異部份進行手動更新 - `R04-test` [git diff](https://github.com/ALPHACamp/forum-express-grading/commit/caa0aef32d437b885c4a17bc8a322f6c7e03d26b) - `R05-test` [git diff 1](https://github.com/ALPHACamp/forum-express-grading/commit/c29f21af146babe04410854bae65d92121a0fef1)、[git diff 2](https://github.com/ALPHACamp/forum-express-grading/commit/85385f2f0fe48d9fbbc4bcb484d0e3f5c354dab3) 相關教案 reference: - 下載 `R04.test.js` / `R05.test.js` 的方法? [U119:下載作業測試檔](https://lighthouse.alphacamp.co/courses/118/units/25569) 「下載作業規格」段落 - 合併新版程式碼的方法?[U93:下載 AC 指定專案](https://lighthouse.alphacamp.co/courses/118/units/25544) 「如果上游專案更新⋯⋯」段落 ##### 更多關於「測試更新與優化」的緣起與背景,請參考:https://lighthouse.alphacamp.co/announcements/2049