dotnetomaniak.pl - Artykuły z tagiem Tests

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.

Tagi: Tests, xunit
Źródło: event-driven.io
Dziel się z innymi:
How to set up a test matrix in XUnit? - Oskar Dudycz

Sztuka programowania 1149 dni, 11 godzin, 47 minut temu oskar-at-net 46 źrodło rozwiń

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.

Źródło: f2black.pl
Dziel się z innymi:
Cypress & ExtJS – testy e2e

Web 1251 dni, 12 godzin, 37 minut temu f2Black 39 źrodło rozwiń

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...

Tagi: .Net, C#, Tests, testy
Dziel się z innymi:
Improve your tests with Assert Object Pattern - CodeJourney.net

Sztuka programowania 1253 dni, 11 godzin, 47 minut temu dsibinski 64 źrodło rozwiń

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...

Kafka Streams 103 - Pisz testy, zapomnij o Kafce - Wiadro Danych

Sztuka programowania 1463 dni, 12 godzin, 55 minut temu mszymczyk 42 źrodło rozwiń

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...

Dziel się z innymi:
[EN] Feature Object Pattern · Cezary Piątek Blog

Sztuka programowania 2080 dni, 12 godzin, 46 minut temu cezarypiatek 80 źrodło rozwiń

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.

Page Object, WebdriverIO advanced concepts - components sharing

Web 2299 dni, 12 godzin, 52 minuty temu AdrianBystrek 50 źrodło rozwiń

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...

Dziel się z innymi:
Bogus fake data generator in .Net testing – Dominik Roszkowski

Narzędzia 2457 dni, 7 godzin, 29 minut temu orestesgaolin 89 źrodło rozwiń

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:   ...

Źródło: foreverframe.net
Dziel się z innymi:
Running Aurelia tests inside Bitbucket pipelines - Forever F[r]ame

Web 2471 dni, 15 godzin, 21 minut temu dpawlukiewicz 29 źrodło rozwiń

Generic classes tests mechanism using NUnit with test cases

Tagi: NUnit, Tests
Źródło: www.diwebsity.com
Dziel się z innymi:
[EN] NUnit - generic classes tests - Diwebsity

Sztuka programowania 2888 dni, 9 godzin, 58 minut temu suvroc 79 źrodło rozwiń

Opis jak szybko skonfigurować testy integracyjne dla WebAPI przy użyciu OWIN

Tagi: owin, Tests, WebAPI
Źródło: www.diwebsity.com
Dziel się z innymi:
[EN] WebAPI integration tests with OWIN - Diwebsity

Sztuka programowania 2919 dni, 12 godzin, 19 minut temu suvroc 89 źrodło rozwiń

I’m a big fan of using con­ven­tions when devel­op­ing appli­ca­tions. I blogged about it in the past (here, here and later here). I also gave a talk about my expe­ri­ence with this approach and how I cur­rently use it at NDC last week (slides are avail­able here, video is here). One prob­lem I faced when try­ing to build con­ven­tion val­i­da­tion tests was lack of sim­ple API that would allow me to build the val­i­da­tion rules for my tests. I built a spike of such library (call...

Źródło: kozmic.pl
Dziel się z innymi:
[EN] Using ConventionTests «  Krzysztof Koźmic on software

Sztuka programowania 4311 dni, 15 godzin, 8 minut temu Paweł Łukasik 80 źrodło rozwiń

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...

Ugryźć Spring.NET – (cz.7) Testy jednostkowe « Beniamin Zaborski's Blog (BeniaminZaborski.com)

Inne 5356 dni, 8 godzin, 40 minut temu Paweł Łukasik 118 źrodło rozwiń

Najaktywniejsi w tym miesiącu