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. #AI is just fast. You need to be confident that you have a platform for #understanding your questions or your assertions. I posit that you should work with #assertions much more than #questions and you will be happier with your mileage. #MissKitty's experience so far. Sorry forgot to finish before.

  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. JUnit 5: Mehr Spaß und weniger Bauchschmerzen beim Entwickeln durch clevere Tests

    videos.ijug.eu/w/igZ5wDsiBswTU

  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. Everyone that rules the planet is neuro-diverse.

    Prove me wrong.

    #Assertions #LogicBombs

  8. 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

  9. 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

  10. 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

  11. Unit testing is a technique to test the smaller pieces of code known as units.

    Read more 👉 lttr.ai/AUSRx

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

  12. “But synthetical reasoning, setting up as its goal some unattainable abstraction, like an imaginary quantity in algebra, and commencing its course with taking for granted some two assertions which cannot be proved, from the union of these two assumed truths produces a third assumption, and so on in infinite series, to the unspeakable benefit of the human intellect.”

    https://library.hrmtc.com/2024/08/13/but-synthetical-reasoning-setting-up-as-its-goal-some-unattainable-abstraction-like-an-imaginary-quantity-in-algebra-and-commencing-its-course-with-taking-for-granted-some-two-assertions-which-ca/

  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. A quotation from Szasz, Thomas:

    «
    Doubt is to certainty as neurosis is to psychosis. The neurotic is in doubt and has fears about persons and things; the psychotic has convictions and makes claims about them. In short, the neurotic has problems, the psychotic has solutions.
    »

    Full quote, sourcing, notes:
    wist.info/szasz-thomas/16249/

    #quote #quotes #quotation #assertions #certainty #convictions #doubt #fear #neurosis #neurotic #problems #psychosis #psychotic #solutions #uncertainty

  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. 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

  18. @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.

  19. 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

Share on Mastodon

Enter the server where you have an account.