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

Create mock infrastructure for implementation testing #37

Open
magik6k opened this issue Jul 12, 2018 · 1 comment
Open

Create mock infrastructure for implementation testing #37

magik6k opened this issue Jul 12, 2018 · 1 comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature kind/test Testing work status/ready Ready to be worked

Comments

@magik6k
Copy link
Member

magik6k commented Jul 12, 2018

It would be amazing to be able to have a test utility cobbling blockstore/resolver/... together for the purpose of testing ipld modules.

For git a test would add a git repo objects to that and test all the things that are currently rather hard to do, like path traversal / resolving.

@Stebalien Stebalien added kind/enhancement A net-new feature or improvement to an existing feature kind/test Testing work labels Jul 13, 2018
@Stebalien
Copy link
Member

I tend to write interface tests like this by:

  • Adding a test package.
  • Exposing a single SubtestAll(t *testing.T) function.
  • Have all implementations test against it.

@Stebalien Stebalien added the status/ready Ready to be worked label Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature kind/test Testing work status/ready Ready to be worked
Projects
None yet
Development

No branches or pull requests

2 participants