Skip to content

deck.gl/test-utils: New sub-module layer-test utils (Stacked PR #3) - #1290

Merged
ibgreen merged 5 commits into
masterfrom
ib/render-test-utils
Feb 13, 2018
Merged

ibgreen merged 5 commits into
masterfrom
ib/render-test-utils

Conversation

@ibgreen

@ibgreen ibgreen commented Jan 4, 2018

Copy link
Copy Markdown
Collaborator

@jianhuang01 This PR still has some issues so not planning to land it yet, but want to show you the direction I am working on:

  • creating a reusable RenderTest class that any app can use to test its layers.
  • Porting that class to PureJS API, no react should be needed.

For now I keep the current working tests in a copy render-test-react.js

@ibgreen
ibgreen requested a review from jianhuang01 January 4, 2018 22:59
@jianhuang01

Copy link
Copy Markdown
Contributor

Refer to #1423

@jianhuang01 jianhuang01 added this to the v6.0.0 milestone Feb 9, 2018
@ibgreen
ibgreen force-pushed the ib/render-test-utils branch 3 times, most recently from 9b74a41 to 49497f0 Compare February 11, 2018 19:30
@ibgreen
ibgreen changed the base branch from master to ib/rename-render-test-folder February 11, 2018 19:31
@ibgreen ibgreen changed the title EXPOSITION: Publish RenderTest as reusable component in @deck.gl/test-utils deck.gl/test-utils: Publish reusable layer test utils (Stacked PR #3) Feb 11, 2018
@ibgreen ibgreen changed the title deck.gl/test-utils: Publish reusable layer test utils (Stacked PR #3) deck.gl/test-utils: New sub-module layer-test utils (Stacked PR #3) Feb 11, 2018
@ibgreen
ibgreen force-pushed the ib/rename-render-test-folder branch from ed34f37 to 539b61a Compare February 11, 2018 19:33
@ibgreen

ibgreen commented Feb 11, 2018

Copy link
Copy Markdown
Collaborator Author

Big step towards #1423

}

run() {
this.deckgl = new Deck({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is good to have pure JS integration, but we still need the react version otherwise rendering tests can't cover the react module which is still our major entry point.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes we can do that. Ideally, the react integration should be quite thin, but of course it doesn't hurt to test it.

If we want to keep both, we should put some effort into making them more similar. I found the react test driver rather hard to read as it stands.

@jianhuang01 jianhuang01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like the idea of new test sub-module which is pretty cool. The only concern is that removing react API integration in rendering test, which can test both react and pure-JS code in the workflow chain, because we are still refactoring the two modules, could be risky.

@ibgreen
ibgreen force-pushed the ib/rename-render-test-folder branch 3 times, most recently from c3e7f1a to aae1c60 Compare February 12, 2018 18:58
@ibgreen
ibgreen force-pushed the ib/render-test-utils branch 2 times, most recently from 8485d72 to 205e2ce Compare February 13, 2018 03:00
@ibgreen
ibgreen changed the base branch from ib/rename-render-test-folder to master February 13, 2018 03:00
@ibgreen
ibgreen force-pushed the ib/render-test-utils branch from 205e2ce to e93d56a Compare February 13, 2018 21:20
@ibgreen
ibgreen merged commit 6edfed2 into master Feb 13, 2018
@ibgreen
ibgreen deleted the ib/render-test-utils branch February 13, 2018 21:32
@jianhuang01 jianhuang01 removed this from the 6.0.0 milestone Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants