Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5054

Scala set a config value for a particular test

$
0
0

I have a reference.conf file which specifies a config value as

prop {
    type = 2
}

I have scala test class and have a number of the test under it. I want this config value to remain the same for all tests except for one test which requires it to be 3. What is the best way to load a different config value for one particular test? Right now the config values are automatically loaded because I extend ScalatestRouteTest.

So how can I make a config file (or string) especially for that test and load it by specifying it while loading a config


Viewing all articles
Browse latest Browse all 5054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>