1
我想通過這個插件運行一個使用Amazon DynamoDB Local的斯卡拉測試套件:https://github.com/localytics/sbt-dynamodb。它工作正常,但前提是我在命令行上手動啓動DynamoDB Local(sbt start-dynamodb-local
)。我希望它能夠在父項目目錄中執行sbt test
時自動啓動。根據文檔:如何在SBT測試中自動啓動Amazon DynamoDB Local?
要讓DynamoDB本地自動啓動,並在你的測試
startDynamoDBLocal := startDynamoDBLocal.dependsOn(compile in Test).value test in Test := (test in Test).dependsOn(startDynamoDBLocal).value testOptions in Test += dynamoDBLocalTestCleanup.value
停止,但這是行不通的:
com.amazonaws.SdkClientException: Unable to execute HTTP request: Connect to localhost:8000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused
我在做什麼錯誤?