dotnetomaniak.pl - Artykuły z tagiem Testsdotnetomaniak.pl - Artykuły z tagiem Tests2024-03-19T06:20:29Zhttps://dotnetomaniak.pl/Tags/TestsCopyright (c) dotnetomaniak.pldotnetomaniak.pl Atom Generatordotnetomaniak.pl webmasteradmin@dotnetomaniak.plhttps://dotnetomaniak.pl/Assets/Images/fav.icohttps://dotnetomaniak.pl/Assets/Images/dotnetomaniak_logo-negatyw_small.png12025https://dotnetomaniak.pl/How-to-set-up-a-test-matrix-in-XUnit-Oskar-DudyczHow to set up a test matrix in XUnit? - Oskar Dudycz2021-02-21T19:51:10Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_YdEuKM6g00KYF5-fJI3Jmg.png"/></div><div>Setting up the test matrix in XUnit is not so easy as it might seem.
This summarises my struggles with adding System.Text.Json support to Marten and setting our test matrix to run the whole test suite for both serialisers.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/How-to-set-up-a-test-matrix-in-XUnit-Oskar-Dudycz"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fevent-driven.io%2fen%2fhow_to_setup_a_test_matrix_in_xunit%2f" style="border:0px"/></a></div></div>oskar-at-nethttps://dotnetomaniak.pl/Users/_vjrDF1E10akUDcHhn8WZA2021-02-22T08:02:20Zhttps://dotnetomaniak.pl/How-to-set-up-a-test-matrix-in-XUnit-Oskar-Dudycz1460Setting up the test matrix in XUnit is not so easy as it might seem.
This summarises my struggles with adding System.Text.Json support to Marten and setting our test matrix to run the whole test suite for both serialisers.https://event-driven.io/en/how_to_setup_a_test_matrix_in_xunit/http://dotnetomaniak.pl/Data/Thumbnails/small_YdEuKM6g00KYF5-fJI3Jmg.pnghttps://dotnetomaniak.pl/Cypress-ExtJS-testy-e2eCypress & ExtJS – testy e2e2020-11-09T21:11:02Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_AEHT1-aIcU2Wl1-QobxXwQ.png"/></div><div>Cypress & ExtJS – testy e2e.
Króki wpis o tym jak zitnegrować ze sobą te dwie biblioteki i o moich pierwszych krokach w temacie testów pisanych w JavaScripcie.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Cypress-ExtJS-testy-e2e"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2ff2black.pl%2f2020%2f11%2f09%2fcypress-extjs-testy%2f" style="border:0px"/></a></div></div>f2Blackhttps://dotnetomaniak.pl/Users/O9KM3P2SdE6k0F6RGCcRdQ2020-11-12T07:12:14Zhttps://dotnetomaniak.pl/Cypress-ExtJS-testy-e2e1390Cypress & ExtJS – testy e2e.
Króki wpis o tym jak zitnegrować ze sobą te dwie biblioteki i o moich pierwszych krokach w temacie testów pisanych w JavaScripcie.http://f2black.pl/2020/11/09/cypress-extjs-testy/http://dotnetomaniak.pl/Data/Thumbnails/small_AEHT1-aIcU2Wl1-QobxXwQ.pnghttps://dotnetomaniak.pl/Improve-your-tests-with-Assert-Object-Pattern-CodeJourneynetImprove your tests with Assert Object Pattern - CodeJourney.net2020-11-09T20:50:28Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_NrK6HdML7kyI4pfeM0IV8w.png"/></div><div>Today I’d like to share with you a very interesting concept in software testing – Assert Object pattern. It makes the Assert part of a test much simpler and more readable. Let’s dive right into it 😉The Asserts Hell
Let’s consider the following unit test:
What’s wrong here? Given and When sections are great single-liners. We know straightaway what’s the input and the action executed. However, Then block is too complex. It’s hard to figure out, just passing quickly through this test, what is expected. T...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Improve-your-tests-with-Assert-Object-Pattern-CodeJourneynet"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fwww.codejourney.net%2f2020%2f11%2fimprove-your-tests-with-assert-object-pattern%2f" style="border:0px"/></a></div></div>dsibinskihttps://dotnetomaniak.pl/Users/QFHCA46gNU6dhXQQW6KGdw2020-11-10T08:02:29Zhttps://dotnetomaniak.pl/Improve-your-tests-with-Assert-Object-Pattern-CodeJourneynet3630Today I’d like to share with you a very interesting concept in software testing – Assert Object pattern. It makes the Assert part of a test much simpler and more readable. Let’s dive right into it 😉The Asserts Hell
Let’s consider the following unit test:
What’s wrong here? Given and When sections are great single-liners. We know straightaway what’s the input and the action executed. However, Then block is too complex. It’s hard to figure out, just passing quickly through this test, what is expected. T...https://www.codejourney.net/2020/11/improve-your-tests-with-assert-object-pattern/http://dotnetomaniak.pl/Data/Thumbnails/small_NrK6HdML7kyI4pfeM0IV8w.pnghttps://dotnetomaniak.pl/Kafka-Streams-103-Pisz-testy-zapomnij-o-Kafce-Wiadro-DanychKafka Streams 103 - Pisz testy, zapomnij o Kafce - Wiadro Danych2020-04-13T22:04:32Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_ZZzQPeLzyUq4FMsWzj21WA.png"/></div><div>Nie wyobrażam sobie programowania bez pisania testów. Gdy śpieszy mi się i o nich „zapominam”, potem i tak poprawiam kod przez jakąś głupotę. Poprawiają jakość i przyśpieszają czas tworzenia oprogramowania. Nie wierzysz?Spis treścihide1Rozkład jazdy2Co zyskamy?3Zależności4Testowalny kod Kafka Streams5Test 1 – LowercaseStreamTopologyTestDriverTest właściwy6Test 2 – SerDeJsonStream7Repozytorium8WnioskiPodobneRozkład jazdyKafka Streams 101 – de/serilizacjaKafka Streams 102 – Wyjątki i Dead Letter QueueKafka...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Kafka-Streams-103-Pisz-testy-zapomnij-o-Kafce-Wiadro-Danych"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fwiadrodanych.pl%2fbig-data%2fapache-kafka%2fkafka-streams%2fkafka-streams-103-pisz-testy-zapomnij-o-kafce%2f" style="border:0px"/></a></div></div>mszymczykhttps://dotnetomaniak.pl/Users/yBR97Zmw1ES3aCuyQj33bg2020-04-14T06:55:07Zhttps://dotnetomaniak.pl/Kafka-Streams-103-Pisz-testy-zapomnij-o-Kafce-Wiadro-Danych1420Nie wyobrażam sobie programowania bez pisania testów. Gdy śpieszy mi się i o nich „zapominam”, potem i tak poprawiam kod przez jakąś głupotę. Poprawiają jakość i przyśpieszają czas tworzenia oprogramowania. Nie wierzysz?Spis treścihide1Rozkład jazdy2Co zyskamy?3Zależności4Testowalny kod Kafka Streams5Test 1 – LowercaseStreamTopologyTestDriverTest właściwy6Test 2 – SerDeJsonStream7Repozytorium8WnioskiPodobneRozkład jazdyKafka Streams 101 – de/serilizacjaKafka Streams 102 – Wyjątki i Dead Letter QueueKafka...https://wiadrodanych.pl/big-data/apache-kafka/kafka-streams/kafka-streams-103-pisz-testy-zapomnij-o-kafce/http://dotnetomaniak.pl/Data/Thumbnails/small_ZZzQPeLzyUq4FMsWzj21WA.pnghttps://dotnetomaniak.pl/EN-Feature-Object-Pattern-%C2%B7-Cezary-Piatek-Blog[EN] Feature Object Pattern · Cezary Piątek Blog2018-08-05T18:09:56Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_tcbbdWMulE61tWFGsTdQLA.png"/></div><div>When it comes to writing maintainable UI test there always appears the term of Page Object Pattern. For those who are not familiar with Page Object, it’s the approach to building UI test that focuses on creating high-level abstraction over low-level details related to interaction with a tested application. This testing interface encapsulates all the noise related to technology and allows to clearly express intention of test cases. This concept is very well described...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Feature-Object-Pattern-%C2%B7-Cezary-Piatek-Blog"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fcezarypiatek.github.io%2fpost%2ffeature-object-pattern%2f" style="border:0px"/></a></div></div>cezarypiatekhttps://dotnetomaniak.pl/Users/OxvLOFvDMk2cm_fdr4hd-Q2018-08-06T07:03:21Zhttps://dotnetomaniak.pl/EN-Feature-Object-Pattern-%C2%B7-Cezary-Piatek-Blog3800When it comes to writing maintainable UI test there always appears the term of Page Object Pattern. For those who are not familiar with Page Object, it’s the approach to building UI test that focuses on creating high-level abstraction over low-level details related to interaction with a tested application. This testing interface encapsulates all the noise related to technology and allows to clearly express intention of test cases. This concept is very well described...https://cezarypiatek.github.io/post/feature-object-pattern/http://dotnetomaniak.pl/Data/Thumbnails/small_tcbbdWMulE61tWFGsTdQLA.pnghttps://dotnetomaniak.pl/Page-Object-WebdriverIO-advanced-concepts-components-sharingPage Object, WebdriverIO advanced concepts - components sharing2017-12-20T09:52:20Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_W4fqXJVVEEWc3zW_HPJKKw.png"/></div><div>Page Object pattern is well-known in the world of test automation. Fortunately the new version (v4) of webdriver.io test automation framework was designed with Page Object pattern in mind, so we can fully benefit from this approach. One of advanced concepts of Page Object pattern is components sharing – today we will take a closer look at this.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Page-Object-WebdriverIO-advanced-concepts-components-sharing"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fpoznajprogramowanie.pl%2fpage-object-webdriverio-advanced-concepts%2f" style="border:0px"/></a></div></div>AdrianBystrekhttps://dotnetomaniak.pl/Users/OVypLamzHEejQV0ElEVgOA2017-12-30T06:57:20Zhttps://dotnetomaniak.pl/Page-Object-WebdriverIO-advanced-concepts-components-sharing2500Page Object pattern is well-known in the world of test automation. Fortunately the new version (v4) of webdriver.io test automation framework was designed with Page Object pattern in mind, so we can fully benefit from this approach. One of advanced concepts of Page Object pattern is components sharing – today we will take a closer look at this.https://poznajprogramowanie.pl/page-object-webdriverio-advanced-concepts/http://dotnetomaniak.pl/Data/Thumbnails/small_W4fqXJVVEEWc3zW_HPJKKw.pnghttps://dotnetomaniak.pl/Bogus-fake-data-generator-in-Net-testing-Dominik-RoszkowskiBogus fake data generator in .Net testing – Dominik Roszkowski2017-07-16T09:53:25Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_a8xkIJHXukKfcSvx5D60pg.png"/></div><div>While looking for some efficient solution to mock (or autogenerate) some testing data I stumbled upon this funny-named library called Bogus. I tried and compared it with another well-known library called AutoFixture. They’re both powerful and can speed up tedious manual object initialization.
I was looking for a solution that would work with Entity Framework and our database models which required that some selected properties were always not-null. Also, just for my own...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Bogus-fake-data-generator-in-Net-testing-Dominik-Roszkowski"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fdominikroszkowski.pl%2f2017%2f07%2fbogus-in-testing%2f" style="border:0px"/></a></div></div>orestesgaolinhttps://dotnetomaniak.pl/Users/gHWV39TAOkOY4RyL7w0z7w2017-07-25T12:20:56Zhttps://dotnetomaniak.pl/Bogus-fake-data-generator-in-Net-testing-Dominik-Roszkowski1890While looking for some efficient solution to mock (or autogenerate) some testing data I stumbled upon this funny-named library called Bogus. I tried and compared it with another well-known library called AutoFixture. They’re both powerful and can speed up tedious manual object initialization.
I was looking for a solution that would work with Entity Framework and our database models which required that some selected properties were always not-null. Also, just for my own...https://dominikroszkowski.pl/2017/07/bogus-in-testing/http://dotnetomaniak.pl/Data/Thumbnails/small_a8xkIJHXukKfcSvx5D60pg.pnghttps://dotnetomaniak.pl/Running-Aurelia-tests-inside-Bitbucket-pipelines-Forever-FrameRunning Aurelia tests inside Bitbucket pipelines - Forever F[r]ame2017-07-02T15:23:15Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_ZbOkjk0VnUW2OXI3CaBQyg.png"/></div><div>Inspired by Piotr’s article I decided to play a little with the Bitbucket as an alternative to the GitHub. The thing that I really like about it, is that there’s no need to use any 3rd part CI tool such as TravisCI since Bitbucket offers its own build pipeline. Of course, I wanted to test it as soon as possible, so I created very simple Aurelia application using its CLI and I pushed my changes. My basic pipeline file (with the *.yml extension) presented as follows:
...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Running-Aurelia-tests-inside-Bitbucket-pipelines-Forever-Frame"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fforeverframe.net%2frunning-aurelia-tests-inside-bitbucket-pipelines%2f" style="border:0px"/></a></div></div>dpawlukiewiczhttps://dotnetomaniak.pl/Users/3F7LM514EkOFPklktIOrVg2017-07-11T04:28:55Zhttps://dotnetomaniak.pl/Running-Aurelia-tests-inside-Bitbucket-pipelines-Forever-Frame1290Inspired by Piotr’s article I decided to play a little with the Bitbucket as an alternative to the GitHub. The thing that I really like about it, is that there’s no need to use any 3rd part CI tool such as TravisCI since Bitbucket offers its own build pipeline. Of course, I wanted to test it as soon as possible, so I created very simple Aurelia application using its CLI and I pushed my changes. My basic pipeline file (with the *.yml extension) presented as follows:
...http://foreverframe.net/running-aurelia-tests-inside-bitbucket-pipelines/http://dotnetomaniak.pl/Data/Thumbnails/small_ZbOkjk0VnUW2OXI3CaBQyg.pnghttps://dotnetomaniak.pl/EN-NUnit-generic-classes-tests-Diwebsity[EN] NUnit - generic classes tests - Diwebsity2016-05-17T06:51:12Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_A63pBrNIF0uceDCwKhZs4w.png"/></div><div>Generic classes tests mechanism using NUnit with test cases</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-NUnit-generic-classes-tests-Diwebsity"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fwww.diwebsity.com%2f2016%2f05%2f17%2fnunit-generic-classes-tests%2f" style="border:0px"/></a></div></div>suvrochttps://dotnetomaniak.pl/Users/lZJFqpIXrEOV_dqPdohdfw2016-05-20T09:51:23Zhttps://dotnetomaniak.pl/EN-NUnit-generic-classes-tests-Diwebsity1790Generic classes tests mechanism using NUnit with test caseshttp://www.diwebsity.com/2016/05/17/nunit-generic-classes-tests/http://dotnetomaniak.pl/Data/Thumbnails/small_A63pBrNIF0uceDCwKhZs4w.pnghttps://dotnetomaniak.pl/EN-WebAPI-integration-tests-with-OWIN-Diwebsity[EN] WebAPI integration tests with OWIN - Diwebsity2016-04-14T07:32:41Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_KQ-TQdXyakmpwK9SYbSV9g.png"/></div><div>Opis jak szybko skonfigurować testy integracyjne dla WebAPI przy użyciu OWIN</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-WebAPI-integration-tests-with-OWIN-Diwebsity"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fwww.diwebsity.com%2f2016%2f04%2f14%2fwebapi-integration-tests%2f" style="border:0px"/></a></div></div>suvrochttps://dotnetomaniak.pl/Users/lZJFqpIXrEOV_dqPdohdfw2016-04-19T07:30:59Zhttps://dotnetomaniak.pl/EN-WebAPI-integration-tests-with-OWIN-Diwebsity1890Opis jak szybko skonfigurować testy integracyjne dla WebAPI przy użyciu OWINhttp://www.diwebsity.com/2016/04/14/webapi-integration-tests/http://dotnetomaniak.pl/Data/Thumbnails/small_KQ-TQdXyakmpwK9SYbSV9g.pnghttps://dotnetomaniak.pl/EN-Using-ConventionTests-Krzysztof-Kozmic-on-software[EN] Using ConventionTests « Krzysztof Koźmic on software2012-06-18T08:13:32Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_3rpHWPsMrkCD3vmj21i9vw.png"/></div><div>I’m a big fan of using conventions when developing applications. I blogged about it in the past (here, here and later here). I also gave a talk about my experience with this approach and how I currently use it at NDC last week (slides are available here, video is here).
One problem I faced when trying to build convention validation tests was lack of simple API that would allow me to build the validation rules for my tests. I built a spike of such library (call...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Using-ConventionTests-Krzysztof-Kozmic-on-software"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fkozmic.pl%2f2012%2f06%2f14%2fusing-conventiontests%2f" style="border:0px"/></a></div></div>Paweł Łukasikhttps://dotnetomaniak.pl/Users/lI7X-wDfeE2RoUfuiihoOg2012-06-27T04:41:33Zhttps://dotnetomaniak.pl/EN-Using-ConventionTests-Krzysztof-Kozmic-on-software2800I’m a big fan of using conventions when developing applications. I blogged about it in the past (here, here and later here). I also gave a talk about my experience with this approach and how I currently use it at NDC last week (slides are available here, video is here).
One problem I faced when trying to build convention validation tests was lack of simple API that would allow me to build the validation rules for my tests. I built a spike of such library (call...http://kozmic.pl/2012/06/14/using-conventiontests/http://dotnetomaniak.pl/Data/Thumbnails/small_3rpHWPsMrkCD3vmj21i9vw.pnghttps://dotnetomaniak.pl/Ugry%C5%BA%C4%87-SpringNET-cz7-Testy-jednostkowe-Beniamin-Zaborskis-Blog-BeniaminZaborskicomUgryźć Spring.NET – (cz.7) Testy jednostkowe « Beniamin Zaborski's Blog (BeniaminZaborski.com)2009-08-08T08:01:06Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_Hi2CSm-700emyN8YqLXPpg.png"/></div><div>W dzisiejszych czasach nikt już sobie nie wyobraża dobrze zaprojektowanej aplikacji biznesowej bez testów jednostkowych. Istnieją metodologie, które wręcz testy jednostkowe stawiają na pierwszym miejscu. Spring.NET idzie z duchem czasu i posiada wsparcie dla testów jednostkowych przy użyciu NUnit. Bądź co bądź to nadal najp...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Ugry%C5%BA%C4%87-SpringNET-cz7-Testy-jednostkowe-Beniamin-Zaborskis-Blog-BeniaminZaborskicom"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fbeniaminzaborski.wordpress.com%2f2009%2f08%2f06%2fugryzc-spring-net-%25E2%2580%2593-cz-7-testy-jednostkowe%2f" style="border:0px"/></a></div></div>Paweł Łukasikhttps://dotnetomaniak.pl/Users/lI7X-wDfeE2RoUfuiihoOg2009-08-17T11:09:23Zhttps://dotnetomaniak.pl/Ugry%C5%BA%C4%87-SpringNET-cz7-Testy-jednostkowe-Beniamin-Zaborskis-Blog-BeniaminZaborskicom11180W dzisiejszych czasach nikt już sobie nie wyobraża dobrze zaprojektowanej aplikacji biznesowej bez testów jednostkowych. Istnieją metodologie, które wręcz testy jednostkowe stawiają na pierwszym miejscu. Spring.NET idzie z duchem czasu i posiada wsparcie dla testów jednostkowych przy użyciu NUnit. Bądź co bądź to nadal najp...http://beniaminzaborski.wordpress.com/2009/08/06/ugryzc-spring-net-%E2%80%93-cz-7-testy-jednostkowe/http://dotnetomaniak.pl/Data/Thumbnails/small_Hi2CSm-700emyN8YqLXPpg.png