testfixtures
yadm
Our great sponsors
testfixtures | yadm | |
---|---|---|
4 | 81 | |
1,045 | 4,761 | |
2.7% | - | |
6.6 | 2.4 | |
24 days ago | 2 months ago | |
Go | Python | |
MIT License | GNU General Public License v3.0 only |
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
yadm
- Yadm: Yet Another Dotfiles Manager
- YADM: Yet Another Dotfiles Manager
-
Ask HN: What Underrated Open Source Project Deserves More Recognition?
Everyone hand-rolls their own dotfile management system, but YADM already does everything you need:
https://yadm.io/
- Yet Another Dotfiles Manager
- Tell HN: My Favorite Tools
-
Dotfiles Matter
I've been working around this using tools built on top of git like [yadm](https://github.com/TheLocehiliosan/yadm) and relying on `ls-files` to list all my tracked dotfiles and their paths.
Still having everything in one place would make things much simpler. Great idea!
-
System settings that aren’t in System Settings
I wonder if the program i use to manage my dotfiles could help manage your scripts and extend your setup to all your desktops? Its called yadm (https://yadm.io/) it makes it so easy to have a laptop and a desktop or two.
-
The right way to keep config files synced across devices?
I really like that one but still prefer yadm because you can just edit your files as usual and then yadm add them wherever you are.
-
Just got a new M2 Pro after my 2016 became outdated. What are your first steps to setting up a new computer?
If you haven’t already, this is the time to install a tool like yadm and get your computer configuration into version control. Your command-line tools can be managed by yadm directly, your system settings can mostly be managed with a yadm bootstrap script that runs things like defaults write, and the software you install can be managed with a Brewfile that the yadm bootstrap script uses to install software with Homebrew. Don’t manually download Xcode, use xcodes to do it.
-
System 76 Linux script to set up a new PC including the personal profile and prefered software installs
I personally use YADM. It's basically a git repo on my home folder, that only tracks what I explicitly set. And you can setup bootstraps to do what you said, install a bunch of stuff or make custom changes. In it's essence, it's a set of bash/sh files that are executed sequentially when you launch the yadm bootstrap command.
What are some alternatives?
go-vcr - Record and replay your HTTP interactions for fast, deterministic and accurate tests
GNU Stow - GNU Stow - mirror of savannah git repository occasionally with more bleeding-edge branches
Hamcrest - Hamcrest matchers for the Go programming language
chezmoi - Manage your dotfiles across multiple diverse machines, securely.
ginkgo - A Modern Testing Framework for Go
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
GoSpec - Testing framework for Go. Allows writing self-documenting tests/specifications, and executes them concurrently and safely isolated. [UNMAINTAINED]
dotbot - A tool that bootstraps your dotfiles ⚡️
assert - :exclamation:Basic Assertion Library used along side native go testing, with building blocks for custom assertions
homesick - Your home directory is your castle. Don't leave your dotfiles behind.
dbcleaner - Clean database for testing, inspired by database_cleaner for Ruby
Ansible - Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.