Testing Framework: Test search queries #9
Labels
help wanted
potentially good issue for volunteer contributors
testing
all about testing, tests, test frameworks, etc
Use a testing framework (e.g. mocha or karma) to test the search automatically.
example tests with mode, search terms, kanji that should be found:
For that, set
wtk_search(query, {updateHTMLElements: false}
.(of course we can also add browser testing where it tests interacting with HTML elements, but one step at a time)
Maybe also integrate the tests into the build / continuous integration (Github actions, so that the build only passes if the tests pass).
This could also be a nice issue for volunteer contributors.
The text was updated successfully, but these errors were encountered: