Skip to content

[MPT] Test partitioning in order not to ignore long running tests #18

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

Merged

Conversation

AlanVerbner
Copy link
Contributor

Description

In order to avoid long running tests to be ignored (or bother local executions) we decided to split them in two different configurations. Test can be run as:

  • sbt test will run faster tests
  • sbt it:test will run benchmark and integration tests that take more time to run

it configuration was based on Test to be able to share ObjectGenerators and maybe any other test utils class. Please let me know if you don't like it.

I also created an EphemDataSource as after several discussions this will be needed besides tests. We can create a custom for testing purposes in the future. Will add tests for this and IodbDataSource once this PR is merged.

Copy link
Contributor

@whysoserious whysoserious left a comment

Choose a reason for hiding this comment

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

Works as expected. Test durations on my machine:
sbt test: 2 seconds, 978 milliseconds
sbt it:test: 40 seconds, 698 milliseconds
👍

Copy link
Contributor

@whysoserious whysoserious left a comment

Choose a reason for hiding this comment

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

It looks like you need to merge phase/2/txHashValidation to this branch and fix scalastyle errors ;)

@AlanVerbner
Copy link
Contributor Author

AlanVerbner commented Jan 18, 2017

@whysoderious I rather to to that change in the main MPT branch but it can do it here if you want to

@whysoserious
Copy link
Contributor

whysoserious commented Jan 18, 2017 via email

@AlanVerbner AlanVerbner merged commit 601b2de into feature/patriciaTrie Jan 18, 2017
@AlanVerbner AlanVerbner deleted the feature/patriciaTrieTestPartitioning branch January 18, 2017 17:09
LukasGasior1 pushed a commit that referenced this pull request Feb 15, 2019
GMC-136 Reconcile master (websocket patches)
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