dotnetomaniak.pl - 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 620 dni, 5 godzin, 55 minut temu cezarypiatek 154 ź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 710 dni, 4 godziny, 18 minut temu cezarypiatek 90 ź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 1180 dni, 5 godzin, 28 minut temu dsibinski 42 ź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 1229 dni, 6 godzin, 35 minut temu cezarypiatek 64 ź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...

Źródło: lukaszcoding.com
Dziel się z innymi:
How good are your .NET tests? Test your tests with Stryker mutator

Sztuka programowania 1349 dni, 6 godzin, 11 minut temu lukaszcoding 48 ź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 1375 dni, 5 godzin, 29 minut temu cezarypiatek 107 ź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 1933 dni, 6 godzin, 30 minut temu maklipsa 53 ź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 1937 dni, 7 godzin, 12 minut temu maklipsa 59 ź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
Źródło: programistka.com
Dziel się z innymi:
Cypress - jak zacząć pracę z testami | programistka.com

Narzędzia 2224 dni, 2 godziny, 58 minut temu Maga 107 ź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 2617 dni, 8 godzin, 49 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 – mjawulski.pl

Sztuka programowania 2701 dni, 17 godzin, 48 minut temu Michał Jawulski 214 źrodło rozwiń

Introduction to my new course about testing

Tagi: e2e, testing
Źródło: www.diwebsity.com
Dziel się z innymi:
Free end-to-end testing for .NET developers mail course - Diwebsity

Inne 2874 dni, 17 godzin, 22 minuty temu suvroc 131 źrodło rozwiń

Article about automating web application accessibility testing using Selenium WebDriver

Źródło: www.diwebsity.com
Dziel się z innymi:
[EN] Selenium accessibility testing - Diwebsity

Web 2954 dni, 4 godziny, 28 minut temu suvroc 76 źrodło rozwiń

Propsuje jedno z moich ulubionych narzedzi w codziennej pracy w VisualStudio

Źródło: devblog.dymel.pl
Dziel się z innymi:
Continous testing in VisualStudio with NCrunch - Michał Dymel - DevBlog

Narzędzia 3059 dni, 19 godzin, 53 minuty temu Michal Dymel 86 źrodło rozwiń

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

Źródło: devblog.dymel.pl
Dziel się z innymi:
Creating test data and mocking dependencies - Michał Dymel - DevBlog

Daj się poznać 2016 3158 dni, 5 godzin, 31 minut temu Michal Dymel 61 ź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 3189 dni, 5 godzin, 31 minut temu spetz 84 ź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 3279 dni, 3 godziny temu FutureProcessing 90 ź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 3326 dni, 5 godzin, 15 minut temu FutureProcessing 82 ź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 3599 dni, 17 godzin, 42 minuty temu FutureProcessing 149 ź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 3670 dni, 11 godzin, 11 minut temu https://chrisseroka.wordpre... 115 źrodło rozwiń

Najaktywniejsi w tym miesiącu