void () { //'b.Client' from production sources of 'b' cannot depend on 'a.ShortName' from module 'a' so it shouldn't be marked as dirty. //Otherwise we can get 'dirty' sources after full make if production of 'b' was compiled before 'a' JpsModule b = addModule("b", "moduleB/src"); addTestRoot(b, "moduleB/testSrc"); JpsModule a = addModule("a", "moduleA/src"); addTestRoot(a, "moduleA/testSrc"); JpsModuleRootModificationUtil.addDependency(b, a, JpsJavaDependencyScope.TEST, false); doTestBuild(2).assertSuccessful(); }