-
Notifications
You must be signed in to change notification settings - Fork 239
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
AppleDict-bin: add new tests #436
Conversation
What are all these |
5ca4a72
to
048c767
Compare
There was some confusion, @ilius. These *.TXT files that I created are specifically to test only extracted KeyText.data! They were NOT supposed to be the tab files with the result of full conversion as in all other tests. This PR contains test logic (which I wasn't able to run because of file downloading) and with several fixes (!). Please have a look at this code: https://github.com/soshial/pyglossary/blob/appledict-bin-keytext-tests/tests/g_appledict_bin_test.py#L278-L284 |
Please don't write these kind of tests. |
These kinds of tests are prune to break when you refactor the plugin. |
I implemented and test progress bar for Can you bring the changes here? It's fine that it's a separate progress bar for |
I changed txt files to Tabfile at |
Unfortunately, your tests are also prone to break, whenever you:
I wonder how many times you changed Tabfiles... Frankly, that is quite sad to hear that you won't accept my tests, that were written to check extraction of data from binary files "as-is". My tests are unit-tests and they would help troubleshoot any occurring problem; while functional tests would only signify that there is some problem out there (really hard to troubleshoot and find a bug quickly). Would you please merge my fixes of |
Yes they break when plugin behaves differently, not when it only changes internally. |
These tests actually test most of the plugin, so they are too big for unit tests. I'm okay with unit tests, but should be much smaller and require no data file. |
See this for example: These are unit tests. But test files that their name starts with |
048c767
to
408b445
Compare
I pushed your plugin changes to master. |
Thank you so much for your swift response! Sorry for my curiosity, but which timezone do you live in? |
UTC+3:30 |
Test files: ilius/pyglossary-test#3