samvera-labs / digital_collections_elixir_example

Proof of concept digital collections Elixir Application done as a collaboration between Princeton and Northwestern University.
0 stars 1 forks source link

Wire up unit testing for UI / Vue components #26

Open adamjarling opened 4 years ago

adamjarling commented 4 years ago

Explore using @testing-library to unit test Vue components. And also to verify Lux component integrations maybe?

Update: Looks like Vue has an official test utils package (https://vue-test-utils.vuejs.org/). So we should use this over @testing-library for initial work.

jrgriffiniii commented 4 years ago

Some action items which were derived from a meeting held today evaluating this process for testing Vue components:

adamjarling commented 4 years ago

Here's a resource which is a pretty quick read, and might inform how this non-SPA app might use Vue components.

https://flaviocopes.com/vue-components/

I'm going to play around with some of his examples and see how tests respond...

jrgriffiniii commented 4 years ago

https://github.com/samvera-labs/digital_collections_elixir_example/pull/33 has progressed, but I would definitely like to see about using the test coverage analysis to trigger a build failure on CircleCI before moving beyond my initial test on that branch.