Skip to content

Commit 47dff00

Browse files
committed
feedback 2
1 parent a52e5f4 commit 47dff00

File tree

84 files changed

+1400
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1400
-194
lines changed

core/internal/src/mill/internal/MultiLogger.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ private[mill] class MultiLogger(
9696

9797
private[mill] override def logKey = logger1.logKey ++ logger2.logKey
9898

99+
private[mill] override def message = logger1.message ++ logger2.message
100+
101+
private[mill] override def keySuffix = logger1.keySuffix ++ logger2.keySuffix
102+
99103
override def withOutStream(outStream: PrintStream): Logger = {
100104
new MultiLogger(
101105
logger1.withOutStream(outStream),
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//// SNIPPET:BUILD1
2+
package build
3+
import mill._, javalib._
4+
5+
object foo extends JavaModule {
6+
object test extends JavaTests {
7+
def testFramework = "com.novocode.junit.JUnitFramework"
8+
def ivyDeps = Seq(
9+
ivy"com.novocode:junit-interface:0.11",
10+
ivy"org.mockito:mockito-core:4.6.1"
11+
)
12+
def testEnableWorkStealing = true
13+
}
14+
}
15+
//// SNIPPET:END
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package foo;
2+
3+
public class Foo {
4+
public static void main(String[] args) {
5+
System.out.println(greet("World"));
6+
}
7+
public static String greet(String name) {
8+
return "Hello " + name;
9+
}
10+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package foo;
2+
3+
import org.junit.Test;
4+
5+
public class RandomTestsA extends RandomTestsUtils {
6+
@Test
7+
public void test1() throws Exception { testGreeting("Storm", 38); }
8+
@Test
9+
public void test2() throws Exception { testGreeting("Bella", 25); }
10+
@Test
11+
public void test3() throws Exception { testGreeting("Cameron", 32); }
12+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package foo;
2+
3+
import org.junit.Test;
4+
5+
public class RandomTestsB extends RandomTestsUtils {
6+
@Test
7+
public void test1() throws Exception { testGreeting("Dakota", 18); }
8+
@Test
9+
public void test2() throws Exception { testGreeting("Ethan", 15); }
10+
@Test
11+
public void test3() throws Exception { testGreeting("Felix", 12); }
12+
@Test
13+
public void test4() throws Exception { testGreeting("Gabriel", 16); }
14+
@Test
15+
public void test5() throws Exception { testGreeting("Harper", 20); }
16+
@Test
17+
public void test6() throws Exception { testGreeting("Isaac", 14); }
18+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package foo;
2+
3+
import org.junit.Test;
4+
5+
public class RandomTestsC extends RandomTestsUtils {
6+
@Test
7+
public void test1() throws Exception { testGreeting("Jordan", 95); }
8+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package foo;
2+
3+
import org.junit.Test;
4+
5+
public class RandomTestsD extends RandomTestsUtils {
6+
@Test
7+
public void test1() throws Exception { testGreeting("Kai", 14); }
8+
@Test
9+
public void test2() throws Exception { testGreeting("Luna", 11); }
10+
@Test
11+
public void test3() throws Exception { testGreeting("Mason", 15); }
12+
@Test
13+
public void test4() throws Exception { testGreeting("Nova", 10); }
14+
@Test
15+
public void test5() throws Exception { testGreeting("Owen", 13); }
16+
@Test
17+
public void test6() throws Exception { testGreeting("Piper", 12); }
18+
@Test
19+
public void test7() throws Exception { testGreeting("Quinn", 14); }
20+
@Test
21+
public void test8() throws Exception { testGreeting("River", 11); }
22+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package foo;
2+
3+
import org.junit.Test;
4+
5+
public class RandomTestsE extends RandomTestsUtils {
6+
@Test
7+
public void test1() throws Exception { testGreeting("Sage", 28); }
8+
@Test
9+
public void test2() throws Exception { testGreeting("Talia", 22); }
10+
@Test
11+
public void test3() throws Exception { testGreeting("Urban", 25); }
12+
@Test
13+
public void test4() throws Exception { testGreeting("Violet", 20); }
14+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package foo;
2+
3+
import org.junit.Test;
4+
5+
public class RandomTestsF extends RandomTestsUtils {
6+
@Test
7+
public void test1() throws Exception { testGreeting("Winter", 12); }
8+
@Test
9+
public void test2() throws Exception { testGreeting("Xander", 10); }
10+
@Test
11+
public void test3() throws Exception { testGreeting("Yara", 13); }
12+
@Test
13+
public void test4() throws Exception { testGreeting("Zephyr", 9); }
14+
@Test
15+
public void test5() throws Exception { testGreeting("Atlas", 11); }
16+
@Test
17+
public void test6() throws Exception { testGreeting("Blair", 14); }
18+
@Test
19+
public void test7() throws Exception { testGreeting("Cruz", 10); }
20+
@Test
21+
public void test8() throws Exception { testGreeting("Dawn", 12); }
22+
@Test
23+
public void test9() throws Exception { testGreeting("Echo", 8); }
24+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package foo;
2+
3+
import org.junit.Test;
4+
5+
public class RandomTestsG extends RandomTestsUtils {
6+
@Test
7+
public void test1() throws Exception { testGreeting("Finn", 45); }
8+
@Test
9+
public void test2() throws Exception { testGreeting("Gray", 52); }
10+
}

0 commit comments

Comments
 (0)