Exclude slow GRIB2 fixture tests by default (81s -> 16s)

This commit is contained in:
Graham McIntire 2026-03-31 10:00:13 -05:00
parent 14e1078bf9
commit 8f89bbdc02
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59
3 changed files with 12 additions and 12 deletions

View file

@ -7,7 +7,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do
@fixture_path "test/fixtures/grib2/hrrr_tmp_2m.grib2"
describe "extract_value/3 with real HRRR fixture" do
@tag :fixture
@tag :slow
test "extracts a temperature value within meteorological range" do
if File.exists?(@fixture_path) do
fixture = File.read!(@fixture_path)
@ -26,7 +26,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do
end
end
@tag :fixture
@tag :slow
test "extracts values at multiple indices" do
if File.exists?(@fixture_path) do
fixture = File.read!(@fixture_path)
@ -45,7 +45,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do
end
end
@tag :fixture
@tag :slow
test "Dallas area temperature is reasonable for a US city" do
if File.exists?(@fixture_path) do
fixture = File.read!(@fixture_path)
@ -70,7 +70,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do
end
describe "decode_all/2" do
@tag :fixture
@tag :slow
test "decodes all values from fixture" do
if File.exists?(@fixture_path) do
fixture = File.read!(@fixture_path)
@ -94,7 +94,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do
end
describe "extract_values/3" do
@tag :fixture
@tag :slow
test "batch extracts multiple values matching individual calls" do
if File.exists?(@fixture_path) do
fixture = File.read!(@fixture_path)
@ -122,7 +122,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do
end
end
@tag :fixture
@tag :slow
test "returns values in meteorological range" do
if File.exists?(@fixture_path) do
fixture = File.read!(@fixture_path)

View file

@ -154,7 +154,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do
@fixture_path "test/fixtures/grib2/hrrr_tmp_2m.grib2"
@multi_fixture_path "test/fixtures/grib2/hrrr_multi.grib2"
@tag :fixture
@tag :slow
@tag timeout: 300_000
test "extracts grid values matching extract_points for same location" do
if File.exists?(@fixture_path) do
@ -174,7 +174,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do
end
end
@tag :fixture
@tag :slow
@tag timeout: 300_000
test "extracts grid values for multiple US cities" do
if File.exists?(@fixture_path) do
@ -206,7 +206,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do
@fixture_path "test/fixtures/grib2/hrrr_tmp_2m.grib2"
@multi_fixture_path "test/fixtures/grib2/hrrr_multi.grib2"
@tag :fixture
@tag :slow
@tag timeout: 120_000
test "extracts TMP:2m from real single-message GRIB2" do
if File.exists?(@fixture_path) do
@ -221,7 +221,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do
end
end
@tag :fixture
@tag :slow
@tag timeout: 300_000
test "extracts from multi-message GRIB2" do
if File.exists?(@multi_fixture_path) do
@ -234,7 +234,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do
end
end
@tag :fixture
@tag :slow
@tag timeout: 300_000
test "DPT values are meteorologically reasonable (not corrupted by bit padding)" do
if File.exists?(@multi_fixture_path) do

View file

@ -1,2 +1,2 @@
ExUnit.start()
ExUnit.start(exclude: [:slow])
Ecto.Adapters.SQL.Sandbox.mode(Microwaveprop.Repo, :manual)