unit-testing

    0熱度

    1回答

    我在我的角度項目中運行Karma Start時遇到了一些錯誤。 所有的錯誤說: '找不到名字的Blob', '無法找到名字的KeyboardEvent', '找不到名稱HTML元素' 等 我tsconfig.json: { "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc",

    -1熱度

    1回答

    有沒有人編寫過引導ROM的測試計劃? 此引導ROM將剛剛啓動的閃存設備,或通過SPI 這將與皮質M3和傳感器 數據採集的嵌入式系統中使用的主機你修改Boot ROM代碼用於單元/集成測試? 非常感謝

    1熱度

    2回答

    我有類似如下的雨燕單元測試: var firstArgumentInClosure: Bool? someFunc { firstArgumentInClosure = $0 } XCTAssertTrue(firstArgumentInClosure?) 我試圖斷言關閉叫的第一個參數是true。 這不會錯誤消息編譯: '?'必須遵循的一個電話,成員查找,或下標 的一種方式,我可以解決這個

    3熱度

    2回答

    我有entityframework回購,它從sqldb獲取行程信息。我創建了repo,並在構造函數中注入了dbContext並使用該上下文執行數據庫操作。 public class WorldRepository : IWorldRepository { private WorldContext _context; public WorldRepository(

    1熱度

    1回答

    項目模擬服務:https://github.com/marioedgar/webpack-unit-test 我有我與VUE CLI產生Vue.js應用程序。我只是編輯的HelloWorld的成分有一些來從我的測試服務一些異步數據,你可以看到,在這裏: <template> <h1>{{ message }}</h1> </template> <script>

    0熱度

    1回答

    我正在學習Jasmine的單元測試,但我很困惑我應該如何定義我的預期結果。 describe("getMovieSuggestions", function() { it("should return movie suggestions", function() { parameters = parameters; expect(getMovieSuggestio

    0熱度

    1回答

    更新:我在neo4j timetree源中發現了一些類似的測試,但使用了擴展ServerIntegrationTest的GraphAwareIntegrationTest。所以我嘗試用以下方法爲我的測試創建一個GraphDatabaseService Bean,但仍然沒有運氣。我得到「沒有爲此數據庫實例註冊的名稱爲ga.timetree.events.attach的過程。」這不可能嗎? @Bean

    2熱度

    1回答

    我試圖弄清楚什麼區別fakeasync的tick()方法從done()如在堆棧溢出一些answers建議。 使用tick()我們可以模擬超時,但是我們可以使用done()來完成相同的操作嗎? 爲什麼角度考慮它more viable method比使用async或fakeAsync?例如: 舉個例子。 此方法適用於我...... it("Should display names",(done:any

    0熱度

    1回答

    我可以使用'記者'的笑話配置方法來報告我的測試結果,但它顯示了控制檯上的所有報告。我想要的東西,它創建像.txt文件 是否有可能做? 這是我的笑話配置; "jest": { "moduleNameMapper": { "^.+\\.css$": "identity-obj-proxy" }, "verbose": true, "bail": tr

    0熱度

    1回答

    我是JavaScript和node-js的單元測試新手。我想弄清楚以下磁帶單元測試的語法: test('player has computed fields', (assert) => { const playerData = { firstName: 'Test', lastName: 'Testerton' }; var player =