#unittest — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #unittest, aggregated by home.social.
-
🧪 I just released unittest-parametrize 1.9.0.
This package helps you make parametrized tests that work with the grain of unittest, but can still be run with pytest.
This release adds new skip/expected_failure features, fixes a bug when using Coverage.py's dynamic contexts, and tidies up error messages and usage docs.
https://github.com/adamchainz/unittest-parametrize/blob/main/CHANGELOG.rst
-
Based on this poll, we will be removing support for Visual Studio 2019 and out-of-support versions of Visual Studio 2022 from `xunit.analyzers` sometime before the final 2.0.0 release.
-
@shuttle I consequently use #TDD, where possible.
Yes, sure, #Rust prevents a lot of bugs at compile time already, but not logic bugs.
For example in #CSVDiff we have ~70 unit tests and ~12 integration tests. The only "bug report" we have ever gotten was due to a corrupted CSV file (being mistaken with a bug in diff):
See here (qsv):
https://github.com/jqnatividad/qsv/issues/1258#issuecomment-1712924932csv-diff:
https://gitlab.com/janriemer/csv-diffIn the future I'd like to add property and mutation testing as well 🤓
-
And this is why #UnitTests and #TDD are awesome/necessary (even in #Rust/ #RustLang):
The original requirement:
figure out how many columns the _result_ of diffing two CSVs in #CsvDiff have.Do you see the error-pattern?
It's
- when we have no diff
&&
- at least one CSV has headerswhich makes sense, because I've implemented the feature in the diffing logic, but at that point header information is already lost (in some other thread).
Isn't that beautiful!?🥰
-
Eric makes a good argument for why you should write integration tests first in a new project, before unit and end to end tests.
#testing #unittest #integrationtest #python #programming #webdev
https://mostlypython.substack.com/p/dont-start-with-unit-tests
-
@SecurityWriter #CI all the things with #nix .
This includes automatic #unitTest and #integrationTest before merging -
@podfeet @bbusschots wow! It just blew up when I did an integration test.
But I wrote solid unit test. There must be something that has to do with loading a file using the source command and maybe at overwrites some variables. Still researching it. #bash #ProgrammingByStealth #getopts #unittest #integrationtest #PBS149 -
Proud #software #developer is proud.
The day before yesterday I implemented an algorithm to calculate an authorization proof.
Yesterday I tested it successfully to recreate a known proof. #unitTest
Today I used it successfully to authenticate a request and download some data. #integrationTest
That's always the hardest part when communicating with third parties.