Skip to content

Commit

Permalink
Redirect stdout during testing (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetison authored Jun 20, 2024
1 parent c5957b3 commit 3b5eb0b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release notes

## Unversioned

* Redirect stdout to avoid redundant printouts during testing

## Version 0.5.0 (2024-04-19)

### Adjustment
Expand Down
22 changes: 12 additions & 10 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ include("utils.jl")
include("../examples/utils.jl")

@testset "EnergyModelsGUI" verbose = true begin
# Run all Aqua tests
include("Aqua.jl")
redirect_stdio(stdout=devnull) do
# Run all Aqua tests
include("Aqua.jl")

# Check if there is need for formatting
include("JuliaFormatter.jl")
# Check if there is need for formatting
include("JuliaFormatter.jl")

# The following tests simply checks if the main examples can be run without errors
include("test_examples.jl")
# The following tests simply checks if the main examples can be run without errors
include("test_examples.jl")

# Test specific GUI functionalities related to interactivity
include("test_interactivity.jl")
# Test specific GUI functionalities related to interactivity
include("test_interactivity.jl")

# Test miscellaneous functionalities
include("test_functionality.jl")
# Test miscellaneous functionalities
include("test_functionality.jl")
end
end

0 comments on commit 3b5eb0b

Please sign in to comment.