Open rigor789 opened 4 years ago
Idea: Let's implement wix/Detox tests for the built-in elements, where we automatically test they are working as intended. For example, the simplest ones would be:
text
propertytext
in both versions aboveThere may be overlaps with things like Buttons, as they pretty much have the same tests as a Label, but that just makes our job easier.
I am thinking of making these into a custom .vue file that has the usual <template>
<script>
and an extra <tests>
(or whatever makes sense for editors to propery highlight).
These would then be built by webpack into an app + a test suite dynamically.
Sample of my idea: https://github.com/rigor789/nativescript-vue-next/blob/master/tests/detox/Label.spec.vue
NativeScript-Vue Next
Project structure: monorepo using Yarn Workspaces.
@nativescript-vue/compiler
- template compiler based off of @vue/compiler-dom@nativescript-vue/runtime
- runtime based off of @vue/runtime-domnativescript-vue
- package to house both compiler + runtimeTooling to adopt:
Todos:
children.indexof + 1
)