我想为VM argument从Eclipse运行的所有JUnit测试指定一个特定的Eclipse
-Dlog4j.configuration=log4j-dev.properties
Run Code Online (Sandbox Code Playgroud)
这是因为我希望所有JUnit测试而不是默认log4j.properties文件都能获取特定的log4j配置文件.
到目前为止,我必须为每个JUnit测试指定上面的VM argument(in Run Configurations -> Arguments -> VM arguments),这使得它很麻烦,因为我有很多测试.