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

Cleanup tests #969

Merged
merged 3 commits into from Nov 12, 2018
Merged

Conversation

caseydavenport
Copy link
Member

Description

Had a couple of hours on a plane so thought I'd make some improvements here.

PR turned out quite a bit longer than I had hoped... but I think it has some good stuff in it.

  • Split out tests which require a datastore into an "fv" target, so its easier to run a "fast" subset when developing.
  • Standardize on Ginkgo - there were a few tests not using it.
  • Fixup a number of suites which didn't have logging configured properly.
  • Fix some copy/paste errors I spotted where report files had the same name across suites.

make ut now takes about 20 seconds on my machine.
make fv still takes > 5min.

make test runs both ut and fv.

Todos

  • Tests
  • Documentation
  • Release note

Release Note

None required

Copy link
Member

@fasaxc fasaxc left a comment

Choose a reason for hiding this comment

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

SGTM. Looks like you've got a CI failure though.

Are you sure you want to standardise on Ginkgo? I've been allowing go test tests to go in and I think we've worked out that they're compatible. I'd like to use more go test tests over time; ginkgo has too steep a learning curve. OTOH, it'a lot of work to got from ginkgo to go test everywhere :-(

@caseydavenport
Copy link
Member Author

Are you sure you want to standardise on Ginkgo? I've been allowing go test tests to go in and I think we've worked out that they're compatible. I'd like to use more go test tests over time; ginkgo has too steep a learning curve. OTOH, it'a lot of work to got from ginkgo to go test everywhere :-(

It seems to be that we've already standardized on Ginkgo, based on the number of tests we have written in it. I think it's valuable to use a single framework - not against making an official switch off of Ginkgo, but for now I think it's our default, and I'd rather not have two test frameworks where we could have one.

@caseydavenport caseydavenport merged commit 31ebcc9 into projectcalico:master Nov 12, 2018
@caseydavenport caseydavenport deleted the cleanup-tests branch November 12, 2018 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants