RESTClient を含むクラスがあり、単純な get 要求を実行します。
テストは次のように構築されます
@Rule Recorder recorder = new Recorder()
@Betamax(tape = 'meetupEventsList')
void testListEvents() {
when:
def instance = new Client('<apikey>')
def events = instance.listEvents('<groupname>')
then:
log.info("List of events: {events}")
}
BetamaxConfig.groovy: (grails-app/conf/BetamaxConfig.groovy にあります)
betamax {
tapeRoot = new File('test/resources/tapes')
ignoreLocalhost = true
}
テストは実行されていますが、test/resources/tapes ディレクトリ (/test または /src/test/ のいずれか) に何も取得されません。ベータマックス フレームワークからのログも取得されません。
私は何を間違っていますか?これをトラブルシューティングする他の方法はありますか?