Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Functional tests for persistence features. #137

Closed
wants to merge 139 commits into from
Closed

Conversation

danilvpetrov
Copy link
Collaborator

axbolt package removed in this PR. It basically contains only db tests in axtest package.

Danil Petrov added 30 commits June 14, 2018 00:38
@codecov-io
Copy link

codecov-io commented Aug 28, 2018

Codecov Report

Merging #137 into master will increase coverage by 19.34%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #137       +/-   ##
===========================================
+ Coverage   31.14%   50.49%   +19.34%     
===========================================
  Files          72       74        +2     
  Lines        2530     2642      +112     
===========================================
+ Hits          788     1334      +546     
+ Misses       1718     1256      -462     
- Partials       24       52       +28
Impacted Files Coverage Δ
src/axmysql/projection/offsetstore.go 89.04% <ø> (ø)
src/axmysql/messagestore/append.go 79.61% <100%> (+79.61%) ⬆️
src/axmysql/projection/readmodel.go 0% <0%> (ø)
src/axmysql/messagestore/stream.go 77.5% <0%> (+77.5%) ⬆️
src/axmysql/saga/keyset.go 81.81% <0%> (+81.81%) ⬆️
src/axmysql/messagestore/store.go 83.33% <0%> (+83.33%) ⬆️
src/axmysql/saga/crud.go 94.48% <0%> (+94.48%) ⬆️
src/axmysql/saga/snapshot.go 94.66% <0%> (+94.66%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2dcf51...b890ae5. Read the comment docs.

Copy link
Owner

@jmalloc jmalloc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some simple housekeeping things to fix up:

  • Naming of Describe blocks. These should always refer to the actual struct, function or method that is being described.

  • Exported functions in test suites. I wasn't sure about these - can they be unexposed?

I haven't dug into the test behaviour itself yet.

.travis.yml Outdated
@@ -4,7 +4,7 @@ go: '1.10'
addons:
mariadb: '10.2'
env:
- AX_MYSQL_DSN="travis@tcp(127.0.0.1:3306)/ax"
- AX_MYSQL_DSN="travis@tcp(127.0.0.1:3306)/ax" AX_BOLT_DB="test.db"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still belong in this branch?

glide.yaml Outdated
@@ -19,3 +19,5 @@ import:
- package: golang.org/x/sync
subpackages:
- errgroup
- package: github.com/coreos/bbolt
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this?

next = next + VALUE(next)`,
n,
next = next + ?`,
n, n,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment here that this is a workaround for the MariaDB issue pls.

. "github.com/onsi/ginkgo"
)

var _ = Describe("MessageStore", func() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This name should refer to the subject under test -- so just Store in this case.

}

fn(
"MessageStore",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here -- Store instead of MessageStore.

}

fn(
"Projection Offset Store",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too.

. "github.com/onsi/ginkgo"
)

var _ = Describe("CRUD Repository", func() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRUDRepository

}

fn(
"CRUD Repository",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRUDRepository


// InsertOffset inserts an offset into a projection offset store.
// The value of c will be increased by the internal call of repo.IncrementOffset
func InsertOffset(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be exposed?

)

// InsertMappingKeys inserts saga mapping keys into the repository
func InsertMappingKeys(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exposed?

@jmalloc jmalloc changed the title Ax db tests Functional tests for persistence features. Aug 28, 2018
@jmalloc
Copy link
Owner

jmalloc commented May 28, 2019

Closing this, as discussed. All future work will be for Dogma, not Ax.

@jmalloc jmalloc closed this May 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants