Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up integration tests #6

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Set up integration tests #6

merged 3 commits into from
Nov 21, 2023

Conversation

corbadovych
Copy link
Contributor

No description provided.

"github.com/stretchr/testify/require"
)

func initClient(t *testing.T) corbado.SDK {
Copy link
Contributor

Choose a reason for hiding this comment

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

how about we name it sdk() and daisy chain it in the actual tests?

@@ -0,0 +1,28 @@
//go:build integration

package integration_test
Copy link
Contributor

Choose a reason for hiding this comment

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

subdirectories per group/tag?

})

require.NoError(t, err)
assert.NotEmpty(t, rsp.Data.EmailLinkID)
Copy link
Contributor

Choose a reason for hiding this comment

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

should discuss this in whatsapp: do we want to assert on every field (lots of work but will catch the most bugs) or do we skips this and make the asserts easy aka "no error and 'some' data". maybe check the others, i think stripe is doing the first

@corbadovych corbadovych merged commit ee8d47d into main Nov 21, 2023
3 checks passed
@corbadovych corbadovych deleted the integration-tests branch November 21, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants