forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix order of logs such that they are printed after tested function na…
…me (FuelLabs#3828) closes FuelLabs#3824. With this PR, different tests are emitting logs separately as pointed out by @mitchmindtree in FuelLabs#3808. (Github code block indentations are showing up weird) ## Before this PR ```console fuel/test_projects/deploy [⏱ 4s] ❯ mforc test --logs Compiled library "core". Compiled library "std". Compiled library "deploy". Bytecode size is 52 bytes. Running 2 tests [{"Log":{"id":"0000000000000000000000000000000000000000000000000000000000000000","is":10344,"pc":10368,"ra":1,"rb":0,"rc":0,"rd":0}}] [{"Log":{"id":"0000000000000000000000000000000000000000000000000000000000000000","is":10344,"pc":10380,"ra":2,"rb":1,"rc":0,"rd":0}}] test my_test ... ok (393.833µs) test my_test2 ... ok (371.833µs) Result: OK. 2 passed. 0 failed. Finished in 765.666µs. ``` ## After this PR ```console fuel/test_projects/deploy [⏱ 4s] ❯ mforc test --logs Compiled library "core". Compiled library "std". Compiled library "deploy". Bytecode size is 52 bytes. Running 2 tests test my_test ... ok (608.041µs) [{"Log":{"id":"0000000000000000000000000000000000000000000000000000000000000000","is":10344,"pc":10368,"ra":1,"rb":0,"rc":0,"rd":0}}] test my_test2 ... ok (360.041µs) [{"Log":{"id":"0000000000000000000000000000000000000000000000000000000000000000","is":10344,"pc":10380,"ra":2,"rb":1,"rc":0,"rd":0}}] Result: OK. 2 passed. 0 failed. Finished in 968.082µs. ```
- Loading branch information
1 parent
6602bd2
commit 89c45ee
Showing
5 changed files
with
45 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters