Test improvements
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
調査の方向性
Read the example tests and README.md mentioned in the draft, then compare them with the tests in erlang_tests/ and libs/estdlib/. The issue proposes broad changes to test helpers, naming, organization, summaries, OTP compatibility, Valgrind, and flaky CI steps, so first identify which part remains relevant. Done means an agreed scope and corresponding test and CI changes; the issue gives no specific files or acceptance criteria.
索引モデルが issue の本文から書いたものです。
説明
I was working with tests for some time now and I have few observations:
- Tests are split to NIFs and Erlang impl.
- Running tests in BEAM works only from one directory (
-pa .). - There are a lot of files in
erlang_tests/. They're unorganized and few create a series that could be done in one module. - Some older tests use magic values for communicating intent, some new have own helpers that are copied around, some are hard to follow.
It should undergo some cleaning.
I'd propose that:
- tests should depend on set of common helpers. Some superset of macros in etest would be nice. Having both homebrew framework and etest is quite messy.
- we should decide on naming scheme, right now this is the mix of
test_nameandname.- I like prefixed names with category – e.g.
nif_binary_match,gc_tree_ast,bin_mqqt,bif_pow, etc.
- I like prefixed names with category – e.g.
- estdlib should be treated specially and tests from
erlang_testsandlibs/estdlibshould be merged. - atom table shouldn't use atoms defined in
default_atoms.def. They're always out of sync and it doesn't bring any value. TEST_CASE_EXPECTEDshould be removed preferingTEST_CASE.- Test summary should be aggregated at the bottom, in format of "Test executed: {k}, tests skipped: {k}, tests failed: {k}\nFailed:\n{list of test modules}".
- clear designation when tests are available on later versions of BEAM. Would be nice to have macros that compile testing functions conditionally, like
ok = ?RUN_WITH_MIN_OTP(24, binary_match_test_fun). - Run Valgrind with full report (
--leak-check=full). Right now it only gives a report about leaked memory and you need to run it yourself to see what leaked. - Move known flaky tests (tcp, udp, etc) to separate steps or disable them completely until they're fixed. They very often fail CI and it's hard to see at glance if check failed due to flaky tests or changes to the code.
Draft of what it could look like (or any variation on that). Look in example tests and README.md.
Related: #1060
- 主要言語
- Erlang
- スター
- 2.3k
- フォーク
- 171
- 平均マージ
- 5日 11時間
- マージ済み PR(30日)
- 19
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
atomvm/AtomVM のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
atomvm/AtomVM#2435 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
atomvm/AtomVM#2429 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
freelawproject/courtlistener#8406 ·
メンテナーはふだん 2 日以内に返信
-
good first issue help wanted level 1 wocs
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
GianlucaBave/murmury#49 ·
メンテナーはふだん 1 日以内に返信
-
regression skipped skipped_bmg
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
intel/torch-xpu-ops#6142 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
ci-flake kind:tests size:S type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
elsa-workflows/elsa-foundation#4058 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信