Best practices for unit-testing a pointcloud component using pointcloud Layer #9141
-
Hello Everyone, I'm currently working on a project where we're using the DeckGL Context Questions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Rather general question, don't really have an answer but maybe I can give you a few pointers...
Especially in loaders.gl we have a lot of test files for different formats. We typically include smaller test files in the primary repo, an load them from the file system. You can typically For bigger files, we have separate repos like deck.gl-data, to avoid making the code repo "too heavy".
deck.gl does have some interaction tests, taking a look at those could be a starting point.
These tests can at least be written in the same way as unit tests, again see what deck does.
You'll need to try and decide what is acceptable to you loading local files is pretty fast compared to loading from a network. A really big slow test could be kept as a separate test command and you'd probably not run that one in e.g. your CI testing for every commit. |
Beta Was this translation helpful? Give feedback.
Rather general question, don't really have an answer but maybe I can give you a few pointers...
Especially in loaders.gl we have a lot of test files for different formats. We typically include smaller test files in the primary repo, an load them from the file system. You can typically
fetch
local resources from your tests, or you can use the "rawgithub" URLs to access your files as if GitHub was a CDN.For bigger files, we have separate repos like deck.gl-data, to avoid making the code repo "too heavy".