Skip to content

Commit 6f189c7

Browse files
committed
[+] Add testing instructions
1 parent 5146675 commit 6f189c7

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Final Project for CSC207
88
* [Task List (Projects)](https://github.com/users/hykilpikonna/projects/1)
99
* [Repo in CSC207 Organization](https://github.com/CSC207-2022F-UofT/mcpm)
1010

11+
## Development
12+
13+
### Run a specific class in an external terminal
14+
15+
`./gradlew classes testClasses && build/jdk19/Contents/Home/bin/java -cp "build/classes/java/main:build/classes/java/test" org.hydev.mcpm.<class>`
16+
1117
## Brainstorm
1218

1319
Server file/endpoint structure:

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ if (hasProperty('buildScan')) {
7474

7575
test {
7676
useJUnitPlatform()
77+
testLogging.showStandardStreams = true
7778
}

src/test/java/org/hydev/mcpm/utils/ConsoleUtilsTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ConsoleUtilsTest
1616
void move()
1717
{
1818
// NOTE: You must be on a Xterm-compatible TTY for this test to work, which is why it's
19-
// impossible to unit-test
19+
// impossible to unit-test, and it can't even show up properly on gradle
2020
var cu = new ConsoleUtils();
2121
cu.clear();
2222
System.out.println("Hello World");
@@ -38,4 +38,8 @@ void move()
3838
System.out.println("Erased");
3939
}
4040

41+
public static void main(String[] args)
42+
{
43+
new ConsoleUtilsTest().move();
44+
}
4145
}

0 commit comments

Comments
 (0)