簡體   English   中英

TestCafe錯誤:“沒有要運行的測試。 測試文件不包含任何測試,或者過濾器功能過於嚴格”

[英]TestCafe Error: “No tests to run. Either the test files contain no tests or the filter function is too restrictive”

我想使用TestCafe執行自動化測試,但是在使用以下命令進行測試時出現此錯誤。

testcafe chrome testc.ts

我使用此命令在Angular應用程序中測試了testc.ts文件,並在項目中全局安裝了TestCafe。

我有最新的Angular CLI,node和npm。

這是我的測試代碼和用於運行TestCafe的命令的屏幕截圖:

我的代碼的屏幕截圖

好像您沒有將正確的路徑傳遞到文件。 嘗試這個:

testcafe chrome src/testc.ts

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM