mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

661
comptes actifs

#unittesting

0 message0 participant0 message aujourd’hui

Quick heads up: I just deprecated @small-tech/tape-with-promises (for adding promise support to Tape 4.x).

npmjs.com/package/@small-tech/

Tape version 5.x supports promises so my little module is no longer necessary unless you’re stuck on v4.x.

What’s tape? A neat little JavaScript unit testing framework I like:

github.com/tape-testing/tape

Already use tape? Does your test runner need more monkeys and bananas? Try my tap-monkey module:

codeberg.org/small-tech/tap-mo

🙊🍌

Python's unittest: Writing Unit Tests for Your Code

The Python standard library ships with a testing framework named unittest, which you can use to write automated tests for your code. The unittest package has an object-oriented approach where test cases derive from a base class, which has several useful methods.

realpython.com/python-unittest

realpython.comPython's unittest: Writing Unit Tests for Your Code – Real PythonIn this tutorial, you'll learn how to use the unittest framework to create unit tests for your Python code. Along the way, you'll also learn how to create test cases, fixtures, test suites, and more.

Two very different open questions for FLOSS devleopers out there.

- What's the state of the art of *C* #UnitTesting frameworks? I want to start writing a bunch of unit tests for unpaper now that the refactor makes it possible (most of the code does not depend on global state so I can link it through and test behaviours.

- Is there any decent #Rust ELF library, so I could try to reimplement the logic of my rbelf-size and cowstats from Ruby-Elf in a more reachable format.

Suite du fil

2/ This edition comes with new chapters on Advanced #InteractiveWidgets, #UnitTesting, and #WidgetTesting, along with the #StateManagement chapter now includes #Riverpod.

There is a major update to the #Firebase #CloudFirestore chapter. Instead of separate sections for manually setting up Firestore to work in Android and iOS #Flutter apps, now one learns how to use #FlutterFire CLI to #Firestore to work with Android, iOS, macOS, and Web apps.

I've been working to add require to Nimble, an assertion which throws if it fails, and returns the result of the expression asserted on. Inspired by the Require macro from swift-testing.

If you're interested, I'd love feedback! The linked PR works, but I'm still dogfooding it and it overall needs to be cleaned up (and documented 😳).

github.com/Quick/Nimble/pull/1

GitHubIntroduce the require dsl. Which is like expect, but it returns the result of the expression by younata · Pull Request #1103 · Quick/NimblePar younata