-
Notifications
You must be signed in to change notification settings - Fork 7
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
Pull out relevant tests from interface-ipfs-core #5
Comments
@achingbrain @lidel https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/test/interface.spec.js seems to be empty (had it's only line, If there are no tests in that package, where should I look for moving old |
@SgtPooki : do you have clarity now on where the relevant tests are? |
@BigLep not yet |
When running tests using The complete test suite is imported: import * as tests from 'interface-ipfs-core' each member of tests is part of the test suite, you either run all the tests in that suite: // test ipfs.repo.* commands
tests.repo(commonFactory) ..or you skip some of the tests in the suite because there's been a divergence in the implementations: // test root commands, e.g. ipfs.add, ipfs.cat, etc
tests.root(commonFactory, {
skip: [
{
name: 'should add with mode as string',
reason: 'TODO not implemented in go-ipfs yet'
},
{
name: 'should add with mode as number',
reason: 'TODO not implemented in go-ipfs yet'
},
//... etc Hopefully that helps. |
Thanks that helps. |
@SgtPooki : My general perspective is we should make things no worse. Whatever was skipped previously can stay skipped. (I don't expect any disagreement there.) It looks like though that you have some tests that were passing in interface-ipfs-core but are not passing in js-kubo-rpc-client? Is that right? Do we have any insight into why that is occurring? |
@BigLep Most of the reasons these are failing are due to dependency variations between the Others are less obvious:
I'm discovering more as I go, but all the changes I've made thus far are at master...52-remove-tests-that-are-skipped My current plan is to continue what I've been doing: fixing simple/obvious/trivial failures, and spend no more than 30 minutes on failures I can't resolve myself. There are 708 tests ran in |
Also, there may be a number of tests that could* have been enabled months/years ago that weren't: 565ed08 I'm also testing those when doing so isn't time-prohibitive. |
one particularly troublesome library that i'm now officially marking as broken during transition has to do with using the
I imagine @achingbrain or @hugomrdias could probably provide insight on these, but I'm moving on for now. |
per discussion in kubo standup today: I'm trying to ensure deps are synced in kubo-rpc-client to the deps resolved when running interface-http-go tests from
|
Using |
Update of status provided in original tracking issue for kubo rpc client work: ipfs/kubo#9125 (comment) |
Originally from ipfs/kubo#9125
Not an action item I feel comfortable deciding upon, so I'll leave this for @aschmahmann and @lidel for now.Kubo RPC Client should have its own tests, stripped out from interface-ipfs-core. And we should only bring over the tests that are applicable for Kubo's supported RPC calls. -- ipfs/kubo#9125 (comment)
[ ] Skip (but leave) tests that were being skipped in interface-ipfs-core #52[ ] Fix tests, or skip withbrokenDuringKuboRpcClientMigration
if significant effort is required #53The text was updated successfully, but these errors were encountered: