Skip to content

Commit

Permalink
Simplify random runner
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Mar 14, 2024
1 parent 56edcab commit d792a7f
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions test/spec/runners/random.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,9 @@ defmodule RandomTestRunner do
use ExUnit.CaseTemplate
use TestRunner

@disabled_cases [
# "randomized_0",
# "randomized_1",
# "randomized_2",
# "randomized_3",
# "randomized_4",
# "randomized_5",
# "randomized_6",
# "randomized_7",
# "randomized_8",
# "randomized_9",
# "randomized_10",
# "randomized_11",
# "randomized_12",
# "randomized_13",
# "randomized_14",
# "randomized_15"
]

@impl TestRunner
def skip?(%SpecTestCase{fork: "capella", case: testcase}) do
Enum.member?(@disabled_cases, testcase)
end

def skip?(%SpecTestCase{fork: "deneb", case: testcase}) do
Enum.member?(@disabled_cases, testcase)
end

def skip?(%SpecTestCase{fork: "capella"}), do: false
def skip?(%SpecTestCase{fork: "deneb"}), do: false
def skip?(_), do: true

@impl TestRunner
Expand Down

0 comments on commit d792a7f

Please sign in to comment.