{"id":644,"date":"2021-01-06T00:06:23","date_gmt":"2021-01-05T23:06:23","guid":{"rendered":"https:\/\/mikelimasierra.net\/?page_id=644"},"modified":"2021-02-03T17:24:00","modified_gmt":"2021-02-03T16:24:00","slug":"console-executor","status":"publish","type":"page","link":"https:\/\/mikelimasierra.net\/index.php\/software-projects\/nuclear-test-platform\/guide-nuclear-testing-system\/console-executor\/","title":{"rendered":"Console executor"},"content":{"rendered":"\n<p>The application Nuclear.Test.Console is a command line implementation of the top level of the nuclear testing system. It can be <a rel=\"noreferrer noopener\" href=\"https:\/\/mikelimasierra.net\/index.php\/software-projects\/nuclear-test-platform\/guide-visual-studio-integration\/\" target=\"_blank\">integrated<\/a> into Visual Studio or used for manual and scripted test execution.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mikelimasierra.net\/wp-content\/uploads\/2021\/02\/Nuclear.Test_.Console.png\" alt=\"\" class=\"wp-image-913\" width=\"960\" height=\"1194\" srcset=\"https:\/\/mikelimasierra.net\/wp-content\/uploads\/2021\/02\/Nuclear.Test_.Console.png 960w, https:\/\/mikelimasierra.net\/wp-content\/uploads\/2021\/02\/Nuclear.Test_.Console-241x300.png 241w, https:\/\/mikelimasierra.net\/wp-content\/uploads\/2021\/02\/Nuclear.Test_.Console-823x1024.png 823w, https:\/\/mikelimasierra.net\/wp-content\/uploads\/2021\/02\/Nuclear.Test_.Console-768x955.png 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><figcaption>Example of what the console executor looks like.<\/figcaption><\/figure><\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Command line arguments<\/h2>\n\n\n\n<p>The console executor can be fed arguments to help support a wide range of requirements. There can be a separate configuration file for specific test scenarios or custom values for the location of test assemblies.<\/p>\n\n\n\n<p>A help printout is displayed when giving  the argument <code>-h<\/code> or <code>--help<\/code>.<\/p>\n\n\n\n<pre title=\"&gt; Nuclear.Test.Console.exe -h\" class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash line-numbers\">Usage: Nuclear.Test.Console.exe [OPTIONS]\n\n -h                                       Display this help context.\n --help                                   Same as -h.\n\n -c path                                  The configuration file path.\n --config path                            Same as -c.\n\n -f path                                  Override to specify one specific test assembly.\n --file path                              Same as -f.\n\n -d path                                  Override to specify a search directory.\n --dir path                               Same as -d.<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Configuration file<\/h2>\n\n\n\n<p>The console executor is configured using a JSON file, that also configures the behavior of proxies and workers.<\/p>\n\n\n\n<pre title=\"default.json\" class=\"wp-block-code\"><code lang=\"json\" class=\"language-json line-numbers\">{\n     \"Locator\": {\n         \"SearchDirectory\": \"%USERPROFILE%\/source\",\n         \"SearchDepth\": -1,\n         \"SearchPattern\": \"*Tests.dll\",\n         \"IgnoredDirectoryNames\": [\n             \"obj\",\n             \".vs\"\n         ]\n     },\n     \"Executor\": {\n         \"Verbosity\": \"ExecutionArchitecture\",\n         \"WriteReport\": false\n     },\n     \"Proxy\": {\n         \"Directory\": \"%APPDATA%\/Nuclear.Test.Proxy\/\",\n         \"ExecutableName\": \"Nuclear.Test.Proxy.exe\",\n         \"StartClientVisible\": false,\n         \"AutoShutdown\": true,\n         \"WriteReport\": false\n     },\n     \"Worker\": {\n         \"Directory\": \"%APPDATA%\/Nuclear.Test.Worker\/\",\n         \"ExecutableName\": \"Nuclear.Test.Worker.exe\",\n         \"StartClientVisible\": false,\n         \"AutoShutdown\": true,\n         \"WriteReport\": false\n     },\n     \"Execution\": {\n         \"ArchitecturesFilter\": {\n             \"Values\": [\n                 \"MSIL\",\n                 \"IA64\",\n                 \"Arm\",\n                 \"None\"\n             ],\n             \"Mode\": \"Blacklist\"\n         },\n         \"RuntimesFilter\": {\n             \"Values\": [\n                 {\n                     \"Framework\": \"NETCoreApp\",\n                     \"Versions\": [\n                         \"2.0\",\n                         \"2.1\",\n                         \"2.2\",\n                         \"3.0\",\n                         \"3.1\",\n                         \"5.0\"\n                     ]\n                 },\n                 {\n                     \"Framework\": \"NETFramework\",\n                     \"Versions\": [\n                         \"4.6.1\",\n                         \"4.6.2\",\n                         \"4.7\",\n                         \"4.7.1\",\n                         \"4.7.2\",\n                         \"4.8\"\n                     ]\n                 }\n             ],\n             \"Mode\": \"WhiteList\"\n         },\n         \"AssemblyModeOverride\": \"Auto\",\n         \"TestMethodModeOverride\": \"Auto\",\n         \"SelectedRuntimes\": \"All\"\n     }\n }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The application Nuclear.Test.Console is a command line implementation of the top level of the nuclear testing system. It can be integrated into Visual Studio or used for manual and scripted test execution. Command line arguments The console executor can be fed arguments to help support a wide range of requirements. There can be a separate configuration file for specific test scenarios or custom values for the location of test assemblies. A help printout is displayed when giving the argument -h or &#8211;help. Configuration file The console executor is configured using a JSON file, that also configures the behavior of proxies and workers.<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":623,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-644","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mikelimasierra.net\/index.php\/wp-json\/wp\/v2\/pages\/644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikelimasierra.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mikelimasierra.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mikelimasierra.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mikelimasierra.net\/index.php\/wp-json\/wp\/v2\/comments?post=644"}],"version-history":[{"count":10,"href":"https:\/\/mikelimasierra.net\/index.php\/wp-json\/wp\/v2\/pages\/644\/revisions"}],"predecessor-version":[{"id":925,"href":"https:\/\/mikelimasierra.net\/index.php\/wp-json\/wp\/v2\/pages\/644\/revisions\/925"}],"up":[{"embeddable":true,"href":"https:\/\/mikelimasierra.net\/index.php\/wp-json\/wp\/v2\/pages\/623"}],"wp:attachment":[{"href":"https:\/\/mikelimasierra.net\/index.php\/wp-json\/wp\/v2\/media?parent=644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}