xUnit.net · @xunit
584 followers · 2 posts · Server dotnet.social

We just shipped new prerelease versions of the core framework and the Visual Studio adapter.

- We've added new overloads of Assert.RaisesAny and Assert.RaisesAnyAsync
- We've made SerializationHelper public
- We've fixed potential analyzer errors for users of xunit.assert.source
- We've fixed a bug in the Visual Studio adapter that affected runner authors.

Release notes:

xunit.net/releases/v2/2.5.1-pr
xunit.net/releases/visualstudi

#dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

xUnit.net · @xunit
584 followers · 2 posts · Server dotnet.social

Welcome to the new home for xUnit.net on Mastodon! We thank you for joining us. 😀

Home page: xunit.net/

Source code: github.com/xunit

If you'd prefer to follow via RSS, you can find that feed here: dotnet.social/@xunit.rss

#introduction #dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

xUnit.net · @xunit
516 followers · 66 posts · Server fosstodon.org

We just shipped new prerelease versions of the core framework, the Visual Studio adapter, and analyzers.

There is one new analyzer, and two bug fixes in the core framework. There are no changes in the Visual Studio adapter other than picking up the new framework dependencies.

Please test these as they are likely to become the RTM versions.

Release notes:

xunit.net/releases/v2/2.5.1-pr
xunit.net/releases/analyzers/1
xunit.net/releases/visualstudi

#dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

xUnit.net · @xunit
506 followers · 60 posts · Server fosstodon.org

Have you noticed that code coverage numbers have dropped when you switched from a 2.4.x to 2.5.x build of `xunit.runner.visualstudio`? Are you inadvertently dependent on the fact that we used to load all assemblies on startup but don't any more? Take a look at this issue: github.com/xunit/visualstudio.

#dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

Jan :rust: :ferris: · @janriemer
574 followers · 4096 posts · Server floss.social
Angu · @angu
3 followers · 9 posts · Server techhub.social

Since XCTest dose not support async expressions in its assert functions I released SwiftAsyncAsserts to fill that gap.

Write more readable testing code for your async APIS in Swift with SwiftAsyncAssert Swift package.

github.com/angu-software/Swift

#swift #xctest #asyncawait #unittest

Last updated 1 year ago

xUnit.net · @xunit
495 followers · 59 posts · Server fosstodon.org

We just shipped new prerelease versions of the core framework, the Visual Studio adapter, and analyzers.

There are a couple new analyzers, and a new feature in the Visual Studio adapter (in addition to bugs fixed).

Please test these as they're likely to become the RTM versions.

Release notes:

xunit.net/releases/v2/2.5.1-pr
xunit.net/releases/analyzers/1
xunit.net/releases/visualstudi

#dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

xUnit.net · @xunit
488 followers · 58 posts · Server fosstodon.org

We're going to ship another 2.5.1 prerelease next week. Make sure to let us know what should go into it with new/updated issues and discussions.

#dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

xUnit.net · @xunit
488 followers · 58 posts · Server fosstodon.org

The move to feedz.io is complete. Note that only new package builds will go here; if you're currently using the MyGet feed for prerelease packages, please ONLY update to feedz.io when you're ready to take newer dependencies.

New package list: feedz.io/org/xunit/repository/
New feed URL: f.feedz.io/xunit/xunit/nuget/i
Updated packages docs: xunit.net/docs/nuget-packages
Updated v3 alpha docs: xunit.net/docs/v3-alpha

#dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

xUnit.net · @xunit
488 followers · 58 posts · Server fosstodon.org

For the next prerelease build of `xunit.runner.visualstudio`, we are shipping the ability to pass all xUnit.net configuration items via RunSettings (as an XML file and/or via `dotnet test` command line switches).

The documentation page on how this works has just gone live: xunit.net/docs/runsettings

#dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

Stbrie · @Stbrie
14 followers · 347 posts · Server mastodon.sdf.org

Can anybody point me to a good resource explaining how to do automated integration testing with ? I've got a web app and want to be sure it does what I think it does before I unleash it on a production SharePoint site.

#MicrosoftGraph #integrationtest #unittest #webdev #wootitlookslikeitworks

Last updated 1 year ago

Ed Suominen · @edsuom
1579 followers · 553 posts · Server hachyderm.io

@glyph @itamarst By the way, I understand the concerns about subclasses and generally am trying to avoid them nowadays. And of course avoiding multiple inheritance like the plague that it is. But they are still useful sometimes. For example, I will use a "TestBase" base class of the type I often employ to provide a toolbox of methods for multiple independent classes doing related things.

#oop #unittest

Last updated 1 year ago

Datascience :verified: · @datascience
437 followers · 255 posts · Server genomic.social

{tetthat} is great for automatic testing. Here are some tricks for the heavy user: blog.r-hub.io/2020/11/18/testt

#RStats #testing #unittest #testthat

Last updated 1 year ago

xUnit.net · @xunit
451 followers · 49 posts · Server fosstodon.org

We just shipped new prerelease versions of the core framework, the Visual Studio adapter, and analyzers.

Note: This v2 2.5.1 release is targeted primarily at fixing issues with the new assertion library.

This is also the first prerelease build that fixes the issues with package signature verification (NU3003 errors) that affected the 2.5.0 release.

Release notes:

xunit.net/releases/v2/2.5.1-pr
xunit.net/releases/analyzers/1
xunit.net/releases/visualstudi

#dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

vansari ✅ · @vansari
9 followers · 178 posts · Server phpc.social

Should we use reports only for or also for integration and functional testing?

Should the test directory split into unit, integration and functional tests or should all tests in one root tests folder? (Both following the namespace rules)

#coverage #unittest #question #codequality

Last updated 1 year ago

Jan :rust: :ferris: · @janriemer
560 followers · 3759 posts · Server floss.social

Have you also verified what happens when you call your method twice?🤓 ✌️

#programming #unittest #testing #quality

Last updated 1 year ago

xUnit.net · @xunit
440 followers · 48 posts · Server fosstodon.org

Due to the code signing problems caused by the .NET Foundation switchover to the Microsoft Time Stamping service, we were definitely going to want to ship a 2.5.1 release.

We also expected there to be issues with the overhauled assertion library changes in 2.5.0. We've already fixed a few:

github.com/xunit/xunit/issues/
github.com/xunit/xunit/issues/
github.com/xunit/xunit/issues/
github.com/xunit/xunit/issues/

There will be a 2.5.1 prerelease this coming week for people to test.

#dotnet #csharp #fsharp #unittest #tdd

Last updated 1 year ago

Jan :rust: :ferris: · @janriemer
552 followers · 3682 posts · Server floss.social
ljmc ~͛ :unverified: :python: · @ljmc
4 followers · 31 posts · Server fosstodon.org

Not every project I have worked on has 100% coverage, nor should they, as perfect is the enemy of good.

However, I enforce the use of coverage.py’s fail_under with two simple rules:
1. It can only go up in a merge request.
2. It must stay 1 or 2 percent under current coverage.

This allows some leeway which can be useful during refactoring, while ensuring coverage won’t decrease overall.

#python #unittest

Last updated 1 year ago

Ed Suominen · @edsuom
1498 followers · 495 posts · Server hachyderm.io

Writing a for each significant piece of my code is a pain in the ass. Sometimes it feels like I spend most of my time writing test code instead of the stuff I actually want.

But then I add a feature or optimize something and debugging is as simple as making various tests pass again and I’m glad to have invested all that time in the parallel universe of a well-built test suite.

It’s like wearing an N95 during a pandemic, except for your code instead of your brain.

#unittest #python #programming

Last updated 1 year ago