Skip to content

Commit

Permalink
Add missing class.
Browse files Browse the repository at this point in the history
  • Loading branch information
thegridman committed Jun 15, 2023
1 parent 5451e65 commit bc90497
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib_xunit/src/main/x/xunit/executor.x
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
* execution of test fixtures.
*/
package executor {
/**
* A skipped test result.
*/
const SkipResult(Boolean skipped, String reason = "unknown") {
static SkipResult NotSkipped = new SkipResult(False);
}
}
15 changes: 15 additions & 0 deletions lib_xunit/src/main/x/xunit/executor/DefaultEngine.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* A default `TestEngine` implementation.
*/
service DefaultEngine
implements TestEngine {
@Override
Model discover(DiscoveryConfiguration config, Selector[] selectors) {
TODO
}

@Override
void execute(Model model) {
TODO
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DefaultMethodExecutorTest {
ExecutionContext ctx = DefaultExecutionContext.create(model);
ResolverStub resolver = new ResolverStub(["Foo", "Bar"]);

ctx.repository.register(ParameterResolver, resolver);
ctx.registry.register(ParameterResolver, resolver);

DefaultMethodExecutor executor = new DefaultMethodExecutor();
Tuple result = executor.invoke(fn, ctx);
Expand Down

0 comments on commit bc90497

Please sign in to comment.