Skip to content

Commit

Permalink
add README.md for tests (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloomca authored Jun 15, 2024
1 parent 8e82daa commit 7b87d73
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions integration-tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Testing philosophy

This library is fully tested by using integration tests, meaning that nothing is mocked (except DOM itself), and every feature is tested by mounting the whole application and executing each scenario.

There are some benefits and drawbacks in this approach. The main advantage is that we can test this library as a whole, and the main drawback is that if something fails, it doesn't mean that the tested part has some introduced issues.

There is significant overlap in scenarios to the point where some test can have different assertions but very similar setup code. At the end of the day, the more potential situations are covered, even in a similar manner, the better for a general UI library.

In the future, if some microoptimizations will be employed for some specific algorithms, it might be worth it to include unit tests for that as well.

0 comments on commit 7b87d73

Please sign in to comment.