-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix async #82
Fix async #82
Conversation
@Chemaclass and I have undergone a refactor to extract the application's state logic into a separate file (commit c50b5f7). After this, we tested various systems, providing a brief report on each one:
Having said that, we've left the work half done for today in case anyone wants to investigate further. In the worst-case scenario, if we decided to abandon the asynchronous execution feature, we could at least retain the extract state refactor. I would like to add that even if we implement a system compatible with asynchronous operation, I believe we should insert an 'if' in all getters and setters to use the implementation from commit c50b5f7 (which simply uses variables) if the user runs the tests synchronously, as it seems to be the fastest implementation of all. |
requires mocking all usages of state inside all our tests...
@Chemaclass @khru Can you help me with the test test_when_running_bashunit_without_error_then_exit_code_should_be_success? It suddenly broke, and I don't know why. That's the only thing left for me to remove the draft. |
@Tito-Kati I think for some reason now it's returning this I've tested like this: function test_when_running_bashunit_without_error_then_exit_code_should_be_success() {
t="$(./bashunit)"
echo $t
assertSuccessfulCode "$(./bashunit)"
} |
It's true that it's a bit odd to run the command without specifying the files to test. How should we proceed? @khru @Chemaclass |
Personally I don't have a preference, I like that if it doesn't give you a file it tells you executed 0 files, but I don't care if the final result doesn't appear because we are already saying that we have nothing to execute. But I do think should end with an exitcode 1. Maybe see how jest and PHPUnit behave could help us |
I would say that if you dont pass any arguments (path to run) it should do an |
So... removing that test? |
π Description
Replace this text with a short description of your feature/bugfix.
π Changes
β To-do list
CHANGELOG.md
to reflect the new feature or fix