Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
grails のテスト ファイル (つまり data.xml) を保存するのに最適な場所はどこかお聞きしたいと思います。test/フォルダですか?
統合テストでテストファイルを簡単にロードするにはどうすればよいですか?
ありがとう、マテオ
テスト/統合/リソースで
次に、つまり、テストに spock を使用する場合は、次のようなことができます。
def mediaBundlerService = Mock(MediaBundlerService) mediaBundlerService.getPath(_) >> [path: new File('test/integration/resources/test-bundle/').absolutePath + "/"]