home.social

#assertions — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #assertions, aggregated by home.social.

fetched live
  1. Our next #JCON2026 session is live: 'Better #Assertions with #AssertJ' with @timtebeek

    Not all #testing libraries are equal. Sure they all run your tests, but what happens when they #fail? “Expected ‘true’, was ‘false’” won’t help you …

    Grab your coffee and hit play: youtu.be/W7BhLNVHuqo

  2. Our next #JCON2026 session is live: 'Better #Assertions with #AssertJ' with @timtebeek

    Not all #testing libraries are equal. Sure they all run your tests, but what happens when they #fail? “Expected ‘true’, was ‘false’” won’t help you …

    Grab your coffee and hit play: youtu.be/W7BhLNVHuqo

  3. JUnit ist das Standardwerkzeug für automatisierte Tests im Java-Umfeld. Wenn du mit Java arbeitest, wirst du früher oder später nicht daran vorbeikommen. Tests sind kein Selbstzweck und auch kein akademisches Konstrukt, sondern ein Werkzeug, das dir im Alltag hilft, Fehler früh zu erkennen und Änderungen sicher umzusetzen. Gerade bei wachsendem Codebestand ist das entscheidend.

    magicmarcy.de/junit-basics-ver

    #ArrangeActAssert #JUnit #Assertions
    #InitTest #Java #Erwartungen #Programming

  4. Une librairie de capture de logs en Java, qui semble supporter l'ensemble des frameworks de logs, et permettre de faire des assertions assez claires sur ce qui a été écrit. github.com/Hakky54/log-captor? #java #log #assertions #extraction #library #opensource

  5. Une librairie de capture de logs en Java, qui semble supporter l'ensemble des frameworks de logs, et permettre de faire des assertions assez claires sur ce qui a été écrit. github.com/Hakky54/log-captor? #java #log #assertions #extraction #library #opensource

  6. One of the many good uses of assertions is to catch cases that Should Never Happen.
    The textbook example is the last branch of a multi-way conditional statement where one of the conditions before the final "else" must always be true.

    Another, where there must always be an element to be found:
    »    for each x in ...
    »    »    if x satisfies ...
    »    »    »    return x
    »    assert false

    #Assertions
    #ComputerProgramming
    #ProgramVerification

  7. One of the many good uses of assertions is to catch cases that Should Never Happen.
    The textbook example is the last branch of a multi-way conditional statement where one of the conditions before the final "else" must always be true.

    Another, where there must always be an element to be found:
    »    for each x in ...
    »    »    if x satisfies ...
    »    »    »    return x
    »    assert false

    #Assertions
    #ComputerProgramming
    #ProgramVerification

  8. Everyone that rules the planet is neuro-diverse.

    Prove me wrong.

    #Assertions #LogicBombs

  9. If you have many assertions, you can also use the SoftAssertions to test all the assertions and give all the results at once.

    Read more 👉 lttr.ai/ATQTo

    #test #unitest #unitTest #testing #AssertJ #assertions #code #developer

  10. Want to test the output of your Rust CLI project?

    ⬇️ Check out **assert_cmd**!

    🦀 A Rust library for easy command initialization and assertions.

    🧪 Asserts on the result of your program's run.

    ⭐ GitHub: github.com/assert-rs/assert_cmd

  11. Want to test the output of your Rust CLI project?

    ⬇️ Check out **assert_cmd**!

    🦀 A Rust library for easy command initialization and assertions.

    🧪 Asserts on the result of your program's run.

    ⭐ GitHub: github.com/assert-rs/assert_cm

    #rustlang #testing #cli #commandline #assertions #library #opensource

  12. Throwing an exception when a business rule is invalid is very common, but do you know that it is very easy to create a test for it?

    Read more 👉 lttr.ai/AYtk5

    #test #unitest #unitTest #testing #AssertJ #assertions #code #developer

  13. AssertJ is a Java library to create fluent assertions, and it provides many ways to validate your test.

    Read more 👉 lttr.ai/AUSR7

    #test #unitest #unitTest #testing #AssertJ #assertions #code #developer

  14. I should have know this would happen. I've basically asked for this crash by placing a Q_UNREACHABLE() statement in that very line...

    ASSERT failure in Q_UNREACHABLE(): "Q_UNREACHABLE was reached", file .../mainwindow.cpp, line 666

    #programming #assertions #murphyslaw

  15. I should have know this would happen. I've basically asked for this crash by placing a Q_UNREACHABLE() statement in that very line...

    ASSERT failure in Q_UNREACHABLE(): "Q_UNREACHABLE was reached", file .../mainwindow.cpp, line 666

    #programming #assertions #murphyslaw

  16. J'ignorais complètement qu'assertj disposait d'un plugin maven permettant de générer des assertions pour les classes que j'écris. C'est très cool! github.com/assertj/assertj-ass #java #maven #assertions #test #générateur #code

  17. J'ignorais complètement qu'assertj disposait d'un plugin maven permettant de générer des assertions pour les classes que j'écris. C'est très cool! github.com/assertj/assertj-ass #java #maven #assertions #test #générateur #code

  18. Une façon intéressante d'écrire des assertions, quelquesoit le framework de test, pour éviter qu'elles ne plantent à la première erreur mais affichent plutôt un rapport agrégé. foojay.io/today/soft-assertion #java #test #assertions #astuce

  19. Une façon intéressante d'écrire des assertions, quelquesoit le framework de test, pour éviter qu'elles ne plantent à la première erreur mais affichent plutôt un rapport agrégé. foojay.io/today/soft-assertion #java #test #assertions #astuce

  20. @jtrentadams @rigo HT to Lucy L. formerly of ISOC, who warned us before she retired that this whole #assertions -confusion thing would lead us straight to hell.

  21. If you're serious about #objectOriented programming, try to use #DesignByContract to the fullest extent your language supports it. Your future debugging self will thank you. At the very least, liberally use #assertions throughout your code to state what should be true at any given point in your code.

    en.wikipedia.org/wiki/Design_b

    #dbc #SoftwareEngineering