gleam test
should run all targets by default
#1638
Replies: 5 comments 5 replies
-
An interesting suggestion. Are there other tools and languages that do this? If we were to have something like this we couldn't do it by default as we don't know which targets are supported by any particular code. There would need to be some additional config to say which ones to run for. |
Beta Was this translation helpful? Give feedback.
-
Then the Maybe like so: [unit-testing]
default-targets = [
"erlang",
"javascript"
] |
Beta Was this translation helpful? Give feedback.
-
We would need something like that, aye. I'm interested in what sort of impact this has on the DX of a language etc. Do you know of any other languages or tools that have this behaviour? |
Beta Was this translation helpful? Give feedback.
-
No I don't :/. Related: #1628
Could there in terms of toml settings be targets and nested to that runtimes for tests (and builds)?
|
Beta Was this translation helpful? Give feedback.
-
I feel if this is not tackled especially newbies that target JS will think their tests are OK when they maybe are not? For 1.0 maybe |
Beta Was this translation helpful? Give feedback.
-
I accidentially missed adding tests when contributing to gleam/stdlib because I didn't know I had to run
--target javascript
separatly (--target erlang
is run by default it seems?)Beta Was this translation helpful? Give feedback.
All reactions