Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Separate tests into node and browser + airtap + levelup integration tests #47

Merged
merged 6 commits into from
May 28, 2018

Conversation

ralphtheninja
Copy link
Member

No description provided.

@ralphtheninja
Copy link
Member Author

Will need proper setup of sauce labs before adding test-browsers script.

test-browser.js Outdated
skipRepairTest: true,
skipErrorIfExistsTest: true,
skipDestroyTest: true
})
Copy link
Member Author

Choose a reason for hiding this comment

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

This code came from test.js, but using level-packager/abstract/test instead.

})
})

test('teardown', testCommon.tearDown)
Copy link
Member Author

Choose a reason for hiding this comment

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

The rest was copied over from level-js/test/levelup-test.js

@vweevers
Copy link
Member

I didn't see where you were going at first. It's coming together now :) Nice work

@ralphtheninja
Copy link
Member Author

I didn't see where you were going at first. It's coming together now :) Nice work

Aye, sorry. Not always easy to convey what's in your head. I've been thinking about this some more and I'll continue on packager today and leave this hanging for a bit.

@ralphtheninja ralphtheninja changed the title separate tests into node and browser + airtap + levelup integration tests [wip] separate tests into node and browser + airtap + levelup integration tests May 28, 2018
@ralphtheninja
Copy link
Member Author

Waiting for a new minor on level-packager and then I can finish this off.

@ralphtheninja ralphtheninja changed the title [wip] separate tests into node and browser + airtap + levelup integration tests Separate tests into node and browser + airtap + levelup integration tests May 28, 2018
@vweevers
Copy link
Member

@ralphtheninja can you explain the nonPersistent option in https://github.com/Level/packager/blob/master/abstract/db-values-test.js?

I must be missing something: if nonPersistent defaults to false, where does the data come from?

@ralphtheninja
Copy link
Member Author

@ralphtheninja
Copy link
Member Author

ralphtheninja commented May 28, 2018

I must be missing something: if nonPersistent defaults to false, where does the data come from?

If the db is persistent (i.e. not memdown), the values are in the db when it's closed. So no need to batch the data. This is what I meant by that the tests are not independent. E.g. previous tests write test1, test2 and test3 here https://github.com/Level/packager/blob/master/abstract/base-test.js#L9-L35

@ralphtheninja
Copy link
Member Author

@vweevers Are you cool with the latest two commits after your review?

@ralphtheninja ralphtheninja mentioned this pull request May 28, 2018
@ralphtheninja ralphtheninja merged commit 9233930 into master May 28, 2018
@ralphtheninja ralphtheninja deleted the tests branch May 28, 2018 23:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants