Mocking XORM #1276
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1276
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is there a mocking library that works well with XORM. I've been trying to get
gopkg.in/DATA-DOG/go-sqlmock.v1
to work but it's such a hassle to even get it running. When I try to mock complicated queries it just blows up and it's saying the sql string doesn't match despite it matching... Basically, I'm wondering what other people are doing to test without actually having to spin up a test database. That just seems wrong. Thanks!Gitea are using xorm and use
gopkg.in/testfixtures.v2
to do the unit tests. Maybe that will help you.