ecommerce-microservices
mockery
ecommerce-microservices | mockery | |
---|---|---|
5 | 20 | |
164 | 5,682 | |
- | 2.4% | |
9.0 | 8.6 | |
about 2 years ago | 22 days ago | |
C# | Go | |
MIT License | BSD 3-clause "New" or "Revised" 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.
ecommerce-microservices
-
go-ecommerce-microservices: A practical e-commerce microservices, built with cqrs, event sourcing, vertical slice architecture, event-driven architecture.
I had some experience in c# with a similar approach, and here I tried to port it to Golang version. Currently, the c# version is more complete, but I try to enhance the go version over time. You can see the c# version also here, https://github.com/mehdihadeli/ecommerce-microservices.
- ποΈ ECommerce-Microservices: A practical e-commerce microservices sample, built with .Net Core, DDD, CQRS, and Vertical Slice Architecture.
- A practical e-commerce Microservices based on Domain Driven Design, Vertical Slice Architecture, CQRS pattern, Event Driven Architecture.
- GitHub - mehdihadeli/ecommerce-microservices: ποΈ A practical e-commerce Microservices based on Domain Driven Design, Vertical Slice Architecture, CQRS pattern, Event Driven Architecture.
- GitHub - mehdihadeli/ecommerce-microservices: A practical e-commerce Microservices based on Domain Driven Design, Vertical Slice Architecture, CQRS pattern, Event Driven Architecture.
mockery
-
I Write Tests in Go
I'm far too lazy to write mocks by hand in go. You can generate a mock for a given interface with mockery https://github.com/vektra/mockery
-
go-ecommerce-microservices: A practical e-commerce microservices, built with cqrs, event sourcing, vertical slice architecture, event-driven architecture.
Some of the features: - β Using Vertical Slice Architecture as a high level architecture - β Using Event Driven Architecture on top of RabbitMQ Message Broker with a custom [Event Bus](pkg/messaging/bus/) - β Using Event Sourcing in Audit Based services like [Orders Service](services/orders/) - β Using CQRS Pattern and Mediator Patternon top of Go-MediatR library - β Using Dependency Injection and Inversion of Controlon top of uber-go/fx library - β Using RESTFul api with Echo framework and using swagger with swaggo/swag library - β Using Postgres and EventStoreDB to write databases with fully supports transactions(ACID) - β Using MongoDB and Elastic Search for read databases (NOSQL) - β Using OpenTelemetry for collection Distributed Tracing with using Jaeger and Zipkin - β Using OpenTelemetry for collection Metrics with using Prometheus and Grafana - β Using Unit Test for testing small units with mocking dependent classes and using Mockery for mocking dependencies - β Using End2End Test and Integration Test for testing features with all of their real dependeinces using docker containers (cleanup tests) and testcontainers-go library
- Direction of mockery: absorb different styles of mocks into this project Β· vektra mockery Β· Discussion #671
-
Go: Write Mock Test cases using Mockery and
Read mockery documentation: https://vektra.github.io/mockery/
-
Mocking unexported interfaces?
https://github.com/vektra/mockery is the better mocking framework in my biased opinion. The Google maintainers for gomock seem to have neglected the project.
-
I want to contribute to open source but don't know where to start
There are some one liner changes you can implement in https://github.com/vektra/mockery
-
Is gomock still maintained and recommended?
When there's just one heavyweight dependency you're interacting with, perhaps a one-off stub/fake is simpler, but I would posit that auto-generated mocks via things like mockery + go:generate leave less test code to maintain vs. perhaps many stubs across the project.
-
vektra/mockery: v2.21.0 includes "packages" config section, allowing 5x faster mock generation and more fine-grained control over mocks
Please take a look at the documentation linked here, and the related discussion topic that spawned this.
-
Issue implementing interface method that returns another interface
As you can see, the package has a chained method Logical().Write() . Since I want to create tests for PublicFunctionIWantToTest, I want to pass down all the functionality as interface so that I can use https://vektra.github.io/mockery/ to create mocks for it.
- FEEDBACK REQUESTED: Deprecation of automatic interface discovery Β· Discussion #549 Β· vektra/mockery
What are some alternatives?
e-commerce-microservices - ποΈ A practical e-commerce Microservices based on Domain Driven Design, Vertical Slice Architecture, CQRS pattern, Event Driven Architecture. [Moved to: https://github.com/mehdihadeli/ecommerce-microservices]
gomock - GoMock is a mocking framework for the Go programming language.
awesome-dotnet-tips - Curated list of awesome tips and tricks, resources, videos and articles in .net, software architecture, microservice and cloud-native
counterfeiter - A tool for generating self-contained, type-safe test doubles in go
ecommerce-microservices-sample - ποΈ A practical e-commerce microservices sample, built with C#, .Net Core, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies. [Moved to: https://github.com/mehdihadeli/ecommerce-microservices]
minimock - Powerful mock generation tool for Go programming language
TaskoMask - Task management system based on .NET 6 with Microservices, DDD, CQRS, Event Sourcing and Testing Concepts
go-sqlmock - Sql mock driver for golang to test database interactions
Airline-Microservices - Airline Microservice is a simple Airline application for online reserving flight ticket. This application based on different software architecture and technologies like .Net Core, CQRS, DDD, Vertical Slice Architecture, Docker, kubernetes, tye, masstransit, RabbitMQ, Grpc, yarp reverse proxy, Identity Server, Redis, SqlServer, Entity Framework Core, Event Sourcing and different level of testing.
hoverfly - Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
store-modular-monolith - π Implementing an βonline storeβ modular monolith application with domain-driven design and CQRS with using in-memory message broker based on .Net Core.
moq - Interface mocking tool for go generate