151/155(97%) line coverage

      
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
241
251
261
271
280
291
300
310
320
330
340
350
360
371
380
390
401
410
420
430
440
451
460
470
480
491
500
510
521
531
541
550
560
570
580
590
600
610
620
630
640
650
661
670
680
690
700
710
720
730
740
750
760
770
780
790
800
810
820
830
840
850
860
870
880
890
900
910
920
930
940
950
960
970
980
990
1000
1010
1020
1030
1040
1050
1060
1070
1080
1090
1100
1110
1120
1130
1140
1150
1160
1170
1180
1190
1200
1210
1220
1230
1240
1250
1261
1270
1280
1290
1300
1310
1320
1330
1340
1350
1360
1370
1380
1390
1400
1411
1420
1430
1440
1450
1460
1470
1480
1490
1500
1510
1520
1530
1540
1550
1560
1570
1580
1590
1600
1610
1620
1631
1640
1650
1660
1670
1680
1690
1700
1710
1720
1730
1740
1750
1760
1770
1780
1790
1800
1810
1820
1830
1840
1850
1860
1870
1880
1890
1900
1911
1920
1930
1940
1950
1960
1970
1980
1990
2000
2010
2020
2030
2040
2050
2060
2070
2080
2090
2100
2110
2121
2130
2141
2150
2160
2170
2180
2190
2201
2210
2220
2230
2240
2250
2260
2270
2280
2290
2300
2311
2320
2330
2340
2350
2360
2370
2380
2390
2400
2410
2420
2430
2440
2450
2460
2470
2480
2490
2500
2510
2520
2530
2540
2550
2560
2570
2580
2590
2600
2610
2620
2630
2640
2650
2660
2670
2680
2690
2700
2710
2720
2730
2740
2750
2760
2770
2780
2790
2800
2810
2820
2830
2840
2850
2860
2870
2880
2890
2900
2910
2920
2930
2940
2950
2960
2970
2980
2990
3000
3010
3020
3030
3040
3050
3060
3070
3080
3090
3100
3110
3120
3130
3140
3150
3160
3170
3180
3190
3200
3210
3220
3230
3240
3250
3260
3270
3280
3290
3300
3310
3320
3330
3340
3350
3360
3371
3380
3390
3400
3410
3420
3430
3440
3450
3460
3470
3480
3490
3500
3510
3520
3530
3540
3550
3560
3570
3581
3590
3600
3610
3621
3630
3641
3650
3660
3670
3681
3690
3701
3710
3720
3730
3741
3750
3760
3770
3781
3790
3800
3810
3820
3831
3840
3851
3860
3870
3880
3890
3900
3910
3920
3931
3940
3950
3960
3970
3981
3990
4000
4010
4020
4030
4040
4050
4060
4070
4080
4090
4100
4110
4121
4130
4140
4150
4160
4170
4180
4190
4200
4210
4220
4230
4240
4250
4260
4270
4280
4290
4300
4310
4320
4330
4341
4350
4360
4370
4380
4390
4400
4410
4420
4430
4440
4450
4460
4470
4480
4490
4500
4510
4520
4530
4540
4550
4560
4570
4580
4590
4600
4610
4620
4630
4640
4650
4660
4670
4680
4690
4700
4710
4720
4730
4740
4750
4761
4770
4780
4790
4800
4810
4820
4830
4840
4850
4860
4870
4880
4891
4900
4910
4920
4930
4940
4950
4960
4970
4980
4990
5000
5010
5020
5030
5040
5051
5060
5070
5080
5090
5100
5110
5120
5130
5140
5150
5160
5170
5180
5190
5200
5210
5220
5230
5240
5250
5260
5270
5281
5290
5300
5310
5320
5330
5340
5350
5360
5370
5380
5390
5400
5410
5420
5430
5440
5450
5460
5470
5480
5490
5500
5510
5520
5530
5540
5550
5560
5570
5580
5590
5600
5610
5620
5630
5640
5650
5660
5670
5680
5690
5700
5710
5720
5730
5740
5750
5760
5771
5780
5790
5800
5811
5820
5830
5840
5850
5860
5870
5880
5890
5900
5910
5920
5930
5940
5950
5960
5970
5980
5990
6000
6010
6020
6030
6040
6050
6060
6070
6080
6090
6100
6110
6120
6130
6140
6150
6160
6170
6180
6190
6200
6210
6220
6230
6240
6250
6260
6270
6280
6290
6300
6310
6320
6330
6340
6350
6360
6370
6380
6390
6400
6410
6420
6430
6440
6450
6460
6470
6480
6490
6500
6510
6520
6530
6540
6550
6560
6570
6580
6590
6600
6610
6620
6630
6640
6650
6660
6670
6680
6690
6700
6710
6720
6730
6740
6750
6760
6770
6780
6790
6800
6810
6820
6830
6840
6850
6860
6870
6880
6890
6900
6910
6920
6930
6940
6950
6960
6970
6980
6990
7000
7010
7020
7030
7040
7050
7060
7070
7080
7090
7100
7110
7120
7130
7140
7150
7160
7170
7180
7190
7200
7210
7220
7230
7240
7250
7260
7270
7280
7290
7300
7310
7320
7330
7340
7350
7360
7370
7380
7390
7400
7410
7420
7430
7440
7450
7460
7470
7480
7490
7500
7510
7520
7530
7540
7550
7560
7570
7580
7590
7600
7611
7621
7631
7641
7651
7661
7671
7681
7691
7701
7711
7721
7731
7741
7751
7761
7771
7781
7791
7801
7811
7821
7831
7841
7851
7861
7871
7881
7891
7901
7911
7921
7931
7941
7951
7961
7970
7981
7990
8001
8011
8021
8031
8041
8051
8061
8071
8081
8091
8101
8111
8121
8131
8141
8151
8161
8171
8181
8191
8201
8211
8221
8231
8241
8251
8261
8271
8281
8291
8301
8311
8321
8331
8340
8351
8360
8371
8381
8391
8401
8411
8421
8431
8441
8451
8461
8471
8481
8491
8501
8511
8521
8531
8541
8551
8561
8571
8581
8591
8601
8611
8621
8631
8641
8651
8661
8671
8681
8691
8701
8710
8721
8730
8740
8751
8760
8770
8780
8790
8802
8810
8820
8830
8840
8850
8860
8872
8880
import std.getopt; import std.string; 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) { string testName; string suiteName; string executor; string reporters; getopt( arguments, "testName|t", &testName, "suiteName|s", &suiteName, "executor|e", &executor, "reporters|r", &reporters ); auto settings = Settings(["spec", "result", "stats", "html", "allure", "xunit"], ["trial.discovery.unit.UnitTestDiscovery", "trial.discovery.spec.SpecTestDiscovery", "trial.discovery.testclass.TestClassDiscovery"], 1, GlyphSettings(SpecGlyphs(`✓`), SpecStepsGlyphs(`┌`, `└`, `│`), TestResultGlyphs(`✖`), DotMatrixGlyphs(`.`,`!`,`?`), LandingGlyphs(`✈`,`━`,`⋅`), ProgressGlyphs(`░`,`▓`)), ".trial", 20, 100, [], ""); static if(__traits(hasMember, Settings, "executor")) { if(executor != "") { settings.executor = executor; } } if(reporters != "") { settings.reporters = reporters.split(","); } setupLifecycle(settings); 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", "fluentasserts.vibe.json", "fluentasserts.vibe.request", "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", "stdx.allocator.building_blocks.affix_allocator", "stdx.allocator.building_blocks.allocator_list", "stdx.allocator.building_blocks.bitmapped_block", "stdx.allocator.building_blocks.bucketizer", "stdx.allocator.building_blocks.fallback_allocator", "stdx.allocator.building_blocks.free_list", "stdx.allocator.building_blocks.free_tree", "stdx.allocator.building_blocks.kernighan_ritchie", "stdx.allocator.building_blocks.null_allocator", "stdx.allocator.building_blocks", "stdx.allocator.building_blocks.quantizer", "stdx.allocator.building_blocks.region", "stdx.allocator.building_blocks.scoped_allocator", "stdx.allocator.building_blocks.segregator", "stdx.allocator.building_blocks.stats_collector", "stdx.allocator.common", "stdx.allocator.gc_allocator", "stdx.allocator.internal", "stdx.allocator.mallocator", "stdx.allocator.mmap_allocator", "It", "stdx.allocator.showcase", "stdx.allocator.typed", "vibe.data.bson", "vibe.data.json", "vibe.data.serialization", "vibe.internal.memory_legacy", "vibe.internal.meta.all", "vibe.internal.meta.codegen", "vibe.internal.meta.funcattr", "vibe.internal.meta.traits", "vibe.internal.meta.typetuple", "vibe.internal.meta.uda", "vibe.internal.rangeutil", "vibe.internal.utilallocator", "vibe.internal.win32", "vibe.utils.array", "vibe.utils.dictionarylist", "vibe.utils.hashmap", "vibe.utils.memory", "vibe.utils.string", "vibe.utils.validation", "vibe.http.auth.basic_auth", "vibe.http.auth.digest_auth", "vibe.http.client", "vibe.http.common", "vibe.http.dist", "vibe.http.fileserver", "vibe.http.form", "vibe.http.log", "vibe.http.proxy", "vibe.http.router", "vibe.http.server", "vibe.http.session", "vibe.http.status", "vibe.http.websockets", "diet.defs", "diet.dom", "diet.html", "diet.input", "diet.internal.html", "diet.internal.string", "diet.parser", "diet.traits", "vibe.crypto.cryptorand", "vibe.crypto.passwordhash", "vibe.core.args", "vibe.core.concurrency", "vibe.core.connectionpool", "vibe.core.core", "vibe.core.file", "vibe.core.log", "vibe.core.net", "vibe.core.path", "vibe.core.stream", "vibe.core.sync", "vibe.core.task", "vibe.core.taskpool", "vibe.internal.allocator", "vibe.internal.array", "vibe.internal.async", "vibe.internal.freelistref", "vibe.internal.hashmap", "vibe.internal.interfaceproxy", "vibe.internal.list", "vibe.internal.string", "vibe.internal.traits", "vibe.internal.typetuple", "eventcore.core", "eventcore.driver", "eventcore.drivers.libasync", "eventcore.drivers.posix.dns", "eventcore.drivers.posix.driver", "eventcore.drivers.posix.epoll", "eventcore.drivers.posix.events", "eventcore.drivers.posix.kqueue", "eventcore.drivers.posix.select", "eventcore.drivers.posix.signals", "eventcore.drivers.posix.sockets", "eventcore.drivers.posix.watchers", "eventcore.drivers.threadedfile", "eventcore.drivers.timer", "eventcore.drivers.winapi.core", "eventcore.drivers.winapi.dns", "eventcore.drivers.winapi.driver", "eventcore.drivers.winapi.events", "eventcore.drivers.winapi.files", "eventcore.drivers.winapi.signals", "eventcore.drivers.winapi.sockets", "eventcore.drivers.winapi.watchers", "eventcore.internal.consumablequeue", "eventcore.internal.dlist", "eventcore.internal.utils", "eventcore.internal.win32", "eventcore.socket", "taggedalgebraic", "vibe.inet.message", "vibe.inet.mimetypes", "vibe.inet.path", "vibe.inet.url", "vibe.inet.urltransfer", "vibe.inet.webform", "vibe.stream.base64", "vibe.stream.counting", "vibe.stream.memory", "vibe.stream.multicast", "vibe.stream.operations", "vibe.stream.stdio", "vibe.stream.taskpipe", "vibe.stream.wrapper", "vibe.stream.zlib", "vibe.textfilter.html", "vibe.textfilter.markdown", "vibe.textfilter.urlencode", "vibe.stream.botan", "vibe.stream.openssl", "vibe.stream.tls", "_d_assert", "std.", "core."]; auto testDiscovery0 = new UnitTestDiscovery; static if(__traits(hasMember, UnitTestDiscovery, "comments")) { UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/attributes.d"] = [Comment(2, "A module containing the attributes used to add metadata to your tests"), Comment(10, "This struct is used to mark some test functions"), Comment(15, ""), Comment(19, "This specifies when a setup method must be called"), Comment(24, "Run after the suite ends"), Comment(27, "Run before each test"), Comment(30, "Run after each test"), Comment(34, "Mark a test"), Comment(39, "Mark a function to be executed before each test"), Comment(44, "Mark a function to be executed after each test"), Comment(49, "Mark a function to be executed before the suite starts"), Comment(54, "Mark a function to be executed after the suite ends")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/coverage.d"] = [Comment(2, "A module containing the logic for parsing and analysing the code coverage"), Comment(40, "Converts coverage lst files to html"), Comment(75, "Get the line that contains the coverage summary"), Comment(87, "It should get the coverage summary from the .lst file with no coverage"), Comment(96, "It should get the coverage summary from the .lst file with missing data"), Comment(103, "It should get the coverage summary from the .lst file with percentage"), Comment(112, "Get the filename from the coverage summary"), Comment(129, "It should get the filename from the .lst file with no coverage"), Comment(138, "It should get the filename from the .lst file with no code"), Comment(146, "It should get the filename from the .lst file with percentage"), Comment(155, "Get the percentage from the covered summary"), Comment(174, "It should get the filename from the .lst file with no coverage"), Comment(183, "It should get the filename from the .lst file with no code"), Comment(191, "It should get the filename from the .lst file with percentage"), Comment(200, "The representation of a line from the .lst file"), Comment(203, ""), Comment(206, ""), Comment(209, ""), Comment(214, ""), Comment(232, "It should parse an empty line"), Comment(241, "Parse the file lines"), Comment(250, "It should convert a .lst file to covered line structs"), Comment(279, "Structure that represents one .lst file"), Comment(285, "Is true if the file is from the tested library and false if is an external file"), Comment(289, "Is true if the file is set to be ignored from the final report"), Comment(292, "The module name"), Comment(295, "The covered percent"), Comment(298, "The file lines with coverage data"), Comment(302, "Check if a file should be ignored from the report"), Comment(328, "It should return true for ignored coverage files"), Comment(345, "It should return false for when the ignore coverage file is missing"), Comment(363, "Check if a file is in the current path"), Comment(380, "Check project paths"), Comment(388, "Converts a .lst file content to a CoveredFile structure"), Comment(402, "should convert a .lst file to CoveredFile structure"), Comment(426, "should mark the `trial_.d` file as external file"), Comment(434, "Generate the html for a line coverage"), Comment(443, "Render line coverage column"), Comment(451, "Get the line coverage column for the html report"), Comment(456, "Cont how many lines were hit"), Comment(461, "Cont how many lines were hit"), Comment(466, "Replace an `{variable}` inside a string"), Comment(471, "It should replace a variable inside a page"), Comment(476, "wraps some string in a html page"), Comment(481, "should replace the variables inside the page.html"), Comment(489, "Create an html progress bar"), Comment(494, "should replace the variables inside the page.html"), Comment(500, "Generate the coverage page header"), Comment(510, "Check variables for the coverage header"), Comment(526, "Convert a `CoveredFile` struct to html"), Comment(538, "Check variables for the coverage html"), Comment(562, "Check if the table body is inserted"), Comment(567, "Calculate the coverage percent from the current project"), Comment(588, "No files are always 100% covered"), Comment(593, "check a 50% covered file"), Comment(599, "check a 50% external covered file"), Comment(641, "Ignored files"), Comment(663, "external files"), Comment(686, "Create line coverage shield as svg"), Comment(691, "The line coverage shield should contain the percent")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/code.d"] = [Comment(2, "A module containing parsing code utilities"), Comment(24, "Get the module name of a DLang source file"), Comment(73, ""), Comment(173, "returns the class name"), Comment(240, "An iterator that helps to deal with DLang tokens"), Comment(249, ""), Comment(267, ""), Comment(284, ""), Comment(290, "Skip until a token with a certain text is reached"), Comment(345, "Skip until a token with a certain type is reached"), Comment(361, "Skip one token"), Comment(370, "Concatenate all the tokens until the first token of a certain type that will be ignored"), Comment(390, "Returns a Dlang class. You must call this method after the class token was read."), Comment(424, "Returns a Dlang attribute. You must call this method after the @ token was read."), Comment(479, "Converts a string from camel notation to a readable sentence")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/spec.d"] = [Comment(2, "A module containing the discovery logic for spec tests"), Comment(31, "Define a Spec test suite"), Comment(52, "Define a function that will be ran before all the tests"), Comment(65, "Define a function that will be ran before each test"), Comment(71, "Define a function that will be ran after each test"), Comment(77, "Define a function that will be ran after all the tests were ran"), Comment(114, "Define a Spec"), Comment(139, "Define a pending Spec"), Comment(157, "The main spec container"), Comment(167, "The default test discovery looks for unit test sections and groups them by module"), Comment(176, "It does nothing..."), Comment(263, ""), Comment(276, "resolve the string tokens"), Comment(379, "getTestCases should find the spec suite"), Comment(390, "discoverTestCases should find the spec suite"), Comment(401, "getTestCases should find the spec suite"), Comment(412, "getTestCases should find nested spec suites"), Comment(423, "It should execute the spec before all hooks"), Comment(442, "It should execute the spec after all hooks"), Comment(461, "It should execute the spec before hooks"), Comment(480, "It should execute the spec after hooks"), Comment(499, "discoverTestCases should find the same tests like testCases")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/testclass.d"] = [Comment(2, "A module containing the discovery logic for classes annodated with @Test"), Comment(27, "A structure that stores data about the setup events(methods)"), Comment(88, "The default test discovery looks for unit test sections and groups them by module"), Comment(94, "Returns all the test cases that were found in the modules added with `addModule`"), Comment(158, "Add tests from a certain module"), Comment(259, ""), Comment(288, ""), Comment(300, ""), Comment(310, ""), Comment(335, ""), Comment(360, ""), Comment(376, ""), Comment(391, ""), Comment(400, ""), Comment(413, ""), Comment(427, ""), Comment(434, ""), Comment(440, ""), Comment(446, ""), Comment(452, ""), Comment(513, "TestClassDiscovery should find the Test Suite class"), Comment(529, "discoverTestCases should find the Test Suite class"), Comment(544, "TestClassDiscovery should execute tests from a Test Suite class"), Comment(563, "TestClassDiscovery should execute the before and after methods tests from a Test Suite class"), Comment(632, "Call a method using the right data provders"), Comment(641, "methodCaller should call the method with random numeric values"), Comment(687, "methodCaller should call the method with custom random generators"), Comment(711, "discoverTestCases should find the same tests like testCases")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/unit.d"] = [Comment(2, "A module containing the default test discovery logic"), Comment(71, "other line"), Comment(74, "line 3 line 4"), Comment(76, "other line"), Comment(80, "line 5 line 6"), Comment(85, "line 7 line 8 /\";"), Comment(229, "Remove comment tokens"), Comment(235, "clearCommentTokens should remove comment tokens"), Comment(286, "The default test discovery looks for unit test sections and groups them by module"), Comment(601, "This adds asserts to the module"), Comment(609, "It should extract the line from the default test name"), Comment(614, "It should extract the line from the default test name with _d_ in symbol name"), Comment(624, "It should find this test"), Comment(637, "It should find this flaky test"), Comment(654, "It should find the line of this test"), Comment(672, "It should find this test with issues attributes"), Comment(689, "The discoverTestCases should find the test with issues attributes"), Comment(707, "The discoverTestCases should find the test with the flaky attribute"), Comment(742, "The discoverTestCases should find this test"), Comment(762, "discoverTestCases should ignore version(unittest)"), Comment(784, "discoverTestCases should find the same tests like testCases")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/parallel.d"] = [Comment(2, "A module containing the parallel test runner"), Comment(185, "The parallel executors runs tests in a sepparate thread")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/process.d"] = [Comment(2, "A module containing the process runner"), Comment(49, "An executor that will run every test in a separate process"), Comment(53, "A function that should spawn a process that will run the test"), Comment(61, "Instantiate the executor with a custom process runner"), Comment(70, "Instantiate the executor with a custom process runner"), Comment(79, "Run a test case")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/single.d"] = [Comment(2, "A module containing the single threaded runner"), Comment(22, "The default test executor runs test in sequential order in a single thread"), Comment(37, "Called when an attachment is ready"), Comment(47, "Add the step result and update the other listeners on every step"), Comment(56, "Update the other listeners on every step"), Comment(64, "It does nothing"), Comment(70, "Return the result for the last executed suite"), Comment(103, "Convert a test case to a test result"), Comment(127, "Execute a test case"), Comment(162, "Executing a test case that throws a PendingTestException should mark the test result as pending instead of a failure"), Comment(184, "Executing a test case should set the right begin and end times")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/interfaces.d"] = [Comment(2, "A module containing the interfaces used for extending the test runner"), Comment(32, "Alias to a Test Case function type"), Comment(36, "A Listener for the main test events"), Comment(45, "This method is triggered when you can perform some updates. The frequency varries by the test executor that you choose"), Comment(48, "This method is trigered when your tests are ended"), Comment(52, "Convert a Throwable to a json string"), Comment(69, "convert a Throwable to json"), Comment(76, "A listener that provides test cases to be executed"), Comment(82, "A listener that provides test cases contained in a certain file"), Comment(92, "A Listener that can run tests. During the test execution can be used only one instance of this listance. After all the tests were executed the result of all three methods are concatenated and passed to `ILifecycleListener.end(SuiteResult[])`"), Comment(98, "Run a particullary test case"), Comment(101, "Called when there is no more test to be executed"), Comment(105, "A Listener for the suite events"), Comment(111, "Called after a suite execution"), Comment(115, "A Listener for handling attachments"), Comment(122, "A Listener for the test case events"), Comment(128, "Called after a test execution"), Comment(132, "A Listener for the step events"), Comment(138, "Called after a step ended"), Comment(142, "A struct representing a label for test results"), Comment(147, "The label value"), Comment(150, "Convert the struct to a JSON string"), Comment(155, ""), Comment(160, ""), Comment(168, "Label string representation should be in Json format"), Comment(173, "create a label from a json object"), Comment(181, "create a label list from a json array"), Comment(188, "A struct representing an attachment for test steps"), Comment(193, "The absolute path to the attachment"), Comment(196, "The file mime path"), Comment(200, "The attachement destination. All the attached files will be copied in this folder if it is not allready inside"), Comment(203, "Add a file to the current test or step"), Comment(227, "Convert an attachement to Json string"), Comment(235, "Represents a line of code in a certain file."), Comment(240, ""), Comment(243, "Converts the structure to a JSON string"), Comment(250, "SourceLocation string representation should be a JSON string"), Comment(259, "A test case that will be executed"), Comment(265, "The test case suite name. It can contain `.` which is treated as a separator for nested suites"), Comment(268, "The test name"), Comment(274, "The function that must be executed to check if the test passes or not. In case of failure, an exception is thrown."), Comment(279, "A list of labels that will be added to the final report"), Comment(282, "The test location"), Comment(285, ""), Comment(298, ""), Comment(304, ""), Comment(309, ""), Comment(329, "TestCase string representation should be a JSON string"), Comment(341, ""), Comment(354, "A suite result"), Comment(360, "The suite name. It can contain `.` which is treated as a separator for nested suites"), Comment(363, "when the suite started"), Comment(366, "when the suite ended"), Comment(369, "the tests executed for the current suite"), Comment(372, "The list of attached files"), Comment(375, ""), Comment(379, ""), Comment(386, ""), Comment(392, ""), Comment(399, ""), Comment(407, ""), Comment(416, "Convert the struct to a json string"), Comment(441, "A step result"), Comment(447, "When the step started"), Comment(450, "When the step ended"), Comment(453, "The list of the child steps"), Comment(456, "The list of attached files"), Comment(476, "Convert the result to a json string"), Comment(482, "Convert a step result to a json"), Comment(496, "A test result"), Comment(518, "The file that contains this test"), Comment(521, "The line where this test starts"), Comment(524, "Represents the test status"), Comment(529, "A list of labels that will be added to the final report"), Comment(535, "The reason why a test has failed. This value must be set only if the tests has the `failure` state"), Comment(538, "Convenience constructor that sets the test name"), Comment(545, "Convert the result to a json string"), Comment(560, "Attribute that marks the test as flaky. Different reporters will interpret this information in different ways."), Comment(563, "Returns the labels that set the test a flaky"), Comment(570, "Attribute that links an issue to a test. Some test reporters can display links, so the value can be also a link."), Comment(575, "Returns the labels that set the issue label"), Comment(581, "Attribute that sets the feaure label"), Comment(585, "Returns the labels that set the feature label"), Comment(591, "Attribute that sets the story label"), Comment(595, "Returns the labels that set the feature label"), Comment(601, "Attach the readme file"), Comment(608, "An exception that should be thrown by the pending test cases"), Comment(611, ""), Comment(619, "The lifecycle listeners collections. You must use this instance in order to extend the runner. You can have as many listeners as you want. The only restriction is for ITestExecutor, which has no sense to have more than one instance for a run"), Comment(622, "The global instange."), Comment(645, "True if the tests are being executed"), Comment(651, ""), Comment(656, "Add a listener to the collection"), Comment(695, "Send the attachment to all listeners"), Comment(700, "Send the update event to all listeners"), Comment(705, "Send the begin run event to all listeners"), Comment(710, "Send the end runer event to all listeners"), Comment(715, "Send the begin suite event to all listeners"), Comment(720, "Send the end suite event to all listeners"), Comment(725, "Send the begin test event to all listeners"), Comment(731, "Send the end test event to all listeners"), Comment(737, "Send the begin step event to all listeners"), Comment(743, "Send the end step event to all listeners"), Comment(749, "Send the execute test to the executor listener"), Comment(756, "Send the begin execution with the test case list to the executor listener"), Comment(762, "Send the end execution the executor listener")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/allure.d"] = [Comment(2, "A module containing the AllureReporter"), Comment(37, "The Allure reporter creates a xml containing the test results, the steps and the attachments. http://allure.qatools.ru/"), Comment(75, "The suite id"), Comment(78, "The allure version"), Comment(91, "Converts the suiteResult to a xml string"), Comment(187, "AllureSuiteXml should add the attachments"), Comment(230, ""), Comment(243, "Converts a test result to allure status"), Comment(263, "Return the string representation of the test"), Comment(352, "AllureTestXml should transform a test with steps"), Comment(385, "AllureTestXml should transform a test with labels"), Comment(407, "AllureTestXml should add the attachments"), Comment(458, "Return the string representation of the step"), Comment(483, "AllureStepXml should transform a step"), Comment(500, "AllureStepXml should transform nested steps"), Comment(532, "AllureStepXml should add the attachments"), Comment(568, "Allure representation of an atachment. It will copy the file to the allure folder with an unique name"), Comment(582, "Init the struct and copy the atachment to the allure folder"), Comment(604, "convert the attachment to string"), Comment(612, "Allure attachments should be copied to a folder containing the suite name"), Comment(629, "Allure attachments should avoid name collisions")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/dotmatrix.d"] = [Comment(2, "A module containing the DotMatrixReporter"), Comment(27, ""), Comment(35, ""), Comment(42, "The dot matrix reporter is simply a series of characters which represent test cases. Failures highlight in red exclamation marks (!). Good if you prefer minimal output.")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/html.d"] = [Comment(2, "A module containing the HtmlReporter"), Comment(22, "The \"html\" reporter outputs a hierarchical HTML body representation of your tests.")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/landing.d"] = [Comment(2, "A module containing the LandingReporter"), Comment(27, ""), Comment(34, ""), Comment(39, "The Landing Strip (landing) reporter is a gimmicky test reporter simulating a plane landing unicode ftw")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/list.d"] = [Comment(2, "A module containing the ListReporter"), Comment(26, "The list reporter outputs a simple specifications list as test cases pass or fail")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/progress.d"] = [Comment(2, "A module containing the ProgressReporter"), Comment(27, ""), Comment(38, ""), Comment(43, "The “progress” reporter implements a simple progress-bar")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/result.d"] = [Comment(2, "A module containing the ResultReporter"), Comment(31, "A structure containing the glyphs used for the result reporter"), Comment(42, ""), Comment(49, "The \"Result\" reporter will print an overview of your test run")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/spec.d"] = [Comment(2, "A module containing the SpecReporter"), Comment(28, "A structure containing the glyphs used for the spec reporter"), Comment(41, ""), Comment(46, "This is the default reporter. The \"spec\" reporter outputs a hierarchical view nested just as the test cases are."), Comment(329, "it should print the test duration")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specprogress.d"] = [Comment(2, "A module containing the SpecProgressReporter"), Comment(23, "A flavour of the \"spec\" reporter that show the progress of long tests. This works well with the parallel runner. If you are using the stats reporters, you will see a countdown for how long you need to wait until the test is finished.")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specsteps.d"] = [Comment(2, "A module containing the SpecStepsReporter"), Comment(25, "A structure containing the glyphs used for the spec steps reporter"), Comment(31, ""), Comment(34, ""), Comment(40, ""), Comment(43, ""), Comment(48, ""), Comment(53, "A flavour of the \"spec\" reporter that show the tests and the steps of your tests.")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/stats.d"] = [Comment(2, "A module containing the StatsReporter"), Comment(27, ""), Comment(42, ""), Comment(62, "The stats reporter creates a csv file with the duration and the result of all your steps and tests. It's usefull to use it with other reporters, like spec progress."), Comment(161, "It should write the stats to the expected path")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/tap.d"] = [Comment(2, "A module containing the TAP13 reporter https://testanything.org"), Comment(29, "This reporter will print the results using thr Test anything protocol version 13"), Comment(36, ""), Comment(42, ""), Comment(48, ""), Comment(54, ""), Comment(57, ""), Comment(60, ""), Comment(65, ""), Comment(121, "it should print \"The Plan\" at the beginning"), Comment(130, "it should print a sucess test"), Comment(144, "it should print a failing test with a basic throwable"), Comment(165, "it should not print the YAML if the throwable is missing"), Comment(179, "it should print the results of a TestException")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/visualtrial.d"] = [Comment(3, "A module containing the Visual Trial reporter used to send data to the Visual Studio Code plugin"), Comment(44, "This reporter will print the results using thr Test anything protocol version 13"), Comment(51, ""), Comment(57, ""), Comment(63, ""), Comment(69, ""), Comment(72, ""), Comment(75, ""), Comment(90, ""), Comment(114, "it should print \"The Plan\" at the beginning"), Comment(123, "it should print the test location"), Comment(145, "it should print a sucess test"), Comment(161, "it should print a failing test with a basic throwable"), Comment(181, "it should not print the YAML if the throwable is missing"), Comment(195, "it should print the results of a TestException"), Comment(222, "Parse the output from the visual trial reporter"), Comment(238, "add a line to the parser"), Comment(338, "Parse a successful test"), Comment(373, "Parse a failing test"), Comment(395, "Raise an event when the test is ended"), Comment(413, "It should not replace a test result that was already assigned"), Comment(426, "It should raise an event with unparsed lines")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/writer.d"] = [Comment(2, "A module containing utilities for presenting information to the user"), Comment(19, "The default writer is initialized at the test run initialization with the right class, depending on the hosts capabilities."), Comment(22, "The writer interface is used to present information to the user."), Comment(27, "The information type. Convey meaning through color with a handful of emphasis utility classes."), Comment(33, "Less important information"), Comment(36, ""), Comment(39, "Something that the user should notice"), Comment(42, "Something that the user should be aware of"), Comment(45, "Something that the user must notice"), Comment(48, ""), Comment(52, "Go back a few lines"), Comment(55, "Write a string"), Comment(58, "Write a string with reversed colors"), Comment(61, "Write a string and go to a new line"), Comment(64, "Show the cursor from user"), Comment(67, "Hide the cursor from user"), Comment(70, "Get how many characters you can print on a line"), Comment(76, "The console writer outputs data to the standard output. It does not support colors and cursor moving. This is the default writer if arsd.terminal is not present."), Comment(80, "not supported"), Comment(85, ""), Comment(91, ""), Comment(97, ""), Comment(103, "not supported"), Comment(108, "not supported"), Comment(113, "returns 80"), Comment(149, "This writer uses arsd.terminal and it's used if you add this dependency to your project It supports all the features and you should use it if you want to get the best experience from this project"), Comment(258, "Go up `y` lines"), Comment(269, "writes a string"), Comment(282, "writes a string with reversed colors"), Comment(294, "writes a string and go to a new line"), Comment(300, "show the terminal cursor"), Comment(306, "hide the terminal cursor"), Comment(312, "returns the terminal width"), Comment(321, "You can use this writer if you don't want to keep the data in memmory It's useful for unit testing. It supports line navigation, with no color The context info might be added in the future, once a good format is found."), Comment(325, "The buffer used to write the data"), Comment(337, "go uo y lines"), Comment(344, "returns 80"), Comment(350, ""), Comment(388, ""), Comment(394, ""), Comment(400, "does nothing"), Comment(405, "does nothing")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/xunit.d"] = [Comment(2, "A module containing the XUnitReporter"), Comment(40, "The XUnit reporter creates a xml containing the test results"), Comment(79, "The suite id"), Comment(82, "Converts the suiteResult to a xml string"), Comment(113, "XUnitTestXml should transform a suite with a success test"), Comment(137, "XUnitTestXml should transform a suite with a failed test"), Comment(162, "XUnitTestXml should transform a suite with a skipped test"), Comment(188, "XUnitTestXml should transform a suite with a unknown test"), Comment(213, "XUnitTestXml should transform an empty suite"), Comment(231, ""), Comment(234, "Return the string representation of the test"), Comment(259, "XUnitTestXml should transform a success test"), Comment(274, "XUnitTestXml should transform a failing test")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/runner.d"] = [Comment(3, "The main runner logic. You can find here some LifeCycle logic and test runner initalization"), Comment(39, "setup the LifeCycle collection"), Comment(76, "Adds an embeded reporter listener to the LifeCycle listeners collection"), Comment(160, "Returns an associative array of the detected tests, where the key is the suite name and the value is the TestCase"), Comment(166, "Returns an associative array of the detected tests, where the key is the suite name and the value is the TestCase"), Comment(177, ""), Comment(239, "convert an assoc array to JSON hierarchy"), Comment(267, "it should have an empty key for items that contain both values and childs"), Comment(297, "describeTests should return the tests cases serialised in json format"), Comment(313, "Runs the tests and returns the results"), Comment(341, "Check if a suite result list is a success"), Comment(352, "It should return true for an empty result"), Comment(357, "It should return true if all the tests succeded"), Comment(366, "It should return false if one the tests failed"), Comment(375, "It should return the name of this test"), Comment(388, "backtrace")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/settings.d"] = [Comment(2, "Settings parser and structures"), Comment(26, ""), Comment(32, "bool colors; bool sort; bool bail;"), Comment(45, "The reporter list that will be added by the runner at startup You can use here only the embeded reporters. If you want to use a custom reporter you can use `static this` constructor Examples: ------------------------ static this { LifeCycleListeners.instance.add(myCustomReporter); } ------------------------"), Comment(48, "The test discovery classes that you want to use"), Comment(52, "The number of threads tha you want to use `0` means the number of cores that your processor has"), Comment(55, ""), Comment(58, "Where to generate artifacts"), Comment(61, "Show the duration with yellow if it takes more `warningTestDuration` msecs"), Comment(64, "Show the duration with red if it takes more `dangerTestDuration` msecs"), Comment(72, "A list of plugins that will be added as dependencies from code.dlang.org. The plugins will be imported in the main file. For `trial-my-plugin` the import will be `import trialmyplugin.plugin`. You will be able to create a module constructor that will add all your needed lifecycle listeners."), Comment(77, "The default executor is `SingleRunner`. If you want to use the `ParallelExecutor` set this option to `parallel` or if you want to use the `ProcessExecutor` set it to `process`."), Comment(81, "A structure representing the `trial.json` file"), Comment(98, ""), Comment(101, ""), Comment(104, ""), Comment(107, ""), Comment(110, ""), Comment(114, "The gliph settings"), Comment(125, "Converts the settings object to DLang code. It's used by the generator"), Comment(143, "Converts the GlyphSettings object to DLang code. It's used by the generator"), Comment(162, "it should be able to compile the settings code"), Comment(167, "it should be able to transform the Settings to code")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/stackresult.d"] = [Comment(2, "A module containing custom exceptions for display convenience"), Comment(35, ""), Comment(42, ""), Comment(52, ""), Comment(59, ""), Comment(65, "The message of a wrapped exception should contain the original exception"), Comment(73, "Converts a Throwable to a TestException which improves the failure verbosity"), Comment(122, "A structure that allows you to detect which modules are relevant to display"), Comment(126, "The list of external modules like the standard library or dub dependencies"), Comment(129, "Check if the provided name comes from an external dependency"), Comment(193, "Used to display the stack"), Comment(202, ""), Comment(205, ""), Comment(240, "Prints the stack using the default writer"), Comment(288, "Used to display the stack"), Comment(297, ""), Comment(300, ""), Comment(338, "Represents a stack frame"), Comment(344, ""), Comment(347, ""), Comment(350, ""), Comment(353, ""), Comment(356, ""), Comment(359, ""), Comment(428, "The frame should convert a frame to string"), Comment(436, "The frame should not output an index < 0 or a line < 0"), Comment(444, "The frame should not output the file if it is missing from the stack"), Comment(452, "The frame should not output the module if it is missing from the stack"), Comment(460, "The frame should not output the offset if it is missing from the stack"), Comment(468, "The frame should display `????` when the name is missing"), Comment(507, "The frame should print all fields"), Comment(518, "The frame should not print an index < 0 or a line < 0"), Comment(529, "The frame should not print the file if it's missing"), Comment(540, "The frame should not print the module if it's missing"), Comment(551, "The frame should not print the offset if it's missing"), Comment(562, "The frame should print ???? when the name is missing"), Comment(584, "Parse a MacOS string frame"), Comment(603, "Parse a Windows string frame"), Comment(623, "ditto"), Comment(638, "Parse a GLibC string frame"), Comment(665, "Parse a NetBsd string frame"), Comment(685, "Parse a Linux frame"), Comment(704, "Parse a Linux frame"), Comment(719, "Converts a stack trace line to a Frame structure"), Comment(866, "Get the main frame info from linux format"), Comment(881, "Get a function frame info from linux format"), Comment(895, "Get an external function frame info from linux format"), Comment(909, "Get an external function frame info from linux format"), Comment(923, "Get an missing info function frame info from linux format")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/step.d"] = [Comment(3, "When you run complex tests, or tests that take a lot of time, it helps to mark certain areas as steps, to ease the debug or to improve the report."), Comment(45, "A stepstructure. Creating a Step will automatically be added to the current step as a child The steps can be nested to allow you to group steps as with meanigful names. The steps ends when the Struct is destroyed. In order to have a step that represents a method assign it to a local variable Examples: ------------------------ void TestSetup() @system { auto aStep = Step(\"Given some precondition\"); Step(\"Some setup\"); performSomeSetup(); Step(\"Other setup\"); performOtherSetup(); } // will create this tree: // Test // | // +- Given some precondition // | // +- Some setup // +- Other setup ------------------------"), Comment(62, "Create and attach a step"), Comment(77, "Mark the test as finished")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/lifecycle/trial/terminal.d"] = [Comment(2, "Ignore coverage Module for interacting with the user's terminal, including color output, cursor manipulation, and full-featured real-time mouse and keyboard input. Also includes high-level convenience methods, like [Terminal.getline], which gives the user a line editor with history, completion, etc. See the [#examples]."), Comment(72, "Widgets: tab widget scrollback buffer partitioned canvas"), Comment(74, "FIXME: ctrl+d eof on stdin"), Comment(76, "FIXME: http://msdn.microsoft.com/en-us/library/windows/desktop/ms686016%28v=vs.85%29.aspx"), Comment(121, "parts of this were taken from Robik's ConsoleD https://github.com/robik/ConsoleD/blob/master/consoled.d"), Comment(125, "Uncomment this line to get a main() to demonstrate this module's capabilities. version = Demo"), Comment(166, "I'm taking this from the minimal termcap from my Slackware box (which I use as my /etc/termcap) and just taking the most commonly used ones (for me anyway)."), Comment(168, "this way we'll have some definitions for 99% of typical PC cases even without any help from the local operating system"), Comment(317, "Defines the list of standard colors understood by Terminal."), Comment(335, "When capturing input, what events are you interested in? Note: these flags can be OR'd together to select more than one option at a time. Ctrl+C and other keyboard input is always captured, though it may be line buffered if you don't use raw. The rationale for that is to ensure the Terminal destructor has a chance to run, since the terminal is a shared resource and should be put back before the program terminates."), Comment(349, "Defines how terminal output should be handled."), Comment(358, "Some methods will try not to send unnecessary commands to the screen. You can override their judgement using a ForceOption parameter, if present"), Comment(365, "we could do it with termcap too, getenv(\"TERMCAP\") then split on : and replace \\E with \\033 and get the pieces"), Comment(370, "Encapsulates the I/O capabilities of a terminal. Warning: do not write out escape sequences to the terminal. This won't work on Windows and will confuse Terminal's internal state on Posix."), Comment(398, "This is a filthy hack because Terminal.app and OS X are garbage who don't work the way they're advertised. I just have to best-guess hack and hope it doesn't break anything else. (If you know a better way, let me know!)"), Comment(533, "Looks up a termcap item and tries to execute it. Returns false on failure"), Comment(679, "Constructs an instance of Terminal representing the capabilities of the current terminal. While it is possible to override the stdin+stdout file descriptors, remember that is not portable across platforms and be sure you know what you're doing. ditto on getSizeOverride. That's there so you can do something instead of ioctl."), Comment(723, "http://msdn.microsoft.com/en-us/library/windows/desktop/ms686125%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/ms683193%28v=vs.85%29.aspx"), Comment(730, "CONSOLE_SCREEN_BUFFER_INFO sbi; GetConsoleScreenBufferInfo(hConsole, &sbi); size.X = cast(short) GetSystemMetrics(SM_CXMIN); size.Y = cast(short) GetSystemMetrics(SM_CYMIN);"), Comment(735, "FIXME: this sucks, maybe i should just revert it. but there shouldn't be scrollbars in cellular mode size.X = 80; size.Y = 24; SetConsoleScreenBufferSize(hConsole, size);"), Comment(745, "only use this if you are sure you know what you want, since the terminal is a shared resource you generally really want to reset it to normal when you leave..."), Comment(784, "lazily initialized and preserved between calls to getline for a bit of efficiency (only a bit) and some history storage."), Comment(794, "Attempts to set color according to a 24 bit value (r, g, b, each >= 0 and < 256)."), Comment(832, "fallback to 16 color for term that i know don't take it well"), Comment(849, "otherwise, assume it is probably supported and give it a try"), Comment(859, "Changes the current color. See enum Color for the values."), Comment(867, "foreground ^= LowContrast; background ^= LowContrast;"), Comment(872, "this isn't necessarily right but meh"), Comment(906, "if(getenv(\"ELVISBG\") == \"dark\") { LowContrast on dark bg menas } else { foreground ^= LowContrast; background ^= LowContrast; }"), Comment(936, "Note: the Windows console does not support underlining"), Comment(950, "Returns the terminal to normal output colors"), Comment(965, "FIXME: add moveRelative"), Comment(967, "The current x position of the output cursor. 0 == leftmost column"), Comment(972, "The current y position of the output cursor. 0 == topmost row"), Comment(980, "Moves the output cursor to the given position. (0, 0) is the upper left corner of the screen. The force parameter can be used to force an update, even if Terminal doesn't think it is necessary"), Comment(998, "shows the cursor"), Comment(1010, "hides the cursor"), Comment(1047, "explicitly not publicly documented Shows the cursor if it was automatically hidden by autoHideCursor and resets the internal auto hide state."), Comment(1064, "alas this doesn't work due to a bunch of delegate context pointer and postblit problems instead of using: auto input = terminal.captureInput(flags) use: auto input = RealTimeConsoleInput(&terminal, flags); Gets real time input, disabling line buffering RealTimeConsoleInput captureInput(ConsoleInputFlags flags) { return RealTimeConsoleInput(&this, flags); }"), Comment(1066, "Changes the terminal's title"), Comment(1078, "Flushes your updates to the terminal. It is important to call this when you are finished writing for now if you are using the version=with_eventloop"), Comment(1140, "The current width of the terminal (the number of columns)"), Comment(1147, "The current height of the terminal (the number of rows)"), Comment(1160, "void write(T...)(T t) { foreach(arg; t) { writeStringRaw(to!string(arg)); } }"), Comment(1162, "Writes to the terminal at the current cursor position."), Comment(1168, "ditto"), Comment(1173, "ditto"), Comment(1184, "ditto"), Comment(1195, "A combined moveTo and writef that puts the cursor back where it was before when it finishes the write. Only works in cellular mode. Might give better performance than moveTo/writef because if the data to write matches the internal buffer, it skips sending anything (to override the buffer check, you can use moveTo and writePrintableString with ForceOption.alwaysSend) void writefAt(T...)(int x, int y, string f, T t) { import std.string; auto toWrite = format(f, t);"), Comment(1215, "tracking cursor position"), Comment(1247, "auto index = getIndex(_cursorX, _cursorY); if(data[index] != ch) { data[index] = ch; }"), Comment(1253, "private"), Comment(1259, "you really, really shouldn't use this unless you know what you are doing"), Comment(1267, "private"), Comment(1269, "Clears the screen."), Comment(1294, "gets a line, including user editing. Convenience method around the LineGetter class and RealTimeConsoleInput facilities - use them if you need more control. You really shouldn't call this if stdin isn't actually a user-interactive terminal! So if you expect people to pipe data to your app, check for that or use something else. FIXME: add a method to make it easy to check if stdin is actually a tty and use other methods there."), Comment(1312, "lineGetter leaves us exactly where it was when the user hit enter, giving best flexibility to real-time input and cellular programs. The convenience function, however, wants to do what is right in most the simple cases, which is to actually print the line (echo would be enabled without RealTimeConsoleInput anyway and they did hit enter), so we'll do that here too."), Comment(1326, "struct ConsoleBuffer { int cursorX; int cursorY; int width; int height; dchar[] data;"), Comment(1346, "Encapsulates the stream of input events received from the terminal input."), Comment(1374, "To capture input, you need to provide a terminal and some flags."), Comment(1386, "if(flags & ConsoleInputFlags.size)"), Comment(1406, "FIXME: change to UTF8 as well"), Comment(1426, "some weird bug breaks this, https://github.com/robik/ConsoleD/issues/3 destructor ~= { tcsetattr(fdIn, TCSANOW, &old); };"), Comment(1461, "FIXME: try to get maximum capabilities from all terminals right now this works well on xterm but rxvt isn't sending movements..."), Comment(1486, "try to ensure the terminal is in UTF-8 mode"), Comment(1553, "we're just undoing everything the constructor did, in reverse order, same criteria"), Comment(1559, "Returns true if there iff getch() would not block."), Comment(1576, "Check for input, waiting no longer than the number of milliseconds"), Comment(1610, "private"), Comment(1617, "Get one key press from the terminal, discarding other events in the process. Returns dchar.init upon receiving end-of-file. Be aware that this may return non-character key events, like F1, F2, arrow keys, etc., as private use Unicode characters. Check them against KeyboardEvent.Key if you like."), Comment(1646, "char[128] inputBuffer; int inputBufferPosition;"), Comment(1669, "terminal.writef(\"RAW READ: %d\\n\", buf[0]);"), Comment(1688, "see the utf-8 encoding for details"), Comment(1720, "character event non-character key event paste event mouse event size event maybe, and if appropriate focus events"), Comment(1726, "Returns the next event. Experimental: It is also possible to integrate this into a generic event loop, currently under -version=with_eventloop and it will require the module arsd.eventloop (Linux only at this point)"), Comment(1809, "only send released events when specifically requested"), Comment(1822, "old style event then follows as the fallback"), Comment(1829, "new style event. See comment on KeyboardEvent.Key"), Comment(1833, "FIXME: make this better. the goal is to make sure the key code is a valid enum member Windows sends more keys than Unix and we're doing lowest common denominator here"), Comment(1859, "this is sent on state change. if fewer buttons are pressed, it must mean released"), Comment(1908, "we want to starve the read, especially if we're called from an edge-triggered epoll (which might happen in version=with_eventloop.. impl detail there subject to change)."), Comment(1914, "lol this calls select() inside a function prolly called from epoll but meh, it is the simplest thing that can possibly work. The alternative would be doing non-blocking reads and buffering in the nextRaw function (not a bad idea btw, just a bit more of a hassle)."), Comment(1926, "The helper reads just one actual event from the pipe..."), Comment(1966, "this assumes you just read \"\\033[\""), Comment(2107, "note: buttonNumber == 0 means button 1 at this point"), Comment(2111, "apparently this considers middle to be button 2. but i want middle to be button 3."), Comment(2131, "ugh, if no buttons are pressed, released and moved are indistinguishable... so we'll count the buttons down, and if we get a release"), Comment(2189, "this is an extension in my own terminal emulator"), Comment(2293, "The new style of keyboard event"), Comment(2299, ""), Comment(2307, "these match Windows virtual key codes numerically for simplicity of translation there but are plus a unicode private use area offset so i can cram them in the dchar http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx ."), Comment(2338, "Deprecated: use KeyboardEvent instead in new programs Input event for characters"), Comment(2351, "Deprecated: use KeyboardEvent instead in new programs"), Comment(2362, "these match Windows virtual key codes numerically for simplicity of translation there http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx ."), Comment(2394, "."), Comment(2399, "."), Comment(2413, "note: these should numerically match simpledisplay.d for maximum beauty in my other code ."), Comment(2428, "When you get this, check terminal.width and terminal.height to see the new size and react accordingly."), Comment(2437, "the user hitting ctrl+c will send this You should drop what you're doing and perhaps exit when this happens."), Comment(2441, "If the user hangs up (for example, closes the terminal emulator without exiting the app), this is sent. If you receive it, you should generally cleanly exit."), Comment(2444, "Sent upon receiving end-of-file from stdin."), Comment(2454, "i'm not sure if the next two are available"), Comment(2457, "FIXME: I don't think these are actually available"), Comment(2461, "I don't think this is available on Linux...."), Comment(2488, "[RealTimeConsoleInput.nextEvent] returns one of these. Check the type, then use the [InputEvent.get|get] method to get the more detailed information about the event."), Comment(2504, "."), Comment(2510, "Returns a pointer to the terminal associated with this event. (You can usually just ignore this as there's only one terminal typically.) It may be null in the case of program-generated events;"), Comment(2514, "Gets the specific event instance. First, check the type (such as in a `switch` statement), then extract the correct one from here. Note that the template argument is a $(B value type of the enum above), not a type argument. So to use it, do $(D event.get!(InputEvent.Type.KeyboardEvent)), for example."), Comment(2552, "custom event is public because otherwise there's no point at all"), Comment(2616, "FIXME: support lines that wrap FIXME: better controls maybe"), Comment(2648, "A note on the assumeSafeAppends in here: since these buffers are private, we can be pretty sure that stomping isn't an issue, so I'm using this liberally to keep the append/realloc code simple and hopefully reasonably fast."), Comment(2650, "saved to file"), Comment(2653, "not saved"), Comment(2662, "Make sure that the parent terminal struct remains in scope for the duration of LineGetter's lifetime, as it does hold on to and use the passed pointer throughout. historyFilename will load and save an input history log to a particular folder. Leaving it null will mean no file will be used and history will not be saved across sessions."), Comment(2678, "Call this before letting LineGetter die so it can do any necessary cleanup and save the updated history to a file."), Comment(2686, "Override this to change the directory where history files are stored Default is $HOME/.arsd-getline on linux and %APPDATA%/arsd-getline/ on Windows."), Comment(2702, "virtual"), Comment(2705, "You can customize the colors here. You should set these after construction, but before calling startGettingLine or getline."), Comment(2711, "Set this if you want a prompt to be drawn with the line. It does NOT support color in string."), Comment(2717, "Turn on auto suggest if you want a greyed thing of what tab would be able to fill in as you type. You might want to turn it off if generating a completion list is slow."), Comment(2722, "Override this if you don't want all lines added to the history. You can return null to not add it at all, or you can transform it."), Comment(2725, "virtual"), Comment(2727, "You may override this to do nothing"), Comment(2737, "virtual"), Comment(2745, "You may override this to do nothing"), Comment(2753, "virtual"), Comment(2761, "Override this to provide tab completion. You may use the candidate argument to filter the list, but you don't have to (LineGetter will do it for you on the values you return)."), Comment(2770, "virtual"), Comment(2788, "Override this to provide a custom display of the tab completion list"), Comment(2794, "FIXME: scroll if(terminal.type == ConsoleOutputType.linear) {"), Comment(2813, "One-call shop for the main workhorse If you already have a RealTimeConsoleInput ready to go, you should pass a pointer to yours here. Otherwise, LineGetter will make its own."), Comment(2876, "used for redrawing the line in the right place and detecting mouse events on our line."), Comment(2880, "private string[] cachedCompletionList;"), Comment(2885, "FIXME /// Note that this assumes the tab complete list won't change between actual /// presses of tab by the user. If you pass it a list, it will use it, but /// otherwise it will keep track of the last one to avoid calls to tabComplete."), Comment(2908, "Adds a character at the current position in the line. You can call this too if you hook events for hotkeys or something. You'll probably want to call redraw() after adding chars."), Comment(2928, "."), Comment(2937, "Deletes the character at the current position in the line. You'll probably want to call redraw() after deleting chars."), Comment(2947, ""), Comment(2990, "FIXME: graphemes and utf-8 on suggestion/prompt"), Comment(3004, "Starts getting a new line. Call workOnLine and finishGettingLine afterward. Make sure that you've flushed your input and output before calling this function or else you might lose events or get exceptions from this."), Comment(3026, "then get the current cursor position to start fresh"), Comment(3036, "we have to turn off cooked mode to get this answer, otherwise it will all be messed up. (I hate unix terminals, the Windows way is so much easer.)"), Comment(3039, "We also can't use RealTimeConsoleInput here because it also does event loop stuff which would be broken by the child destructor :( (maybe that should be a FIXME)"), Comment(3078, "updating these too because I can with the more accurate info from above"), Comment(3089, "for integrating into another event loop you can pass individual events to this and the line getter will work on it returns false when there's nothing more to do"), Comment(3112, "Insert the character (unless it is backspace, tab, or some other control char)"), Comment(3143, "fill it in with as much commonality as there is amongst all the suggestions"), Comment(3244, "Clicking with the mouse to move the cursor is so much easier than arrowing or even emacs/vi style movements much of the time, so I'ma support it."), Comment(3263, "We'll adjust the bounding box. If you don't like this, handle SizeChangedEvent yourself and then don't pass it to this function."), Comment(3264, "FIXME"), Comment(3270, "I'll take this as canceling the line."), Comment(3274, "I'll take this as canceling the line."), Comment(3276, "ignore. ideally it wouldn't be passed to us anyway!"), Comment(3288, "FIXME: we should hide the cursor if it was hidden in the call to startGettingLine"), Comment(3293, "Adds default constructors that just forward to the superclass"), Comment(3301, "This is a line getter that customizes the tab completion to fill in file names separated by spaces, like a command line thing."), Comment(3306, "You can set this property to tell it where to search for the files to complete."), Comment(3341, "Like getting a line, printing a lot of lines is kinda important too, so I'm including that widget here too."), Comment(3423, "this needs width and height to know how to word wrap it"), Comment(3444, "16 color ctor"), Comment(3453, "true color ctor"), Comment(3473, "FIXME: limit scrollback lines.length"), Comment(3505, "if(lineCount > height)"), Comment(3526, "We need to figure out how much is going to fit in a first pass, so we can figure out where to start drawing"), Comment(3541, "this is private so I know we can safe append"), Comment(3545, "FIXME: should prolly handle \\n and \\r in here too."), Comment(3550, "we'll work backwards to figure out how much will fit... this will give accurate per-line things even with changing width and wrapping while being generally efficient - we usually want to show the end of the list anyway; actually using the scrollback is a bit of an exceptional case."), Comment(3553, "It could probably do this instead of on each redraw, on each resize or insertion. or at least cache between redraws until one of those invalidates it."), Comment(3602, "second pass: actually draw it"), Comment(3697, "Default event handling for this widget. Call this only after drawing it into a rectangle and only if the event ought to be dispatched to it (which you determine however you want; you could dispatch all events to it, or perhaps filter some out too) Returns true if it should be redrawn"), Comment(3785, ""), Comment(3787, "more efficient scrolling"), Comment(3864, "The Xterm palette progression is: [0, 95, 135, 175, 215, 255]"), Comment(3876, "Here, I will round off to the color ramp or the greyscale. I will NOT use the bottom 16 colors because there's duplicates (or very close enough) to them in here"), Comment(3890, "there's greys in the color ramp too, but these are all close enough as-is, no need to complicate algorithm for approximation anyway"), Comment(3895, "if it isn't grey, it is color"), Comment(3898, "the ramp goes blue, green, red, with 6 of each, so just multiplying will give something good enough"), Comment(3900, "will give something between 0 and 5, with some rounding"), Comment(3909, "Represents a 24-bit color."), Comment(3930, "This is an approximation too for a few entries, but a very close one.")]; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/tests/trial/executors/parallel.d"] = []; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/tests/trial/executors/process.d"] = []; UnitTestDiscovery.comments["/builds/szabobogdan3/trial-website/trial/tests/trial/interfaces.d"] = [Comment(45, "Convert a test case to test result")]; } testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/attributes.d`, `trial.attributes`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/coverage.d`, `trial.coverage`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/code.d`, `trial.discovery.code`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/spec.d`, `trial.discovery.spec`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/testclass.d`, `trial.discovery.testclass`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/unit.d`, `trial.discovery.unit`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/parallel.d`, `trial.executor.parallel`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/process.d`, `trial.executor.process`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/single.d`, `trial.executor.single`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/interfaces.d`, `trial.interfaces`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/allure.d`, `trial.reporters.allure`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/dotmatrix.d`, `trial.reporters.dotmatrix`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/html.d`, `trial.reporters.html`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/landing.d`, `trial.reporters.landing`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/list.d`, `trial.reporters.list`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/progress.d`, `trial.reporters.progress`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/result.d`, `trial.reporters.result`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/spec.d`, `trial.reporters.spec`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specprogress.d`, `trial.reporters.specprogress`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specsteps.d`, `trial.reporters.specsteps`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/stats.d`, `trial.reporters.stats`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/tap.d`, `trial.reporters.tap`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/visualtrial.d`, `trial.reporters.visualtrial`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/writer.d`, `trial.reporters.writer`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/xunit.d`, `trial.reporters.xunit`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/runner.d`, `trial.runner`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/settings.d`, `trial.settings`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/stackresult.d`, `trial.stackresult`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/step.d`, `trial.step`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/terminal.d`, `trial.terminal`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/tests/trial/executors/parallel.d`, `tests.trial.executors.parallel`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/tests/trial/executors/process.d`, `tests.trial.executors.process`); testDiscovery0.addModule!(`/builds/szabobogdan3/trial-website/trial/tests/trial/interfaces.d`, `tests.trial.interfaces`); LifeCycleListeners.instance.add(testDiscovery0); auto testDiscovery1 = new SpecTestDiscovery; testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/attributes.d`, `trial.attributes`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/coverage.d`, `trial.coverage`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/code.d`, `trial.discovery.code`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/spec.d`, `trial.discovery.spec`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/testclass.d`, `trial.discovery.testclass`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/unit.d`, `trial.discovery.unit`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/parallel.d`, `trial.executor.parallel`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/process.d`, `trial.executor.process`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/single.d`, `trial.executor.single`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/interfaces.d`, `trial.interfaces`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/allure.d`, `trial.reporters.allure`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/dotmatrix.d`, `trial.reporters.dotmatrix`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/html.d`, `trial.reporters.html`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/landing.d`, `trial.reporters.landing`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/list.d`, `trial.reporters.list`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/progress.d`, `trial.reporters.progress`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/result.d`, `trial.reporters.result`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/spec.d`, `trial.reporters.spec`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specprogress.d`, `trial.reporters.specprogress`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specsteps.d`, `trial.reporters.specsteps`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/stats.d`, `trial.reporters.stats`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/tap.d`, `trial.reporters.tap`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/visualtrial.d`, `trial.reporters.visualtrial`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/writer.d`, `trial.reporters.writer`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/xunit.d`, `trial.reporters.xunit`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/runner.d`, `trial.runner`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/settings.d`, `trial.settings`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/stackresult.d`, `trial.stackresult`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/step.d`, `trial.step`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/terminal.d`, `trial.terminal`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/tests/trial/executors/parallel.d`, `tests.trial.executors.parallel`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/tests/trial/executors/process.d`, `tests.trial.executors.process`); testDiscovery1.addModule!(`/builds/szabobogdan3/trial-website/trial/tests/trial/interfaces.d`, `tests.trial.interfaces`); LifeCycleListeners.instance.add(testDiscovery1); auto testDiscovery2 = new TestClassDiscovery; testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/attributes.d`, `trial.attributes`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/coverage.d`, `trial.coverage`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/code.d`, `trial.discovery.code`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/spec.d`, `trial.discovery.spec`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/testclass.d`, `trial.discovery.testclass`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/discovery/unit.d`, `trial.discovery.unit`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/parallel.d`, `trial.executor.parallel`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/process.d`, `trial.executor.process`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/executor/single.d`, `trial.executor.single`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/interfaces.d`, `trial.interfaces`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/allure.d`, `trial.reporters.allure`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/dotmatrix.d`, `trial.reporters.dotmatrix`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/html.d`, `trial.reporters.html`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/landing.d`, `trial.reporters.landing`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/list.d`, `trial.reporters.list`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/progress.d`, `trial.reporters.progress`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/result.d`, `trial.reporters.result`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/spec.d`, `trial.reporters.spec`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specprogress.d`, `trial.reporters.specprogress`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/specsteps.d`, `trial.reporters.specsteps`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/stats.d`, `trial.reporters.stats`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/tap.d`, `trial.reporters.tap`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/visualtrial.d`, `trial.reporters.visualtrial`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/writer.d`, `trial.reporters.writer`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/reporters/xunit.d`, `trial.reporters.xunit`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/runner.d`, `trial.runner`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/settings.d`, `trial.settings`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/stackresult.d`, `trial.stackresult`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/step.d`, `trial.step`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/lifecycle/trial/terminal.d`, `trial.terminal`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/tests/trial/executors/parallel.d`, `tests.trial.executors.parallel`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/tests/trial/executors/process.d`, `tests.trial.executors.process`); testDiscovery2.addModule!(`/builds/szabobogdan3/trial-website/trial/tests/trial/interfaces.d`, `tests.trial.interfaces`); LifeCycleListeners.instance.add(testDiscovery2); if(arguments.length > 1 && arguments[1] == "describe") { import std.stdio; describeTests.toJSONHierarchy.write; return 0; } else { return runTests(LifeCycleListeners.instance.getTestCases, testName, suiteName).isSuccess ? 0 : 1; } } version (unittest) shared static this() { import core.runtime; Runtime.moduleUnitTester = () => true; }