98/100(98%) line coverage

      
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
221
230
240
251
261
271
281
291
301
311
321
331
341
351
361
371
381
391
401
411
421
431
441
451
461
471
481
491
501
511
521
531
541
551
560
571
580
591
601
611
621
631
641
651
661
671
681
691
701
711
721
731
741
751
761
771
781
791
801
811
821
831
841
851
861
871
881
890
901
910
921
931
941
951
961
971
981
991
1001
1011
1021
1031
1041
1051
1061
1071
1081
1091
1101
1111
1121
1131
1141
1151
1161
1171
1181
1191
1201
1211
1220
1231
1240
1250
1261
1270
1280
1290
1300
1312
1320
1330
1340
1350
1360
1370
1382
1390
import trial.discovery.unit; import trial.discovery.spec; import trial.discovery.testclass; import trial.runner; import trial.interfaces; import trial.settings; import trial.stackresult; import trial.reporters.result; import trial.reporters.stats; import trial.reporters.spec; import trial.reporters.specsteps; import trial.reporters.dotmatrix; import trial.reporters.landing; import trial.reporters.progress; import trial.reporters.xunit; import trial.reporters.tap; import trial.reporters.visualtrial; import trial.reporters.result; int main(string[] arguments) { setupLifecycle(Settings(["spec", "result", "stats", "html", "allure", "xunit"], ["trial.discovery.unit.UnitTestDiscovery", "trial.discovery.spec.SpecTestDiscovery", "trial.discovery.testclass.TestClassDiscovery"], false, 1, GlyphSettings(SpecGlyphs(`✓`), SpecStepsGlyphs(`┌`, `└`, `│`), TestResultGlyphs(`✖`), DotMatrixGlyphs(`.`,`!`,`?`), LandingGlyphs(`✈`,`━`,`⋅`), ProgressGlyphs(`░`,`▓`)), ".trial", 20, 100)); StackResult.externalModules = ["fluent.asserts", "fluentasserts.core.array", "fluentasserts.core.base", "fluentasserts.core.basetype", "fluentasserts.core.callable", "fluentasserts.core.objects", "fluentasserts.core.results", "fluentasserts.core.string", "ddmp.diff", "ddmp.match", "ddmp.patch", "ddmp.util", "dparse.ast", "dparse.entities", "dparse.formatter", "dparse.lexer", "dparse.parser", "dparse.rollback_allocator", "dparse.stack_buffer", "std.experimental.lexer", "_d_assert", "std.", "core."]; auto testDiscovery0 = new UnitTestDiscovery; testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/attributes.d`, `trial.attributes`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/coverage.d`, `trial.coverage`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/code.d`, `trial.discovery.code`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/spec.d`, `trial.discovery.spec`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/testclass.d`, `trial.discovery.testclass`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/unit.d`, `trial.discovery.unit`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/executor/parallel.d`, `trial.executor.parallel`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/executor/single.d`, `trial.executor.single`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/interfaces.d`, `trial.interfaces`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/allure.d`, `trial.reporters.allure`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/dotmatrix.d`, `trial.reporters.dotmatrix`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/html.d`, `trial.reporters.html`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/landing.d`, `trial.reporters.landing`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/list.d`, `trial.reporters.list`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/progress.d`, `trial.reporters.progress`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/result.d`, `trial.reporters.result`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/spec.d`, `trial.reporters.spec`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specprogress.d`, `trial.reporters.specprogress`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specsteps.d`, `trial.reporters.specsteps`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/stats.d`, `trial.reporters.stats`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/tap.d`, `trial.reporters.tap`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/visualtrial.d`, `trial.reporters.visualtrial`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/writer.d`, `trial.reporters.writer`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/xunit.d`, `trial.reporters.xunit`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/runner.d`, `trial.runner`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/settings.d`, `trial.settings`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/stackresult.d`, `trial.stackresult`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/step.d`, `trial.step`); testDiscovery0.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/terminal.d`, `trial.terminal`); LifeCycleListeners.instance.add(testDiscovery0); auto testDiscovery1 = new SpecTestDiscovery; testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/attributes.d`, `trial.attributes`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/coverage.d`, `trial.coverage`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/code.d`, `trial.discovery.code`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/spec.d`, `trial.discovery.spec`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/testclass.d`, `trial.discovery.testclass`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/unit.d`, `trial.discovery.unit`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/executor/parallel.d`, `trial.executor.parallel`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/executor/single.d`, `trial.executor.single`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/interfaces.d`, `trial.interfaces`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/allure.d`, `trial.reporters.allure`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/dotmatrix.d`, `trial.reporters.dotmatrix`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/html.d`, `trial.reporters.html`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/landing.d`, `trial.reporters.landing`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/list.d`, `trial.reporters.list`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/progress.d`, `trial.reporters.progress`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/result.d`, `trial.reporters.result`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/spec.d`, `trial.reporters.spec`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specprogress.d`, `trial.reporters.specprogress`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specsteps.d`, `trial.reporters.specsteps`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/stats.d`, `trial.reporters.stats`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/tap.d`, `trial.reporters.tap`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/visualtrial.d`, `trial.reporters.visualtrial`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/writer.d`, `trial.reporters.writer`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/xunit.d`, `trial.reporters.xunit`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/runner.d`, `trial.runner`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/settings.d`, `trial.settings`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/stackresult.d`, `trial.stackresult`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/step.d`, `trial.step`); testDiscovery1.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/terminal.d`, `trial.terminal`); LifeCycleListeners.instance.add(testDiscovery1); auto testDiscovery2 = new TestClassDiscovery; testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/attributes.d`, `trial.attributes`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/coverage.d`, `trial.coverage`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/code.d`, `trial.discovery.code`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/spec.d`, `trial.discovery.spec`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/testclass.d`, `trial.discovery.testclass`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/unit.d`, `trial.discovery.unit`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/executor/parallel.d`, `trial.executor.parallel`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/executor/single.d`, `trial.executor.single`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/interfaces.d`, `trial.interfaces`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/allure.d`, `trial.reporters.allure`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/dotmatrix.d`, `trial.reporters.dotmatrix`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/html.d`, `trial.reporters.html`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/landing.d`, `trial.reporters.landing`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/list.d`, `trial.reporters.list`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/progress.d`, `trial.reporters.progress`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/result.d`, `trial.reporters.result`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/spec.d`, `trial.reporters.spec`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specprogress.d`, `trial.reporters.specprogress`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specsteps.d`, `trial.reporters.specsteps`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/stats.d`, `trial.reporters.stats`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/tap.d`, `trial.reporters.tap`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/visualtrial.d`, `trial.reporters.visualtrial`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/writer.d`, `trial.reporters.writer`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/xunit.d`, `trial.reporters.xunit`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/runner.d`, `trial.runner`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/settings.d`, `trial.settings`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/stackresult.d`, `trial.stackresult`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/step.d`, `trial.step`); testDiscovery2.addModule!(`/home/gitlab-runner/builds/b538030e/0/szabobogdan3/trial-website/trial/lifecycle/trial/terminal.d`, `trial.terminal`); LifeCycleListeners.instance.add(testDiscovery2); if(arguments.length > 1 && arguments[1] == "describe") { import std.stdio; describeTests.toJSONHierarchy.write; return 0; } else { return runTests(arguments).isSuccess ? 0 : 1; } } version (unittest) shared static this() { import core.runtime; Runtime.moduleUnitTester = () => true; }