How can I add a Java system property during JUnit Test Execution

后端 未结 3 841
误落风尘
误落风尘 2020-12-19 02:49

I need to define a system property for my JUnit tests. I\'ve tried various steps to pass the name/value pair into gradle. (I\'ve tried Milestone-3 and 4). None of these app

3条回答
  •  佛祖请我去吃肉
    2020-12-19 02:57

    Sorry to answer my own question. Just stumbled upon the solution here:

    test { systemProperties = System.properties }

提交回复
热议问题