Top 23 Testing Open-Source Projects
:white_check_mark: The Node.js best practices list (September 2021)Project mention: A reflection about scalable project architectures | reddit.com/r/node | 2021-09-30
Regarding structure, check out node best practices, where structuring by component (aka structuring by feature or module) is recommended, so in node.js it's already known that structuring by type not scales well, disregarding of the project size.
📓 The UI component explorer. Develop, document, & test React, Vue, Angular, Web Components, Ember, Svelte & more!Project mention: Anyone knows the software here? | reddit.com/r/software | 2021-10-25
Looks like StoryBook
Then I added Jest to the project. And... guess what? It also needs this alias in its configuration to resolve it correctly and find my modules. And where Vite and Webpack used a fairly similar syntax, Jest uses a different.
👽 Open source API development ecosystem https://hoppscotch.ioProject mention: API client like Postman | reddit.com/r/selfhosted | 2021-10-25
I only know https://github.com/hoppscotch/hoppscotch for now, but was not exactly what I was looking for.
The PHP InterpreterProject mention: 78% of the web powered by PHP, 1% on PHP 8 | reddit.com/r/PHP | 2021-10-22
There was a proposal to change the default but the discussion have been abandoned: https://github.com/php/php-src/pull/3335
Run Linux Software Faster and Safer than Linux with Unikernels.
Node.js library to automate Chromium, Firefox and WebKit with a single APIProject mention: Has anyone here used Playwright? If so do you find it comparable to Cypress? | reddit.com/r/webdev | 2021-10-25
Has anyone here used Playwright? Just wondering if it's comparable to Cypress or has any fundamental missing features?
A browser automation framework and ecosystem.Project mention: After Almost 3 Years Of Development, Selenium v4.0.0 Was Finally Released | news.ycombinator.com | 2021-10-13
Now let's take a look at the entire test using PactumJS and mocha.
Another popular tool is Enzyme, but many believe that it can lead to bad testing practices. The main concern is that Enzyme offers extra utilities that allow you to test the internal workings of a component (e.g. read and set state of the component). The team at React tests React; therefore, there is no need for you to test React’s functionality such as state, componentDidMount, etc. The same goes for other libraries you may use.
But this commit broken the unit tests. I use Ava (the only test runner that allows for async tests, so I can write unit tests in my own language) and snapshots for testing the list structure in few unit tests, and somehow the snapshots differ before and after adding iterator to Lists. I still need to investigate why and try to create simple reproduction for this issue on GitHub avajs/ava#2811.
The PHP Unit Testing framework.Project mention: PHP global functions: how they affect code extensibility, testability and modularity | dev.to | 2021-09-29
Solution with dependency injection described above gives us opportunity to choose custom logger object. With the help of testing framework such as PHPUnit we can create stub object instead of regular logger object, which allows us to freely redefine or suppress object functionality for purposes of the test and also watch which methods on the logger object has been called from inside of tested module (mocking). Neither of these features can be achieved when implementing logging with a global function.
Scalable user load testing tool written in PythonProject mention: Can someone ELI5 me the benefits of using redis cache for woocommerce sites? | reddit.com/r/Wordpress | 2021-10-26
Learn Go with test-driven developmentProject mention: My journey to writing my blog in Go | dev.to | 2021-04-14
Go through Learn Go With Tests to learn how to test the code correctly in Go.
🐐 Simple and complete React DOM testing utilities that encourage good testing practices.Project mention: Getting Started with React Cosmos | dev.to | 2021-08-23
There are many ways to test component UIs and some testing frameworks help us achieve that, to mention but a few react-testing-library, where we write tests to check what a component has, for example, if we are testing a form component, we will write tests to check it a button is rendered, if there are input and/or select tags, etc and we usually see the results in our terminals but with React cosmos, we have a visual way to test our components (Visual TDD) which makes testing easier.
This week for my open source contribution I decided to tackle a bigger project and a slightly more complex issue. Last week, I removed commented code, this week I added some code. For my repository, I chose to fork Jasmine, and the issue involved adding some extra descriptions to an error message regarding "expectations" and asynchronous tasks in the Jasmine framework.
GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.Project mention: GoReplay - test your system with real data | reddit.com/r/programming | 2021-09-19
A toolkit with common assertions and mocks that plays nicely with the standard libraryProject mention: What mocking framework do you prefer? | reddit.com/r/golang | 2021-10-23
I just started getting fond of testify/mock
A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD - using C++11, C++14, C++17 and later (or C++03 on the Catch1.x branch)Project mention: Unit testing and mocking for c++ | reddit.com/r/cpp | 2021-10-19
I'm answering a question asked not from me. I've used both Google.Test and Catch2 and latter one feels much nicer. Sections from Catch2 just do not exist in other frameworks however they are super powerful. It has drawbacks like not having out of the box macros for setting up stuff once for all the runs of a test before a test is run with various parameters. See https://github.com/catchorg/Catch2/issues/1602 Integrating gmock should be easy as I've seen but not flawless. As I remember some extra work needs to be done so expectations are verified at end of sections? See https://github.com/matepek/catch2-with-gmock Google.Test doesn't support (or at least didn't when I last looked) some combination of type and value generators. Other than that, the slightly uglier syntax and lack of sections (which is pretty big) it's all good. Especially with gmock all integrated and delivered to you in one package.
Faker is a Python package that generates fake data for you. (by joke2k)
Most popular Mocking framework for unit tests written in JavaProject mention: JVM Testing Newsletter | June 2021 | dev.to | 2021-07-02
Mockito 3.11.* releases
What are some of the best open-source Testing projects? This list will help you:
Are you hiring? Post a new remote job listing for free.