- Artykuły z tagiem testing

WireMock.NET allows for easy testing of the code that makes HTTP requests, without having to rely on the actual external service being available and without hacking HttpClient.

Tagi: dotnet, HTTP, testing
Dziel się z innymi:
WireMock.NET - Introduction · Cezary Piątek Blog

Narzędzia 459 dni, 14 godzin, 33 minuty temu cezarypiatek 136 źrodło rozwiń

In this article, I’ll delve into the process of mocking dependencies in a DI container when using WebApplicationFactory, and offer some insights and best practices I’ve learned along the way.

Tagi: testing
Dziel się z innymi:
Mocking dependencies in ASP.NET Core tests · Cezary Piątek Blog

Sztuka programowania 549 dni, 12 godzin, 56 minut temu cezarypiatek 81 źrodło rozwiń

In one of our projects, we recently started using Cypress for end-to-end testing. Cypress executes tests written in JavaScript or TypeScript. However, we wanted to first perform some data-preparation operations using C#. In fact, we needed to run Cypress tests from NUnit C# tests. In this article, I’m sharing how this can be done 🙂 It will also be useful if you use another testing framework than NUnit, but the examples are based on it. Table of...

Run Cypress Tests From NUnit Test (C#) - Yumasoft

Sztuka programowania 1019 dni, 14 godzin, 6 minut temu dsibinski 37 źrodło rozwiń

In the “classical unit tests” developers quite often use Arrange/Act/Assert comments to annotate the main parts of the test method script. However, the test case scenarios in component tests tend to be more complex and those simple notations don’t fit anymore. Here's my proposition on how to deal with that problem...

Tagi: testing
Dziel się z innymi:
Readable and clear tests for ASP.NET Core services · Cezary Piątek Blog

Sztuka programowania 1068 dni, 15 godzin, 14 minut temu cezarypiatek 60 źrodło rozwiń

LukaszPosted on Imagine you’re starting to develop a new feature… and this time you decide to do it right. So, you started with Test-Driven development, because it’s part of your ethic to write tests (a surgeon never asks whether they should wash their hands before an surgery). It felt so good. And it felt so right. You’re satisfied with your code design and the fact that you’ve started with tests. And hey, the code coverage is pretty good too! You deployed this code to production and it is working rea...

Dziel się z innymi:
How good are your .NET tests? Test your tests with Stryker mutator

Sztuka programowania 1188 dni, 14 godzin, 50 minut temu lukaszcoding 46 źrodło rozwiń

In this blog post I’m going to share my experience on testing ASP.NET Core applications with applying unconventional method called snapshot assertions. In comparison to the classical approach this method should save you a lot of time and improve assertions maintainability.

Dziel się z innymi:
Testing WebAPI with ApprovalTests.NET · Cezary Piątek Blog

Narzędzia 1214 dni, 14 godzin, 8 minut temu cezarypiatek 104 źrodło rozwiń

Reading time ~7 minutes This article is Part 3 in a 3-Part Series. Part 1 - Refactoring to Data Driven TestsPart 2 - How to get data for Data-Driven Tests?Part 3 - This Article As promised here and here, this will be tips, tricks, and good practices for data-driven tests. If You want to know more about data-driven testing see my previousposts on this topic. Here we go. I will be converting this series into an ebook with additional source code and examples. If You want to get it please subscribe:G...

Dziel się z innymi:
Tips, tricks, and good practices for Data-Driven Testing. Part 1. – IndexOutOfRange

Sztuka programowania 1772 dni, 15 godzin, 8 minut temu maklipsa 51 źrodło rozwiń

Reading time ~6 minutes This article is Part 2 in a 2-Part Series. Part 1 - Refactoring to Data Driven TestsPart 2 - This Article The previous post was meant to be an encouragement and a warmup to data-driven testing. This post describes why I love this way of testing. Understanding a simple fact about testing moved me from “Oh, I should write tests” to “I want it all! And I want it now!” and Data-Driven Testing. And the simple truth is: Anyone who is a bit interested in machine learning heard sta...

Dziel się z innymi:
Data is the new king (in tests). How to get data for DDT? – IndexOutOfRange

Sztuka programowania 1776 dni, 15 godzin, 51 minut temu maklipsa 58 źrodło rozwiń

W poprzednim wpisie wspomniałam o narzędziu Cypress, które umożliwia nam uruchamianie testów z poziomu przeglądarki dzięki czemu bardzo przyjemnie się z nim pracuje. Dziś pokażę Wam jak pisać testy i jak je uruchamiać.

Tagi: e2e, testing
Dziel się z innymi:
Cypress - jak zacząć pracę z testami |

Narzędzia 2063 dni, 11 godzin, 37 minut temu Maga 106 źrodło rozwiń

Developer’s job is far beyond designing, writing the code and testing it. One of the important responsibilities is to ship the code to production. How to do that safely?

[EN] Rock solid pipeline - how to deploy to production comfortably?

Architektura 2456 dni, 17 godzin, 27 minut temu http://dynamicallyinvokable... 117 źrodło rozwiń

Od ponad roku rozwijam framework do automatyzacji testów. Przez ten czas miałem okazję pracować przy kilku projektach związanych z automatyzacją, gdzie poznałem wspaniałych ludzi i za każdym razem miałem okazję spojrzeć na testowanie automatyczne z innej perspektywy. Widziałem kod doskonały (tak, istnieją takie! :)) oraz taki, o którym chciałbym jak najszybciej zapomnieć. Dzisiaj skupię się na tym drugim i przedstawię wam 3 sprawdzone sposoby na to, jak zepsuć testy automatyczne...

