Skip to content

Commit

Permalink
Move XUnit tests so they build and run under manualTests
Browse files Browse the repository at this point in the history
  • Loading branch information
thegridman committed Feb 10, 2024
1 parent b58b8fd commit 0afff1d
Show file tree
Hide file tree
Showing 25 changed files with 4 additions and 16 deletions.
3 changes: 2 additions & 1 deletion manualTests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ sourceSets {
"**/services.x",
"**/reflect.x",
"**/regex.x",
"**/tuple.x"
"**/tuple.x",
"**/xunit_test.x"
)
}
}
Expand Down
14 changes: 0 additions & 14 deletions manualTests/src/main/x/xunit/README.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module xunit_test.xtclang.org {
Int passed = 0;
Int failed = 0;


if (clz.is(Test)) {
if (clz.group == Test.Omit) {
return passed, failed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class AssertingExecutionListener
.assertCompleted()
.assertResult(result -> {
assert result.status == Failed;
assert result.exception.is(errorType);
assert result.exception.is(errorType) as $"expected exception {errorType} but caught {result.exception}";
assert result.duration != Duration.None;
});
}
Expand Down

0 comments on commit 0afff1d

Please sign in to comment.