简体   繁体   English

在sbt中的测试运行之间共享静态数据

[英]Share static data between test runs in sbt

I have tests that require an expensive loading of static data to run rendering test watching via ~test effectively useless. 我有一些测试,需要大量的静态数据加载,才能通过~test有效地运行渲染测试监视。

Is there a way to load the data once each sbt load and cache it between test runs? 有没有一种方法可以在每次sbt加载后加载数据并在测试运行之间将其缓存?

The tests are using scalatest . 测试使用scalatest

Sbt allows you to specify setup and cleanup actions . Sbt允许您指定设置和清除操作 I have used these in the past to boot up application instances needed for the entire test run. 过去,我曾使用它们来启动整个测试运行所需的应用程序实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM