Skip to content

Conversation

@ashearin
Copy link
Member

@ashearin ashearin commented Sep 20, 2024

Description

Adding e2e tests using testscript package.

There are commented out tests/lines in different files for failures that weren't expected and were not a quick fix. I attempted to record the failure reason, so if you have more context on a failure or know how to fix the issue please lmk. Otherwise a follow on issue will be created for each.

Also made an update to the way the root cmd is called, as it was needed for this test package.

These tests can be run as part of the general 'go test' cmd, but I added tasks in the task file and Makefile to run only the e2e and unit tests.

Fixes #121

References (More info on testscript)

@ashearin ashearin self-assigned this Sep 20, 2024
@ashearin ashearin requested a review from a team as a code owner September 20, 2024 20:36
@ashearin ashearin linked an issue Sep 20, 2024 that may be closed by this pull request
@ashearin ashearin marked this pull request as draft September 20, 2024 20:36
@ashearin ashearin changed the title Draft: integration testing of functionality feat: integration testing of functionality Sep 20, 2024
@ashearin ashearin force-pushed the 121-intergration-testing-of-functionality branch from 7cf0605 to 8470f22 Compare September 25, 2024 19:30
@ashearin ashearin marked this pull request as ready for review October 1, 2024 18:38
@ashearin ashearin force-pushed the 121-intergration-testing-of-functionality branch from 09a753b to cf43a8e Compare October 2, 2024 01:14
Copy link
Member

@idunbarh idunbarh left a comment

Choose a reason for hiding this comment

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

Wow! This is a really great addition to the project. Thanks for putting this together!

@ashearin ashearin force-pushed the 121-intergration-testing-of-functionality branch from cf43a8e to f82991f Compare October 2, 2024 14:47
@ashearin ashearin changed the title feat: integration testing of functionality test: integration testing of functionality Oct 2, 2024
@jhoward-lm
Copy link
Contributor

jhoward-lm commented Oct 2, 2024

For the revive confusing-naming linter issue, I think it's ok to add the following to .golangci.yml under linter-settings:revive:rules:

      - name: confusing-naming
        exclude: [TEST]

Unless you'd prefer to just rename the method in internal/pkg/client/oci/internal_test.go to something like CreateTestRepo or whatever sounds good

@ashearin ashearin force-pushed the 121-intergration-testing-of-functionality branch from b59dcbc to 5078ac6 Compare October 2, 2024 21:43
Copy link
Contributor

@jhoward-lm jhoward-lm left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@ashearin ashearin merged commit e0d0c9e into main Oct 7, 2024
@ashearin ashearin deleted the 121-intergration-testing-of-functionality branch October 7, 2024 16:24
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.

Intergration testing of functionality

5 participants