File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
integration/feature/testquick-javamodule/src
codesig-worker/src/mill/javalib/codesig Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,7 @@ import utest._
66
77object TestQuickJavaModuleTests extends UtestIntegrationTestSuite {
88 val tests : Tests = Tests {
9- def filterLines (out : String ) = {
10- out.linesIterator.filter(! _.contains(" [info]" )).toSet
11- }
9+
1210
1311 test(" testQuick-runs-all-on-first-run" ) - integrationTest { tester =>
1412 import tester ._
@@ -76,7 +74,7 @@ object TestQuickJavaModuleTests extends UtestIntegrationTestSuite {
7674 )
7775
7876 // This run should fail
79- val failing = eval(" foo.test.testQuick" , check = false )
77+ eval(" foo.test.testQuick" , check = false )
8078
8179 // Fix the implementation
8280 modifyFile(
Original file line number Diff line number Diff line change 11package mill .javalib .codesig
22
33import mill .codesig .{CodeSig , Logger }
4- import mill .codesig .JvmModel .{ Desc , MethodSig }
4+ import mill .codesig .JvmModel .MethodSig
55
66/**
77 * Worker implementation that computes method code hash signatures using Mill's codesig module.
@@ -69,7 +69,10 @@ class CodeSigWorker extends CodeSigWorkerApi {
6969 * This is simpler than the build.mill version since we're analyzing
7070 * user code, not Mill task definitions.
7171 */
72- private def defaultIgnoreCall (callSiteOpt : Option [mill.codesig.JvmModel .MethodDef ], calledSig : MethodSig ): Boolean = {
72+ private def defaultIgnoreCall (
73+ callSiteOpt : Option [mill.codesig.JvmModel .MethodDef ],
74+ calledSig : MethodSig
75+ ): Boolean = {
7376 // Don't ignore any calls by default for test code analysis
7477 // User code dependencies should all be tracked
7578 false
Original file line number Diff line number Diff line change @@ -192,10 +192,14 @@ trait TestModule
192192 } else {
193193 // Run failed tests + tests in changed classes
194194 val affectedTests = allTests.filter { test =>
195- changedClasses.exists(cls => test.startsWith(cls) || cls.startsWith(test.takeWhile(_ != '$' )))
195+ changedClasses.exists(cls =>
196+ test.startsWith(cls) || cls.startsWith(test.takeWhile(_ != '$' ))
197+ )
196198 }
197199 val toRun = (affectedTests ++ previousState.failedTests.intersect(allTests.toSet)).distinct
198- Task .log.info(s " testQuick: Running ${toRun.size} tests ( ${affectedTests.size} affected by changes, ${previousState.failedTests.size} previously failed) " )
200+ Task .log.info(
201+ s " testQuick: Running ${toRun.size} tests ( ${affectedTests.size} affected by changes, ${previousState.failedTests.size} previously failed) "
202+ )
199203 toRun
200204 }
201205
You can’t perform that action at this time.
0 commit comments