Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect tests feature #7

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Collect tests feature #7

wants to merge 6 commits into from

Conversation

lzace817
Copy link

@lzace817 lzace817 commented Jun 3, 2024

in this PR we collects all tests instead of bail out immediately. then print a report at the end.

Note

skip-fail.list.bi is intentionally broken

$ ./rere.py replay skip-fail.list
REPLAYING: echo 'Hello, World'
UNEXPECTED: stdout
--- expected
+++ actual
@@ -1 +1 @@
-Hello, world
+Hello, World
REPLAYING: echo 'Foo, bar, baz'
NOT FOUND: shell command
    COMMAND:   echo 'Foo, bar, baz'
NOTE: You may want to do `./rere.py record skip-fail.list` to update skip-fail.list.bi
NOTE: Skiping this shell
REPLAYING: echo 'Ur, mom'
REPORT: 1 Skipped:
    SKIPPED: echo 'Foo, bar, baz'
REPORT: 1 failed:
    FAILED: echo 'Hello, World'

@ramsy0dev
Copy link

You should put the test in a tests directory, because there may be new tests that are going to fill up the root directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants