How can an application say if it works in the context of 'sbt test'? Is there a system property that can be verified?
There may be different ways. I found the following works:
testOptions += Tests.Setup(_ => sys.props("testing") = "true")
And then you can just check sys.props.get("testing") in your class.
sys.props.get("testing")
Source: https://habr.com/ru/post/1206031/More articles:How do you analyze mediation using several treatments in R - rUnable to enable jQuery datatables through webpack bower components - jqueryRecyclerView: how to simulate DrawView ListView selector on top? - androidPython multiprocessing process number - pythonWork with zero HttpContext.Current when starting the application, if the user already has a cookie - c #DirectDraw + Color color window key? - windowsHow to combine two pdf files and save bookmarks and pdf / match using pdfbox? - javaIs there a way to bookmark PDF documents in PDFBOX? - javalaravel - eloquent - get the sum of the corresponding column of a specific model - eloquentIn jekyll, how to parse a variable as markdown rather than print it as it is? - jekyllAll Articles