testfixtures
Shynet
testfixtures | Shynet | |
---|---|---|
4 | 21 | |
1,047 | 2,814 | |
1.0% | - | |
6.3 | 6.7 | |
7 days ago | 16 days ago | |
Go | Python | |
MIT License | Apache License 2.0 |
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
Shynet
- Shynet: Modern, privacy-friendly, web analytics, without cookies or JavaScript
-
It Took Me a Decade to Find the Perfect Personal Website Stack – Ghost+Fathom
+1 on shynet! I use it for my personal website and my blog, and it's been working great.
I got it up and running with Podman, so no need to install and run the Docker daemon. I also fixed SQLite support [1], so no need for an additional DB server.
I analyzed available open-source web analytics tools [2] and AFAIK there is simpler solution for web analytics that doesn't involve a third party.
[1] https://github.com/milesmcc/shynet/issues/208
[2] https://blog.fidelramos.net/software/privacy-respecting-self...
-
Recommendations for self-hosted Google Analytics alternatives?
I like shynet
-
Ask HN: Any alternatives to Google Analytics that don't require cookies?
I am using shynet for a while now. Really all I need to know :)
https://github.com/milesmcc/shynet
-
Why you should remove Google Analytics from your website
There's also Shynet.
-
Show HN: Sudopad – Private link sharing board for friends
Oh that is actually shynet self hosted analytics which is privacy friendly. https://github.com/milesmcc/shynet
But I think I'll just remove it for now.
- Please name some open source projects which are collecting small user analytics metrics and how
- Google Analytics declared illegal in the EU.
-
Ask HN: Good open source alternatives to Google Analytics?
Shynet: https://github.com/milesmcc/shynet
The goal is to provide, privacy-friendly, and detailed web analytics that works without cookies or JS. And it's completely open source.
Full disclosure: I am the primary maintainer.
What are some alternatives?
go-vcr - Record and replay your HTTP interactions for fast, deterministic and accurate tests
Plausible Analytics - Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
Hamcrest - Hamcrest matchers for the Go programming language
Umami - Umami is a simple, fast, privacy-focused alternative to Google Analytics.
ginkgo - A Modern Testing Framework for Go
Open Web Analytics - Official repository for Open Web Analytics which is an open source alternative to commercial tools such as Google Analytics. Stay in control of the data you collect about the use of your website or app. Please consider sponsoring this project.
GoSpec - Testing framework for Go. Allows writing self-documenting tests/specifications, and executes them concurrently and safely isolated. [UNMAINTAINED]
flask-profiler - a flask profiler which watches endpoint calls and tries to make some analysis.
assert - :exclamation:Basic Assertion Library used along side native go testing, with building blocks for custom assertions
Matomo - Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
dbcleaner - Clean database for testing, inspired by database_cleaner for Ruby
GoatCounter - Easy web analytics. No tracking of personal data.