3 sprawdzone sposoby na złe testy automatyczne –

Sztuka programowania 2541 dni, 2 godziny, 27 minut temu Michał Jawulski 214 źrodło rozwiń

Introduction to my new course about testing

Tagi: e2e, testing
Dziel się z innymi:
Free end-to-end testing for .NET developers mail course - Diwebsity

Inne 2714 dni, 2 godziny temu suvroc 131 źrodło rozwiń

Article about automating web application accessibility testing using Selenium WebDriver

Dziel się z innymi:
[EN] Selenium accessibility testing - Diwebsity

Web 2793 dni, 13 godzin, 6 minut temu suvroc 76 źrodło rozwiń

Propsuje jedno z moich ulubionych narzedzi w codziennej pracy w VisualStudio

Dziel się z innymi:
Continous testing in VisualStudio with NCrunch - Michał Dymel - DevBlog

Narzędzia 2899 dni, 4 godziny, 32 minuty temu Michal Dymel 85 źrodło rozwiń

Jak tworzyc dane testowe przy pomocy biblioteki AutoFixture oraz tworzenie mock'ów w testach z FakeItEasy

Dziel się z innymi:
Creating test data and mocking dependencies - Michał Dymel - DevBlog

Daj się poznać 2016 2997 dni, 14 godzin, 9 minut temu Michal Dymel 60 źrodło rozwiń

Recently I’ve had this idea that came into my mind while working on the Sentry – let the users of my library (if there will be any) to configure not only the set of rules, connection strings, urls etc. but also the underlying providers that do all of the heavy lifting (e.g. the HttpClient responsible for communicating with the API). It means that as long as you’re not satisfied with the default solution, please feel free to provide your own engine that will for example talk to the database and perform a ...

[EN] Mocking the “unmockable” | Piotr Gankiewicz

Sztuka programowania 3028 dni, 14 godzin, 10 minut temu spetz 83 źrodło rozwiń

If we think about advanced website development, sooner or later we’ll deal with JavaScript Task Runners. One of them is Gulp – a library available in NPM, which enables us to significantly automate our work. Gulp facilitates a compilation of Sass or Less files to CSS format; it allows to use Autoprefixer (a tool that will ensure the compatibility of our CSSs with multiple browsers) as well as to watch the progress of our work in many browsers/ devices in real time.

[EN] Gulp, Sass and BrowserSync in practice | Future Processing

Web 3118 dni, 11 godzin, 39 minut temu FutureProcessing 89 źrodło rozwiń

During this year’s Testwarez 2015, we had opportunity to lead a panel discussion about testing in agile teams.

[EN] Testing in Agile teams - how to iteratively take care of project quality | Future Processing

Inne 3165 dni, 13 godzin, 54 minuty temu FutureProcessing 79 źrodło rozwiń

Remember that this post is not about why we should automate our functional tests. It is also not about technical details of writing tests in any particular programming language or by using any particular framework.Initial investigations Before we start writing any code we should think about best possible technical solution. The goal of this article is not to encourage using any specific framework or library. However, some crucial aspects should be considered here. First of all, we should think about o...

[EN] Good practices in creating automated functional tests | Future Processing

Inne 3439 dni, 2 godziny, 21 minut temu FutureProcessing 148 źrodło rozwiń

Ask yourself a question if your unit test project is a mixture of test methods or it shapes a specification that you can share with your client. If you really want to improve your testing experience look at NSpec.

Tagi: bdd, nspec, TDD, testing
Dziel się z innymi:
[EN] Improve your testing experience with NSpec, best BDD test framework | chrisseroka

Narzędzia 3509 dni, 19 godzin, 49 minut temu https://chrisseroka.wordpre... 112 źrodło rozwiń