iTwin / viewer-components-react

Components built on iTwin.js for usability in an iTwin.js based Viewer.
MIT License
24 stars 33 forks source link

Tree Widget: Test coverage #376

Closed grigasp closed 1 year ago

grigasp commented 1 year ago

This is sad: Image

I hope for the 1.0 release we could at least get to 80%

simasjar commented 1 year ago

As for today, test coverage looks like this:

Image

Because @saskliutas and I will be working together on this task, to avoid unnecessary work, I will be updating here what I will be working on. I will start with writing tests for category-tree, models-tree, and TreeHeader.tsx

grigasp commented 1 year ago

@saskliutas @simasjar, I'll add tests for imodel content tree.

grigasp commented 1 year ago

Results after completing https://github.com/iTwin/viewer-components-react/pull/451: image

saskliutas commented 1 year ago

I am working on tests for TreeHeader and SearchBox

saskliutas commented 1 year ago

Working on tests for: TreeFilteringState.ts TreeWidgetComponent.tsx TreeWidgetUiItemsProvider.tsx

saskliutas commented 1 year ago

Results after completing https://github.com/iTwin/viewer-components-react/pull/469 image

grigasp commented 1 year ago

Results after completing https://github.com/iTwin/viewer-components-react/pull/477 image

simasjar commented 1 year ago

Results after completing #482 image