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
Add more tests #120
Add more tests #120
Conversation
d0c826c
to
e8c0ef0
Compare
Hi @orhun, I think I'd like to change the tests to include the I'm assuming you'll have to update this line https://github.com/archlinux/svntogit-community/blob/5a37f121adf34fc129994f7dad474093edbad9a9/taskwarrior-tui/trunk/PKGBUILD#L27 to the following: cargo test --release --locked --all-features -- --test-threads=1 I'm also open to suggestions on how to handle this better. I think you've looked at more packages and how they all run tests, so I definitely value any suggestions you may have. |
bff4be7
to
3dc133e
Compare
3dc133e
to
6c336c4
Compare
@orhun I'll check in with you again before making a release. I'll continue using |
Hi @kdheepak!
I see. Which tests are failing occasionally when you run them asynchronously via I might actually work on that and submit a PR if you consider to do that.
I guess it's totally fine as long as you document it :)
That's correct. Thanks for poking me about this, although I couldn't respond quickly enough :/ |
No worries! I didn't think it was time critical since I wasn't planning to make a release right now.
I don't want to give you more things to do! But if you submit a PR I'd be more than happy to consider it.
Currently, I have this test which checks that the context switching works correctly. Lines 1789 to 1823 in 067fe44
and this test Lines 1825 to 1890 in 067fe44
which checks the number of tasks before and after adding a task and undoing the previous action. When the context changes the number of tasks changes and the tests fail. Currently for the TUI tests, this is what I'm doing. Lines 1961 to 2048 in 067fe44
This doesn't test for events though. For testing events I'll definitely need multi-threading though. I think one thing I can do is write 1 |
I've decided to do this: Lines 1789 to 1796 in 13e4cf2
This way the standard use of |
I've made a new release: https://github.com/kdheepak/taskwarrior-tui/releases/tag/v0.11.0 There shouldn't be any changes on your end, but let me know if something breaks. Running |
No problems!
And oh hey, I learned a new German word! Ich soll das neu Wort aufschreiben, auf jeden Fall nützlich für meinen Deutschkurs! |
Nice that you are learning German! And your German definitely google translated well for me :) So good job! |
Related #83