Open chartgerink opened 4 weeks ago
Great first list! In terms of unit testing, I can imagine the following can be best tested directly:
In that sense, checking whether form data can be edited for example, could be a part of a unit test of that component. The biggest thing that would be left for a (human) testing protocol are those that combine across components, queries/mutations at the same time. These you could cover with integration tests, but I would recommend to stick to implementing one type of test first 😊
What we've done so far:
vitest
https://blitzjs.com/docs/testingNotes from meeting: (how to approach)
What is the scope and what is the work?
Do we need support on building these?
what kinds of tests would be helpful information on queries or mutations?
validity of queries (i know there are three and i got three back)
i asked for 4 rows and did i get four back
what are risky ways the system might break
can users run queries to begin with ? (too buggy)
If logged in - can you only request your own data --> can people mess around query
code that gets reused a lot is a good place to test
figure out the scoping - at what level of specificity should the test lie
SMART - specific enough the test is informative - specific to one piece at a time
[ ] who does this task?
[ ] everyone should come up with a list of things to test
@doomlab may these last few comments be more applicable in #156? I thought this item was more about a protocol to test those things that we do not include in the unit tests (for example, the process of signing up and creating a project altogether).
A list of things we can test (just making a starting list):