Skip to content

Feature request: ]test --quiet #3405

@miguelraz

Description

@miguelraz

I don't have the bandwidth at the moment, but it would be super useful to have a flag so that
]test --quiet or an equivalent would turn


(RandomWalkBVP) pkg> test
     Testing RandomWalkBVP
      Status `/tmp/jl_iBEm2S/Project.toml`
  [41a02a25] Folds v0.2.8
  [f67ccb44] HDF5 v0.16.14
  [114ffcdd] RandomWalkBVP v0.1.0 `~/.julia/dev/RandomWalkBVP`
  [bc48ee85] Tullio v0.3.5
  [9a3f8284] Random `@stdlib/Random`
  [8dfed614] Test `@stdlib/Test`
      Status `/tmp/jl_iBEm2S/Manifest.toml`
  [7d9f7c33] Accessors v0.1.28
  [79e6a3ab] Adapt v3.6.1
  [dce04be8] ArgCheck v2.3.0
  [198e06fe] BangBang v0.3.37
  [9718e550] Baselet v0.1.1
  [d360d2e6] ChainRulesCore v1.15.7
  [9e997f8a] ChangesOfVariables v0.1.6
  [34da2185] Compat v4.6.1
  [a33af91c] CompositionsBase v0.1.1
  [187b0558] ConstructionBase v1.5.1
  [9a962f9c] DataAPI v1.14.0
  [e2d170a0] DataValueInterfaces v1.0.0
  [244e2a9f] DefineSingletons v0.1.2
  [b552c78f] DiffRules v1.13.0
  [ffbed154] DocStringExtensions v0.9.3
  [e189563c] ExternalDocstrings v0.1.1
  [41a02a25] Folds v0.2.8
  [f67ccb44] HDF5 v0.16.14
  [22cec73e] InitialValues v0.3.1
  [3587e190] InverseFunctions v0.1.8
  [92d709cd] IrrationalConstants v0.2.2
  [82899510] IteratorInterfaceExtensions v1.0.0
  [692b3bcd] JLLWrappers v1.4.1
  [2ab3a3ac] LogExpFunctions v0.3.23
  [1914dd2f] MacroTools v0.5.10
  [128add7d] MicroCollections v0.1.3
  [77ba4419] NaNMath v1.0.2
  [bac558e1] OrderedCollections v1.4.1
  [21216c6a] Preferences v1.3.0
  [114ffcdd] RandomWalkBVP v0.1.0 `~/.julia/dev/RandomWalkBVP`
  [42d2dcc6] Referenceables v0.1.2
  [ae029012] Requires v1.3.0
  [efcf1570] Setfield v1.1.1
  [276daf66] SpecialFunctions v2.2.0
  [171d559e] SplittablesBase v0.1.15
  [90137ffa] StaticArrays v1.5.17
  [1e83bf80] StaticArraysCore v1.4.0
  [3783bdb8] TableTraits v1.0.1
  [bd369af6] Tables v1.10.0
  [24d252fe] ThreadedScans v0.1.0
  [28d57a85] Transducers v0.4.75
  [bc48ee85] Tullio v0.3.5
  [700de1a5] ZygoteRules v0.2.2
  [0234f1f7] HDF5_jll v1.12.2+2
  [458c3c95] OpenSSL_jll v1.1.20+0
  [efe28fd5] OpenSpecFun_jll v0.5.5+0
  [0dad84c5] ArgTools v1.1.1 `@stdlib/ArgTools`
  [56f22d72] Artifacts `@stdlib/Artifacts`
  [2a0f44e3] Base64 `@stdlib/Base64`
  [ade2ca70] Dates `@stdlib/Dates`
  [8ba89e20] Distributed `@stdlib/Distributed`
  [f43a241f] Downloads v1.6.0 `@stdlib/Downloads`
  [7b1f6079] FileWatching `@stdlib/FileWatching`
  [9fa8497b] Future `@stdlib/Future`
  [b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
  [b27032c2] LibCURL v0.6.3 `@stdlib/LibCURL`
  [76f85450] LibGit2 `@stdlib/LibGit2`
  [8f399da3] Libdl `@stdlib/Libdl`
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [56ddb016] Logging `@stdlib/Logging`
  [d6f4376e] Markdown `@stdlib/Markdown`
  [a63ad114] Mmap `@stdlib/Mmap`
  [ca575930] NetworkOptions v1.2.0 `@stdlib/NetworkOptions`
  [44cfe95a] Pkg v1.8.0 `@stdlib/Pkg`
  [de0858da] Printf `@stdlib/Printf`
  [3fa0cd96] REPL `@stdlib/REPL`
  [9a3f8284] Random `@stdlib/Random`
  [ea8e919c] SHA v0.7.0 `@stdlib/SHA`
  [9e88b42a] Serialization `@stdlib/Serialization`
  [6462fe0b] Sockets `@stdlib/Sockets`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics `@stdlib/Statistics`
  [fa267f1f] TOML v1.0.0 `@stdlib/TOML`
  [a4e569a6] Tar v1.10.1 `@stdlib/Tar`
  [8dfed614] Test `@stdlib/Test`
  [cf7118a7] UUIDs `@stdlib/UUIDs`
  [4ec0a83e] Unicode `@stdlib/Unicode`
  [e66e0078] CompilerSupportLibraries_jll v1.0.1+0 `@stdlib/CompilerSupportLibraries_jll`
  [deac9b47] LibCURL_jll v7.84.0+0 `@stdlib/LibCURL_jll`
  [29816b5a] LibSSH2_jll v1.10.2+0 `@stdlib/LibSSH2_jll`
  [c8ffd9c3] MbedTLS_jll v2.28.0+0 `@stdlib/MbedTLS_jll`
  [14a3606d] MozillaCACerts_jll v2022.2.1 `@stdlib/MozillaCACerts_jll`
  [4536629a] OpenBLAS_jll v0.3.20+0 `@stdlib/OpenBLAS_jll`
  [05823500] OpenLibm_jll v0.8.1+0 `@stdlib/OpenLibm_jll`
  [83775a58] Zlib_jll v1.2.12+3 `@stdlib/Zlib_jll`
  [8e850b90] libblastrampoline_jll v5.1.1+0 `@stdlib/libblastrampoline_jll`
  [8e850ede] nghttp2_jll v1.48.0+0 `@stdlib/nghttp2_jll`
  [3f19e933] p7zip_jll v17.4.0+0 `@stdlib/p7zip_jll`
     Testing Running tests...
Construction and basic functions: Test Failed at /home/mrg/.julia/dev/RandomWalkBVP/test/runtests.jl:29
  Expression: sum(re.sol) ≈ 1 / 3
   Evaluated: 0.5 ≈ 0.3333333333333333
Stacktrace:
 [1] macro expansion
   @ ~/.julia/juliaup/julia-1.8.5+0.x64.linux.gnu/share/julia/stdlib/v1.8/Test/src/Test.jl:464 [inlined]
 [2] macro expansion
   @ ~/.julia/dev/RandomWalkBVP/test/runtests.jl:29 [inlined]
 [3] macro expansion
   @ ~/.julia/juliaup/julia-1.8.5+0.x64.linux.gnu/share/julia/stdlib/v1.8/Test/src/Test.jl:1363 [inlined]
 [4] top-level scope
   @ ~/.julia/dev/RandomWalkBVP/test/runtests.jl:12
Test Summary:                    | Pass  Fail  Total  Time
Construction and basic functions |  108     1    109  1.3s
ERROR: LoadError: Some tests did not pass: 108 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /home/mrg/.julia/dev/RandomWalkBVP/test/runtests.jl:9
ERROR: Package RandomWalkBVP errored during testing

into

(RandomWalkBVP) pkg> test --quiet
     Testing RandomWalkBVP
Construction and basic functions: Test Failed at /home/mrg/.julia/dev/RandomWalkBVP/test/runtests.jl:29
  Expression: sum(re.sol) ≈ 1 / 3
   Evaluated: 0.5 ≈ 0.3333333333333333
Stacktrace:
 [1] macro expansion
   @ ~/.julia/juliaup/julia-1.8.5+0.x64.linux.gnu/share/julia/stdlib/v1.8/Test/src/Test.jl:464 [inlined]
 [2] macro expansion
   @ ~/.julia/dev/RandomWalkBVP/test/runtests.jl:29 [inlined]
 [3] macro expansion
   @ ~/.julia/juliaup/julia-1.8.5+0.x64.linux.gnu/share/julia/stdlib/v1.8/Test/src/Test.jl:1363 [inlined]
 [4] top-level scope
   @ ~/.julia/dev/RandomWalkBVP/test/runtests.jl:12
Test Summary:                    | Pass  Fail  Total  Time
Construction and basic functions |  108     1    109  1.3s
ERROR: LoadError: Some tests did not pass: 108 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /home/mrg/.julia/dev/RandomWalkBVP/test/runtests.jl:9
ERROR: Package RandomWalkBVP errored during testing

The second doesn't require one to change focus and scroll down to see what actual test was ran.
This is a feature request, so do feel free to close it down if it's not on the priority list or to point me in the right way so that I may PR it later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions