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 3001a1c commit 53f96ad
Showing 1 changed file with 2 additions and 34 deletions.
36 changes: 2 additions & 34 deletions test/spec/runners/random.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +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
# TODO: all of them fail
true
end

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

@impl TestRunner
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 53f96ad

Please sign in to comment.