sschmidTU/mr-kanji-search-wtk

Testing Framework: Test search queries

Open

#9 opened on Nov 8, 2020

 (0 comments) (0 reactions) (0 assignees)HTML (3 forks)auto 404
help wantedtesting

Repository metrics

Stars
 (10 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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:

wk,coffin sun,者
rtk,old man sun,者
wk,mustache scooter,過&適

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.

Contributor guide