venom VS dockertest

Compare venom vs dockertest and see what are their differences.

venom

🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions (by ovh)

dockertest

Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. (by ory)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
venom dockertest
6 48
974 3,960
2.5% 1.8%
7.2 4.5
about 14 hours ago 22 days ago
Go Go
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

venom

Posts with mentions or reviews of venom. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-21.
  • Ask HN: What's your favorite software testing framework and why?
    15 projects | news.ycombinator.com | 21 May 2023
    You can also load fixtures in database directly, work with Kafka queues both as a producer (e.g. write an event to a Kafka queue, wait a few seconds and see that it was consumed by the service you test, and that some side effects can be observed) or as a consumer (e.g. make sure after an HTTP call, an event was correctly pushed to a queue), or even read a mailbox in IMAP to check that your service correctly send an email.

    It's a bit rough on the edges sometimes, but I'd never go back on writing integration tests directly in my programming language. Declarative is the way to go.

    [1]: https://github.com/ovh/venom

  • Easy Integration Testing with Venom!
    1 project | dev.to | 7 Nov 2022
    To write and run our integration tests, we'll use Venom. Venom is a tool created and made open-source by OVHcloud: https://github.com/ovh/venom
  • Venom: Manage and run your integration tests with efficiency
    1 project | news.ycombinator.com | 10 Oct 2022
  • Show HN: Step CI – API Testing and Monitoring Made Simple
    11 projects | news.ycombinator.com | 10 Oct 2022
    From my experience, generated tests are worthless for anything more serious than smoke tests. I prefer working with no tests than automated tests, I feel they give you a false sense of confidence.

    The Step CI engine itself looks good though. It looks like a cleaner, but less powerful version of a tool (open source, build in-house) we used when I worked at OVHcloud, Venom: https://github.com/ovh/venom

    Here's an example test file for the HTTP executor of Venom: https://github.com/ovh/venom/blob/master/tests/http.yml it's very close to Step CI format.

    I'd still use Venom because it's way more powerful (you have DB executors for example, so after executing a POST request you can actually check in DB that you have what you expect) and I prefer focusing on actually writing integration tests instead of generating them.

    Maybe this post sounds harsh (I feel it as I write it because I have strong feelings against test generation) but I think your approach is a good one for actually writing automated tests. Testing APIs declaratively like this has a great benefit: your tests work on an interface. You can migrate your API to a whole new stack and your tests remain the same. I did it multiple time at OVHcloud: one time migrating a huge API from a Go router to another (Gin->Echo), and another time migrating public APIs from a legacy, in-house Perl engine to a Go server.

  • Debugging with GDB
    13 projects | news.ycombinator.com | 21 Mar 2022
    I still struggle with GDB but my excuse is that I seldom use it.

    When I was studying reverse engineering though, I came across a really cool kit (which I've yet to find an alternative for lldb, which would be nice given: rust)

    I'd recommend checking it out, if for no other reason than it makes a lot of things really obvious (like watching what value lives in which register).

    https://github.com/hugsy/gef

    LLDB's closest alternative to this is called Venom, but it's not the same at all. https://github.com/ovh/venom

  • Do you write integration tests in go?
    3 projects | /r/golang | 7 Sep 2021
    We incorporated [Venom](https://github.com/ovh/venom) into our workflow. It's great for initiating and managing a suite of yaml based tests. It didn't work out of the box for us due to the heavily asynchronous nature of our system, but after a few additions, it has helped my team greatly. We were often afraid to make large changes to critical pieces of the system since a full regression test could take a week or so to check everything. Now it takes an hour.

dockertest

Posts with mentions or reviews of dockertest. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-27.
  • Testcontainers
    16 projects | news.ycombinator.com | 27 Feb 2024
    I am using https://github.com/ory/dockertest for tests, specifically for databases. Is there any advantage to use Testcontainers?
  • Level UP your RDBMS Productivity in GO
    5 projects | dev.to | 5 Dec 2023
    Now, let's run the tests. For this purpose, we are going to use dockertest, but test containers is also a good solution.
  • Golang testing using docker services via dockertest
    3 projects | dev.to | 3 Sep 2023
    During my path learning go so far I have come across some amazing libraries and utilites, one of my favourite for integration testing is dockertest.
  • How to start a Go project in 2023
    21 projects | news.ycombinator.com | 23 May 2023
    Things I can't live without in a new Go project in no particular order:

    - https://github.com/golangci/golangci-lint - meta-linter

    - https://goreleaser.com - automate release workflows

    - https://magefile.org - build tool that can version your tools

    - https://github.com/ory/dockertest/v3 - run containers for e2e testing

    - https://github.com/ecordell/optgen - generate functional options

    - https://golang.org/x/tools/cmd/stringer - generate String()

    - https://mvdan.cc/gofumpt - stricter gofmt

    - https://github.com/stretchr/testify - test assertion library

    - https://github.com/rs/zerolog - logging

    - https://github.com/spf13/cobra - CLI framework

    FWIW, I just lifted all the tools we use for https://github.com/authzed/spicedb

    We've also written some custom linters that might be useful for other folks: https://github.com/authzed/spicedb/tree/main/tools/analyzers

  • Beginner-friendly API made with Go following hexagonal architecture.
    5 projects | /r/golang | 21 May 2023
    I've used dockertest a bunch and it is really amazing.
  • How to unit test your database interactions with Docker
    4 projects | /r/golang | 24 Mar 2023
    Reminds me of https://github.com/ory/dockertest
  • When to mock and what to mock in a Web API?
    3 projects | /r/golang | 23 Mar 2023
    If your project is relatively simple and you can get away with recreating your scenarios against a real mock database and run other related services locally. It would be good to setup docker containers for your test scripts and write e2e tests. I believe e2e tests are harder but more useful in understanding/reasoning how users are impacted.
  • Don't Mock the Database
    3 projects | /r/golang | 9 Mar 2023
    Just a heads up, the repository in your comment is invalid, the correct link is https://github.com/ory/dockertest
  • Mocking database calls without a library?
    3 projects | /r/golang | 7 Feb 2023
    Don't mock. Use https://github.com/ory/dockertest to actually run tests against a dockerized DB.
  • Different SQL drivers for test and production
    2 projects | /r/golang | 16 Jan 2023
    Use a library like ory/dockertest to spin up a test database for integration tests. It's easy to use, and tests are still fast. It'll take a minute to download the mysql docker image the first time. But, once it's been downloaded, starting the db, running migrations, and running the tests is still pretty quick.

What are some alternatives?

When comparing venom and dockertest you can also consider the following projects:

godog - Cucumber for golang

testcontainers-go - Testcontainers for Go is a Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.

fake-gcs-server - Google Cloud Storage emulator & testing library.

stepci - Automated API Testing and Quality Assurance

mockaroo - Mock-A-🦘 (mock-aa-roo) a comprehensive HTTP/HTTPS interface mocking tool for all your development and testing needs!

gotestfmt - go test output for humans

steampipe - Zero-ETL, infinite possibilities. Live query APIs, code & more with SQL. No DB required.

gotestfmt - go test output for humans

go-sqlmock - Sql mock driver for golang to test database interactions

go-txdb - Immutable transaction isolated sql driver for golang

sqlc - Generate type-safe code from SQL