You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a workflow where I would prefer to have elm-test-rs output the logs from Debug.log (for a subset of tests) also for succeeding tests, to inspect how some Elm functions work.
So I use one command to run all tests and then one where I filter to a subset of tests. The logs generated in all tests would be expensive to forward because these are more than 1000 times larger than the subset I want to inspect more closely.
elm-test-rs --filter=single-test # I want to inspect how some function works (Logs are < 10 Kilobytes)
elm-test-rs # I want to see the number of passing/failing tests (Logs would be > 10 Megabytes, too much noise)
Does elm-test-rs offer an option to enable that?
In the interactive help, I discovered --report=consoleDebug, which to me seemed at first sight like it might do that, but that option does not lead to including logs from Debug.log
The text was updated successfully, but these errors were encountered:
Indeed, the logs are only displayed in the case of a failure. The code for the reporters lives in another repo, it is Elm code. Here is the line that adds the debug logs for example:
add a cli argument to always report debug logs (in this repo)
pass that argument to the supervisor, that would be the templates/{node_supervisor.js,deno_supervisor.mjs} files and the corresponding rust code that instantiates these templates
Alternatively if this is a bit too much work to validate an idea, you can first deep clone this repo and just do step (4) with the reporter you use.
When compiling the elm-test-rs binary (cargo build --release) a pre-build step will replace the elm submodule in your ~/.elm/ elm home directory so that your modified elm reporter is used instead of the one published on elm packages.
I have a workflow where I would prefer to have
elm-test-rs
output the logs fromDebug.log
(for a subset of tests) also for succeeding tests, to inspect how some Elm functions work.So I use one command to run all tests and then one where I filter to a subset of tests. The logs generated in all tests would be expensive to forward because these are more than 1000 times larger than the subset I want to inspect more closely.
Does
elm-test-rs
offer an option to enable that?In the interactive help, I discovered
--report=consoleDebug
, which to me seemed at first sight like it might do that, but that option does not lead to including logs fromDebug.log
The text was updated successfully, but these errors were encountered: