Skip to content

Commit

Permalink
Improve test verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
ayjayt committed Nov 4, 2024
1 parent cdd0be3 commit 0e5f887
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/py/tests/manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
os.environ["KALEIDO-DEBUG"] = "true"

total = len(_all_formats) * 5
failures = []
x = 0
def count():
global x
Expand Down Expand Up @@ -38,6 +39,7 @@ def count():

except Exception as e:
print(e, file=sys.stderr)
failures.append(e)

import asyncio
print("ASYNC w/ PRETEND BLOCKING".center(50, "&"), file=sys.stderr)
Expand All @@ -51,6 +53,7 @@ async def test_with_blocking_in_async():
count()
except Exception as e:
print(e, file=sys.stderr)
failures.append(e)

asyncio.run(test_with_blocking_in_async())
print("ASYNC w/ ASYNC NATIVE".center(50, "&"), file=sys.stderr)
Expand All @@ -68,6 +71,7 @@ async def test_with_async():
count()
except Exception as e:
print(e, file=sys.stderr)
failures.append(e)
asyncio.run(test_with_async())
## Other

Expand All @@ -83,7 +87,10 @@ async def test_with_async():
count()
except Exception as e:
print(e, file=sys.stderr)
print("Done!")
print("Please send over test-results.zip")

failures.append(e)
shutil.make_archive("test-results", 'zip', dirname)
print("Done!")
print(f"Successes: {x}/{total}")
print("Please send over test-results.zip")
print(f"Logs and images in {dirname}")

0 comments on commit 0e5f887

Please sign in to comment.