mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-20 18:18:31 +00:00
Testing code coverage with FactCheck.jl
This commit is contained in:
@@ -21,6 +21,13 @@ facts("Testing if somebody used print, println(), @sprint in src directory") do
|
||||
@fact lines_with_print => isempty "Instead of println() use Logging.jl package"
|
||||
end
|
||||
|
||||
facts("One test to test code coverage") do
|
||||
m = new_model()
|
||||
#field = new_field(m.elements, "color")
|
||||
#field[1] = "red" # set element 1 field value to "red"
|
||||
#field2 = get_field(m.elements, "color") # get color field
|
||||
@fact "red" => "red"
|
||||
end
|
||||
|
||||
|
||||
#function test_get_element()
|
||||
|
||||
Reference in New Issue
Block a user