testcontainers-node
moq
testcontainers-node | moq | |
---|---|---|
27 | 16 | |
1,716 | 1,775 | |
5.8% | - | |
8.4 | 3.6 | |
13 days ago | 19 days ago | |
TypeScript | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
testcontainers-node
-
Multiple MongoDB Databases on Spring Boot
To be able to test for multiple databases, I recommend you using Testcontainers. That's my configuration to start the container:
-
Show HN: I open-sourced the in-memory PostgreSQL I built at work for E2E tests
I don't get it either. Why not use something like https://testcontainers.com/?
- Utilizando Testcontainers para Testes de Integração com NestJS e Prisma ORM
- Testcontainers
-
Rust Tooling: 8 tools that will increase your productivity
Testing with added infrastructure can be quite tricky. testcontainers aims to solve this by providing an open-source framework for providing local, lightweight containers for your application that can be immediately thrown away after use. It also has a Rust SDK!
-
Run and test DynamoDB applications locally using Docker and Testcontainers
This is a good start. But DynamoDB Local is a great fit for Testcontainers which "is an open source framework for providing throwaway, lightweight instances of databases, message brokers, web browsers, or just about anything that can run in a Docker container."
- API completa em Golang - Parte 7
- We built our customer data warehouse all on Postgres
-
Quarkus : Greener, Better, Faster, Stronger
Devservices supports the automatic provisioning of unconfigured third party services in development and test mode. They can be provided by extension leveraging (usually) TestContainer library.
-
The day I started believing in Unit Tests (2023)
I hadn’t heard of Test Containers[1], but it looks really useful - thanks for the rec.
[1] https://testcontainers.com/
moq
- vektra/mockery has fully released the "packages" feature! This blog explains what it is and how it works.
- Why elixir over Golang
-
Is gomock still maintained and recommended?
``` https://github.com/matryer/moq
-
How do you write/generate mocks for testing?
Currently trying out https://github.com/matryer/moq for the first time, and quite positive so far. Haven't pushed it enough yet to give a real opinion.
-
gomock giving me a hard time
I like moq much better than gomock. Much simpler and easier to work with.
-
how to mock DBs
Just replaced mockery generated mocks with https://github.com/matryer/moq Alot cleaner imo at least for me
- Testify Mocking conundrums
-
Can someone please comment on this mock example from Jon Calhoun's post on DDD?
btw, you can avoid making such mocks manually by using https://github.com/matryer/moq, which will generate such mocking code for you
-
How do you control behaviour in mocked interface ?
I like the way of matryer/moq a lot. Basically, it generates a func for each of the methods of an interface, therefore the behaviour is clear to everyone without too much abstraction.
-
What mocking framework do you prefer?
This one is easy to use, simple, powerful and idiomatic https://github.com/matryer/moq
What are some alternatives?
nestjs-testing - Testing tutorial using NestJs
gomock - GoMock is a mocking framework for the Go programming language.
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
mockery - A mock code autogenerator for Go
jest - Delightful JavaScript Testing.
Testify - A toolkit with common assertions and mocks that plays nicely with the standard library
mocha - ☕️ simple, flexible, fun javascript test framework for node.js & the browser
NSubstitute - A friendly substitute for .NET mocking libraries.
Cucumber.js - Cucumber for JavaScript
counterfeiter - A tool for generating self-contained, type-safe test doubles in go
TestCafe - A Node.js tool to automate end-to-end web testing.
GORM - The fantastic ORM library for Golang, aims to be developer friendly