Oleg Kyrylchuk :verified: · @okyrylchuk
137 followers · 49 posts · Server dotnet.social

.NET 8 introduces a new TimeProvider abstraction.

It allows time mocking in the test scenarios.

It is supported by other features that rely on time, for example, Task.Delay.

Also, a netstandard 2.0 library Microsoft.Bcl.TimeProvider has been created with this provider.

#dotnet #UnitTesting #time #timezone

Last updated 1 year ago

InfoQ · @infoq
636 followers · 258 posts · Server techhub.social

Stay ahead of the curve with the latest updates in : TimeProvider & ITimer in Preview 4, universal time abstractions for & .

Dive deeper into the topic with this enlightening article by Artur Ampilogov: bit.ly/44c0p7z

#dotnet #dotnet8 #dependencyinjection #UnitTesting #infoq #softwaredevelopment #microsoft

Last updated 1 year ago

InfoQ · @infoq
487 followers · 80 posts · Server techhub.social

is now opening beta access to new capabilities aimed to generate unit tests.

Tabnine is a code completion assistant that uses generative to predict & suggest the next lines of code based on its surrounding context.

Learn more on : bit.ly/3KMjiHo

#tabnine #AI #infoq #UnitTesting

Last updated 1 year ago

InfoQ · @infoq
483 followers · 76 posts · Server techhub.social

Developers should consider using instead of !

Fake objects offer similar isolation benefits while driving high confidence, clear documentation & loose coupling between implementation and test code.

article by Tyson Gern: bit.ly/3mfL9Wc

#fakeobjects #mockobjects #infoq #UnitTesting #softwaretesting #devops

Last updated 1 year ago

Doug Parker · @develwithoutacause
199 followers · 580 posts · Server techhub.social

So I've been doing a bit of research into (, , , , , ...).

I'm curious if there's any interest in a blog post on some of my takeaways about aspects like:

* Test runners vs test frameworks.
* Browser-based runners vs Node-based runners.
* Changes in the ecosystem.
* Future directions of JS unit testing.
* ...

#web #UnitTesting #tooling #jest #vitest #jasmine #Karma #webtestrunner

Last updated 1 year ago

Paul Pitchford · @pitchie
8 followers · 15 posts · Server dotnet.social

I’m learning about writing unit tests. It feels like the elephant in the room I’ve been ignoring. It feels like there is a lot of leg work, especially for testing my db code but I’m hoping that as the app progresses and I write more tests they’ll feel more useful. Do you write and git commit your tests with your code changes or do you write your tests separately and treat them as separate commits?

#git #UnitTesting #xunit #entityframework

Last updated 1 year ago

Jon Reid · @qcoding
713 followers · 367 posts · Server techhub.social

Let's add microtests to existing code!
I'll be 13 hours from now on twitch.tv/qcoding, working on the TripService kata in .

#livecoding #LegacyCode #swift #UnitTesting #SwiftLang

Last updated 2 years ago

Gil Zilberfeld · @gilz
40 followers · 53 posts · Server sw-development-is.social
Gil Zilberfeld · @gilz
39 followers · 51 posts · Server sw-development-is.social
Jon Reid · @qcoding
661 followers · 348 posts · Server techhub.social

Let's add microtests to existing code!
I'll be 1.5 hours from now on twitch.tv/qcoding, working on the TripService kata in .

#livecoding #LegacyCode #SwiftLang #swift #UnitTesting

Last updated 2 years ago

Jon Reid · @qcoding
643 followers · 338 posts · Server techhub.social

Let's add tests to existing code!
I'll be 2.5 hours from now on twitch.tv/qcoding. I'll be looking at some real-world ("legacy" meaning "without tests").

#livecoding #swift #SwiftLang #LegacyCode #UnitTesting

Last updated 2 years ago

Gil Zilberfeld · @gilz
38 followers · 35 posts · Server sw-development-is.social
Jon Reid · @qcoding
641 followers · 314 posts · Server techhub.social

Man, I love the Construction Builder pattern for making test fixtures that vary.

#UnitTesting #microtesting

Last updated 2 years ago

Jon Reid · @qcoding
640 followers · 313 posts · Server techhub.social

ViewControllerPresentationSpy now updated for Xcode 14 support.
This is the easiest way to microtest view controller presentation and dismissal.
github.com/jonreid/ViewControl

#unittests #uikit #SwiftLang #iosdev #UnitTesting

Last updated 2 years ago

Jon Reid · @qcoding
601 followers · 263 posts · Server techhub.social

It's a new year. Though most iOS devs use `sut` to indicate the Subject Under Test (possibly following my example), I think it's time I change to `subject`. I want to avoid burdening students with terminology, when "test subject" is commonly understood.

#iosdev #UnitTesting

Last updated 2 years ago

Adam Dymitruk :uv: :em: :tux: · @adymitruk
2038 followers · 1497 posts · Server techhub.social

Better yet, a unit is a single state change or new projection of state. No required.

RT @christianhujer@twitter.com

In unit testing, what's a unit? Is it a method? Is it a class? Is it a module? No. Let's clarify this once and for all.

In unit testing, a unit isn't an element of structure. In unit testing, a unit is an individually observable element of BEHAVIOR.

🐦🔗: twitter.com/christianhujer/sta

#tdd #bdd #atdd #UnitTesting

Last updated 2 years ago

Chris Johns :verified: · @ChrisJohns
46 followers · 137 posts · Server techhub.social

It is astonishing at how difficult it is to convince people to automate testing.

#UnitTesting #testing #e2e #integratedtesting #ui #uitesting

Last updated 2 years ago

Gil Zilberfeld · @gilz
27 followers · 9 posts · Server sw-development-is.social
Gil Zilberfeld · @gilz
25 followers · 4 posts · Server sw-development-is.social
Gil Zilberfeld · @gilz
25 followers · 3 posts · Server sw-development-is.social