stack-chan icon indicating copy to clipboard operation
stack-chan copied to clipboard

Add tests/ テストを追加する

Open meganetaaan opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe.

As the number of modules increases it is likely to find more regression, especially the variation of the same base class.

モジュールの数が増えるにつれて、特に同じベースクラスを持つ複数のクラス間でリグレッション(今まで動いていた機能が改修によって壊れること)が増えてきました。

Describe the solution you'd like

Add automated unit tests. Better if they are triggered by GitHub Actions. 

自動単体テストを追加します。GitHub Actionsでトリガーできるとなお良いです。

meganetaaan avatar Jan 08 '23 17:01 meganetaaan

I should read the official testing doc first.

meganetaaan avatar Jan 08 '23 17:01 meganetaaan

Wow, I didn't know that testmc supports graphics tests

https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/tools/testing.md#graphics-tests

This definitely helps to test avatar rendering features.

meganetaaan avatar Jan 08 '23 17:01 meganetaaan

test drawio

meganetaaan avatar Jan 27 '23 14:01 meganetaaan

We can use self-hosted runners to run hardware tests automatically and locally.

https://github.com/actions/runner

meganetaaan avatar Jan 29 '23 16:01 meganetaaan