Skip to content

Commit 8ef697c

Browse files
committed
WIP
1 parent a95cab4 commit 8ef697c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/mix/test/mix/tasks/test_test.exs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,10 @@ defmodule Mix.Tasks.TestTest do
748748
assert output =~ "test/dry_run_one_test_stale.exs:4"
749749
refute output =~ "test/dry_run_two_test_stale.exs:5"
750750
assert output =~ "1 test, 0 failures, 1 skipped"
751+
752+
# Tests are still marked as stale
753+
output = mix(["test", "--dry-run", "--stale"])
754+
assert output =~ "1 test, 0 failures, 1 skipped"
751755
end)
752756
end
753757

@@ -760,6 +764,10 @@ defmodule Mix.Tasks.TestTest do
760764
assert output =~ "test/only_failing_test_failed.exs:4"
761765
assert output =~ "test/passing_and_failing_test_failed.exs:5"
762766
assert output =~ "0 tests, 0 failures"
767+
768+
# Tests are still marked as failed
769+
output = mix(["test", "--dry-run", "failed"])
770+
assert output =~ "0 tests, 0 failures"
763771
end)
764772
end
765773
end

0 commit comments

Comments
 (0)