Testing on non-latin languages

AI-generated summary

A discussion on testing Discourse with non-latin languages is underway. chrispanag shares their experience with a Greek forum, highlighting several bugs related to non-latin characters. They wonder if automated test cases using non-latin languages could prevent such issues and found no existing tests for this purpose. Falco invites chrispanag to create and submit a pull request for such tests, which chrispanag is willing to attempt. They request guidance on where to start, specifically asking if they should extend existing fabricators and seeking an example to get started.

Discourse をギリシャ語のフォーラムで 3 年間利用する中で、アップデートの合間に見過ごされがちな、主に非ラテン文字に関連するいくつかの小さなバグを特定しました。

例えば:

  1. Some categories are broken: "Load cannot follow more than 20 redirections"
  2. Unicode username with Σ as the final char leads to an error loading profile page
  3. Topic with Japanese in URL doesn't redirect if URL doesn't perfectly match

これらの中には単なるエッジケースの可能性があるものもありますが、これらの問題により、非ラテン言語を使用した自動テストケースを実装することで回避可能だったのではないかという疑問が湧きました。

Discourse に同梱されている各種テストを素早く確認しましたが、非ラテン文字の擬似データを用いたテストは見当たりませんでした。

質問は以下の通りです:

  1. 見落としがあるようなテストはありますか?
  2. もしないなら、デプロイ前にこれらのバグのいくつかを検出できるよう、そのようなテストを追加するのは有益ではないでしょうか?

そのようなテストを追加し、プルリクエストを送っていただければ、大変歓迎いたします😉

それならやってみましょう :slight_smile:

どこから手をつければよいか、何かヒントはありますか?既存のファブリケータを拡張すべきでしょうか?もしそうなら、例を共有していただけませんか?それをもとに、さらにテストを追加して進められると思います。