{"id":531,"date":"2017-02-28T17:52:30","date_gmt":"2017-02-28T17:52:30","guid":{"rendered":"http:\/\/woitech.eu\/blog\/?p=531"},"modified":"2021-07-10T14:22:19","modified_gmt":"2021-07-10T14:22:19","slug":"lightbdd-2-is-here","status":"publish","type":"post","link":"https:\/\/woitech.eu\/blog\/2017\/02\/28\/lightbdd-2-is-here\/","title":{"rendered":"LightBDD 2 is here"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;m happy to announce that LightBDD 2 is released and ready to be used.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">New platforms and frameworks support<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The LightBDD has been reworked to allow support for various platforms and frameworks.<br>With version 2, the LightBDD packages are targeting both, .NET Framework (>= 4.5) and <a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/articles\/standard\/library\">.NET Standard<\/a> (>= 1.3) frameworks which allow it to be used in platforms like regular <a href=\"https:\/\/www.microsoft.com\/net\/framework\">.NET Framework<\/a>, <a href=\"https:\/\/www.microsoft.com\/net\/core\">.NET Core<\/a>, or even <a href=\"https:\/\/developer.microsoft.com\/en-us\/windows\/apps\/\">Universal Windows Platform<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">New testing framework integrations<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The testing frameworks integration projects have been reworked as well to leverage from cross-platform frameworks capability as well as remove LightBDD 1.x integration drawbacks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A following list of integrations is available with LightBDD 2:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>LightBDD.NUnit3 &#8211; integration with NUnit framework 3x series,<\/li><li>LightBDD.NUnit2 &#8211; integration with NUnit framework 2x series (to simplify migration from LightBDD 1x),<\/li><li>LightBDD.XUnit2 &#8211; integration with xUnit framework 2x series,<\/li><li>LightBDD.MsTest2 &#8211; integration with MsTest.TestFramework, a successor of MsTest.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Asynchronous scenario support<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The LightBDD 2 runners are fully supporting async scenario execution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The example below shows scenario execution for steps returning Task:<\/p>\n\n\n<pre class=\"wp-block-code lang:c# decode:true toolbar:1 has-ek-typography\" style=\"\"><code lang=\"csharp\" class=\"language-csharp\">[Scenario]\n[Label(\"Ticket-10\"), Label(\"Ticket-11\")]\npublic async Task Successful_payment()\n{\n    await Runner.RunScenarioAsync(\n        Given_customer_has_some_products_in_basket,\n        Given_customer_has_enough_money_to_pay_for_products,\n        When_customer_requests_to_pay,\n        Then_payment_should_be_successful);\n}\n\n\/* ... *\/\nprivate async Task Given_customer_has_some_products_in_basket()\n{\n    \/* ... *\/\n}\n<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">It is possible also to mix synchronous steps with asynchronous ones with <code>RunScenarioActionsAsync<\/code> method:<\/p>\n\n\n<pre class=\"wp-block-code lang:c# decode:true toolbar:1 has-ek-typography\" style=\"\"><code lang=\"csharp\" class=\"language-csharp\">[Scenario]\n[Label(\"Ticket-7\")]\n[ScenarioCategory(Categories.Sales)]\npublic async Task Successful_addition()\n{\n    await Runner.RunScenarioActionsAsync(\n        Given_product_is_in_stock,\n        When_customer_adds_it_to_the_basket,\n        Then_the_product_addition_should_be_successful,\n        Then_the_basket_should_contain_the_product,\n        Then_the_product_should_be_removed_from_stock);\n}\n\n\/* ... *\/\nprivate void Given_product_is_in_stock()\n{\n    \/* ... *\/\n}\n\nprivate async void When_customer_adds_it_to_the_basket()\n{\n    \/* ... *\/\n}\n<\/code><\/pre>\n\n\n<h3 class=\"wp-block-heading\">New configuration mechanism<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The LightBDD configuration mechanism has been changed too. In version 2, all the configuration is now done in code, and the framework has been changed to allow more customizations than version 1x.<\/p>\n\n\n<pre class=\"wp-block-code lang:c# decode:true toolbar:1 has-ek-typography\" style=\"\"><code lang=\"csharp\" class=\"language-csharp\">[assembly: ConfiguredLightBddScope]\nnamespace LightBDD.Example.AcceptanceTests.NUnit3\n{\n    class ConfiguredLightBddScopeAttribute : LightBddScopeAttribute\n    {\n        protected override void OnConfigure(LightBddConfiguration configuration)\n        {\n            configuration\n              .ReportWritersConfiguration()\n              .AddFileWriter&lt;PlainTextReportFormatter&gt;(\"~\\\\FeaturesReport.txt\");\n        }\n    }\n}\n<\/code><\/pre>\n\n\n<h3 class=\"wp-block-heading\">More details<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For more details, feel free to visit the project <a href=\"https:\/\/github.com\/LightBDD\/LightBDD\">home page<\/a>. <br>In order to jump quickly into the code, a <a href=\"https:\/\/github.com\/LightBDD\/LightBDD\/wiki\/Quick-Start\">quick start wiki page<\/a> may be helpful <br>Finally, there is also a wiki page describing how to <a href=\"https:\/\/github.com\/LightBDD\/LightBDD\/wiki\/Migrating-LightBDD-Versions\">migrate tests between LightBDD major versions<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Happy testing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m happy to announce that LightBDD 2 is released and ready to be used. New platforms and frameworks support The LightBDD has been reworked to allow support for various platforms and frameworks.With version 2, the LightBDD packages are targeting both, .NET Framework (>= 4.5) and .NET Standard (>= 1.3) frameworks which allow it to be used in platforms like regular .NET Framework, .NET Core, or even Universal Windows Platform. New testing framework integrations The testing frameworks integration projects have been reworked as well to leverage from cross-platform frameworks capability as well as remove LightBDD 1.x integration drawbacks. A following list of integrations is available with LightBDD 2: LightBDD.NUnit3 &#8211; integration with NUnit framework 3x series, LightBDD.NUnit2 &#8211; integration with NUnit framework 2x series (to simplify migration from LightBDD 1x), LightBDD.XUnit2 &#8211; integration with xUnit framework 2x series, LightBDD.MsTest2 &#8211; integration with MsTest.TestFramework, a successor of MsTest. Asynchronous scenario support The LightBDD 2 runners are fully supporting async scenario execution. The example below shows scenario execution for steps returning Task: It is possible also to mix synchronous steps with asynchronous ones with RunScenarioActionsAsync method: New configuration mechanism The LightBDD configuration mechanism has been changed too. In version 2, all the configuration is now done in code, and the framework has been changed to allow more customizations than version 1x. More details For more details, feel free to visit the project home page. In order to jump quickly into the code, a quick start wiki page may be helpful Finally, there is also a wiki page describing how to migrate tests between LightBDD major versions. Happy testing!<\/p>\n","protected":false},"author":1,"featured_media":800,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":1,"_editorskit_typography_data":[],"_editorskit_blocks_typography":"","_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","footnotes":""},"categories":[5],"tags":[3,7],"class_list":["post-531","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lightbdd","tag-bdd","tag-testing"],"featured_image_urls":{"full":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2.png",1200,628,false],"thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-150x150.png",150,150,true],"medium":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-300x157.png",300,157,true],"medium_large":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-768x402.png",768,402,true],"large":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-1024x536.png",960,503,true],"1536x1536":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2.png",1200,628,false],"2048x2048":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2.png",1200,628,false],"bard-slider-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-1160x611.png",1160,611,true],"bard-full-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-1160x607.png",1160,607,true],"bard-grid-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-500x263.png",500,263,true],"bard-list-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-300x300.png",300,300,true],"bard-single-navigation":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-75x75.png",75,75,true]},"post_excerpt_stackable":"<p>I&#8217;m happy to announce that LightBDD 2 is released and ready to be used. New platforms and frameworks support The LightBDD has been reworked to allow support for various platforms and frameworks.With version 2, the LightBDD packages are targeting both, .NET Framework (>= 4.5) and .NET Standard (>= 1.3) frameworks which allow it to be used in platforms like regular .NET Framework, .NET Core, or even Universal Windows Platform. New testing framework integrations The testing frameworks integration projects have been reworked as well to leverage from cross-platform frameworks capability as well as remove LightBDD 1.x integration drawbacks. A following list&hellip;<\/p>\n","category_list":"<a href=\"https:\/\/woitech.eu\/blog\/category\/lightbdd\/\" rel=\"category tag\">LightBDD<\/a>","author_info":{"name":"suremaker","url":"https:\/\/woitech.eu\/blog\/author\/suremaker\/"},"comments_num":"0 comments","featured_image_urls_v2":{"full":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2.png",1200,628,false],"thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-150x150.png",150,150,true],"medium":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-300x157.png",300,157,true],"medium_large":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-768x402.png",768,402,true],"large":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-1024x536.png",960,503,true],"1536x1536":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2.png",1200,628,false],"2048x2048":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2.png",1200,628,false],"bard-slider-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-1160x611.png",1160,611,true],"bard-full-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-1160x607.png",1160,607,true],"bard-grid-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-500x263.png",500,263,true],"bard-list-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-300x300.png",300,300,true],"bard-single-navigation":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-75x75.png",75,75,true]},"post_excerpt_stackable_v2":"<p>I&#8217;m happy to announce that LightBDD 2 is released and ready to be used. New platforms and frameworks support The LightBDD has been reworked to allow support for various platforms and frameworks.With version 2, the LightBDD packages are targeting both, .NET Framework (>= 4.5) and .NET Standard (>= 1.3) frameworks which allow it to be used in platforms like regular .NET Framework, .NET Core, or even Universal Windows Platform. New testing framework integrations The testing frameworks integration projects have been reworked as well to leverage from cross-platform frameworks capability as well as remove LightBDD 1.x integration drawbacks. A following list&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/woitech.eu\/blog\/category\/lightbdd\/\" rel=\"category tag\">LightBDD<\/a>","author_info_v2":{"name":"suremaker","url":"https:\/\/woitech.eu\/blog\/author\/suremaker\/"},"comments_num_v2":"0 comments","cc_featured_image_caption":{"caption_text":"","source_text":"","source_url":""},"uagb_featured_image_src":{"full":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2.png",1200,628,false],"thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-150x150.png",150,150,true],"medium":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-300x157.png",300,157,true],"medium_large":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-768x402.png",768,402,true],"large":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-1024x536.png",960,503,true],"1536x1536":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2.png",1200,628,false],"2048x2048":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2.png",1200,628,false],"bard-slider-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-1160x611.png",1160,611,true],"bard-full-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-1160x607.png",1160,607,true],"bard-grid-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-500x263.png",500,263,true],"bard-list-thumbnail":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-300x300.png",300,300,true],"bard-single-navigation":["https:\/\/woitech.eu\/blog\/wp-content\/uploads\/2021\/07\/lightbdd2-75x75.png",75,75,true]},"uagb_author_info":{"display_name":"suremaker","author_link":"https:\/\/woitech.eu\/blog\/author\/suremaker\/"},"uagb_comment_info":0,"uagb_excerpt":"I&#8217;m happy to announce that LightBDD 2 is released and ready to be used. New platforms and frameworks support The LightBDD has been reworked to allow support for various platforms and frameworks.With version 2, the LightBDD packages are targeting both, .NET Framework (>= 4.5) and .NET Standard (>= 1.3) frameworks which allow it to be&hellip;","_links":{"self":[{"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/posts\/531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/comments?post=531"}],"version-history":[{"count":3,"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/posts\/531\/revisions"}],"predecessor-version":[{"id":820,"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/posts\/531\/revisions\/820"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/media\/800"}],"wp:attachment":[{"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/media?parent=531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/categories?post=531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/woitech.eu\/blog\/wp-json\/wp\/v2\/tags?post=531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}