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

Adding initial tests + CI #7

Merged
merged 2 commits into from
Dec 26, 2018
Merged

Adding initial tests + CI #7

merged 2 commits into from
Dec 26, 2018

Conversation

robscott
Copy link
Contributor

Not particularly pretty, but this gets us some basic tests + CI.

context: org-global
filters:
tags:
only: /^testing-.*/
Copy link
Contributor

Choose a reason for hiding this comment

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

why only on testing tags? I kind of feel like we should test all PRs and/or branches. thoughts?

cv.validateResources(expected)

assert.Len(t, cv.Failures, 0)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like these tests could all be table tests using subtests. Thoughts?


conf "github.com/reactiveops/fairwinds/pkg/config"
types "github.com/reactiveops/fairwinds/pkg/types"
"github.com/stretchr/testify/assert"
Copy link
Contributor

Choose a reason for hiding this comment

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

this assert library is awesome. i haven't used it before. I love that is has mocks. I want to try those out! One of my favorite things is to AssertCalled.

@robscott robscott merged commit ff7c459 into master Dec 26, 2018
@robscott robscott deleted the rs/initial-tests branch December 26, 2018 22:23
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