home.social

#testinglibrary — Public Fediverse posts

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

  1. Использование браузерного хранилища для управления состоянием приложения

    Современные web-фреймворки для реализации управления состоянием используют библиотеки, такие, например, как Redux для React или Pinia для Vue. У традиционной реализации управления состоянием есть недостатки. Store в таком варианте является частью скрипта страницы, и его данные при её перезагрузке теряются. Кроме того, если нам в приложении нужно организовать управление отображением контента в нескольких окнах браузера, оказывается, что традиционный Store не может этого обеспечить.

    habr.com/ru/articles/884418/

    #indexeddb #dexie #store #реактивность #модульное_тестирование #оффлайнприложения #vitest #testinglibrary #вебразработа

  2. We've been working toward deprecating GTest for our testing library in favor of our in-house JTest testing library. J3ML our 3D math library is the current target for rewriting our unit tests to utilize JTest.

    #C++ #TestingLibrary #GTest #GameDev #UnitTesting

  3. Has anyone here switched a codebase from React to Preact?

    I found switching the libraries themselves straightforward, but updating the test suite from React Testing Library to Preact Testing Library has me stumped - tests failing for reasons that are mysterious to me. At this point I'm keen to find anyone else who's attempted the same thing to compare notes...

    #Preact #React #TestingLibrary

  4. Added tests to Tram-Lite, using 🎉

    In the past, I've usually leaned on and but even for this super simple library, Cypress was easy, incredibly fast, and better reflects the actual behavior of the browser.

    I understand for libraries it feels like unit-tests should be the go to, but over time I've realized that e2e forces you to put your library in real scenarios, rather than fake / idealized scenarios that might not happen.

  5. @deutrino
    @peyremorgan the best thing to do is to have #e2e tests which use the #accessibility features to verify functionality.

    See: #Cypress #testingLibrary testing-library.com/docs/cypre

    You don't get to see your page, but then neither do your sightless users.

    Best of all, you can run them automatically everytime you make a change to quickly confirm you are still complying!

  6. It’s so nice that Playwright has Testing Library style locators that actually work with Shadow DOM. One of the defining factors for us to choose Playwright over Cypress (the other being performance).

    #Playwright #TestingLibrary #WebComponents #ShadowDOM

  7. @[email protected] One of the things that helped me learn was testing my components (and forms, and pages) in using : storybook.js.org/blog/test-com.

    In order to test effectively, I needed to be sure to associate components together properly and use the correct roles, etc. I got good components, good tests, good documentation, and learned all at the same time. win win win win. :)

  8. I’m a from currently working for on their product. I’m a big fan of and . I’m always trying to learn more about and

    Some other hashtags im interested in: