testfixtures
gutenberg
Our great sponsors
testfixtures | gutenberg | |
---|---|---|
4 | 106 | |
1,046 | 12,673 | |
2.8% | 1.9% | |
6.3 | 8.3 | |
6 days ago | 1 day ago | |
Go | Rust | |
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.
testfixtures
-
How to mock database calls
I'm the author of https://github.com/go-testfixtures/testfixtures, a library written to make it easier to write tests with a real database and test data. You might want to use it together with docker-compose, for example.
-
Integration tests with Go and testcontainers
To solve the problem we will use testfixtures. Create a folders fixtures и fixtures/storage and put a file users.yaml inside:
-
Mocking database or use a test database
A lot of good suggestions here, I would also take a look at go-testfixtures which allows you to create some simple yaml-based fixture data to use with unit testing. It's quick and easy, but yes can get unwieldy the more you add.
-
Ask HN: What are some tools / libraries you built yourself?
I built an alternative to Make written in Go that is simpler to use and cross-platform: https://taskfile.dev/
Also, a library to write tests with databases for Go: https://github.com/go-testfixtures/testfixtures
gutenberg
-
Replatforming from Gatsby to Zola!
So after shopping around a bit I found a simple, dependency-less static site generator called Zola. The lack of dependencies sounded very attractive after all the headaches trying to update my Gatsby modules. I wanted to give Zola a try and see what tradeoffs I would need to make coming form a React-based framework to this Rust-based generator.
-
Ask HN: What's the simplest static website generator?
I think you're thinking about Zola: https://github.com/getzola/zola
But yes, if I were to recommend something, it'd be Zola given that there's just one executable that you need to run and there's absolutely no setup required.
-
Ask HN: Looking for lightweight personal blogging platform
If I were to start again from scratch, I'd likely use Zola as SSG (https://www.getzola.org/)
- Zola – Single binary static site generator
- Zola
-
Ask HN: So, static website generators and hosting in 2023/24. What's out there?
I've used Zola (https://github.com/getzola/zola) for a static project homepage a few years ago to showcase examples with a simple description and a wasm app embedded in the page, it worked perfectly for me and the docs was clear on how to use it. It was very easy to set up along with a GitHub action to automatically update the wasm binaries when needed. It is definitely a tool I keep in my mental toolbox as a good default.
- Zola: Your one-stop static site engine
-
Gojekyll – 20x faster Go port of jekyll
I'm currently learning https://www.getzola.org/.
It's more manual than idy like but it's gonna be for a small personal and work website so I don't mind much.
It's super fast.
Doesn't seem to fit your use casr but still.
-
The right way to build a dynamic personal website for a physics student?
(Note: that list is overwhelming; you don't need to go through it. Order by popularity and look at the top 3-5 at most. Hugo, Jekyll, Gatsby... Personally I'm using Zola [ https://www.getzola.org/ ] for a couple of sites, but that's just me.)
What are some alternatives?
go-vcr - Record and replay your HTTP interactions for fast, deterministic and accurate tests
Hugo - The world’s fastest framework for building websites.
Hamcrest - Hamcrest matchers for the Go programming language
eleventy 🕚⚡️ - A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
ginkgo - A Modern Testing Framework for Go
Nikola - A static website and blog generator
GoSpec - Testing framework for Go. Allows writing self-documenting tests/specifications, and executes them concurrently and safely isolated. [UNMAINTAINED]
Rocket - A web framework for Rust.
assert - :exclamation:Basic Assertion Library used along side native go testing, with building blocks for custom assertions
Sapper - A lightweight web framework built on hyper, implemented in Rust language.
dbcleaner - Clean database for testing, inspired by database_cleaner for Ruby
hakyll - A static website compiler library in Haskell