On thing I've found running tests is that the common practice of calling all the test cases in module Foo things like 'Foo access tests', 'Foo admin UI' and so on is a total pain because it makes it harder to scan down the list of tests in the UI. You've already expanded the 'Foo' item in the list of tests, so you know that it's for Foo module.
Therefore, we should change the 'name' properties in getInfo() in our test cases to start with words that distinguish them, where it makes sense to do so.
Eg, 'Flag admin tests' -> 'Admin UI'
(the word 'test' is redundant here too!)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | flag-changed_names_of_test_cases-2210061-3.patch | 3.04 KB | cs_shadow |
| #3 | interdiff.txt | 899 bytes | cs_shadow |
| #1 | flag-changed_names_of_test_cases-2210061-1.patch | 3 KB | cs_shadow |
Comments
Comment #1
cs_shadow commentedChanged the name of test cases. Removed 'Flag' prefix and 'Tests' suffix. Did some other improvements to the names wherever the new names made better sense. Any suggestions are welcome.
Comment #2
joachim commentedThanks for the patch!
Looks pretty good.
A few things that I'll investigate when I have more time (though feel free to beat me to it if you like) --
Is that definitely the UI rather than just CRUD API?
We've lost that this is about access.
'Access to flags on entity forms' maybe?
I'm not entirely sure about these two tests, as their class names don't match either, but are they a pair that test the basic link and the confirm form?
Comment #3
cs_shadow commentedReg. 1, I read the tests, it seems to me that its not for UI and just tests the API, so changed it to 'CRUD API'.
Reg. 2, changed the name to 'Access to flags via entity forms'.
Reg.3, I read the tests and as far as I can understand, they are a pair that test the basic link and the confirm form. Though I renamed the first one to incorporate that the access is through basic links.
Have a look at these changes, and let me know if in case you want any changes.
I'm attaching the new patch and its inter-diff with the previous patch for reference.
Comment #4
joachim commentedAh I see what you mean -- FlagLinkTypeConfirmTestCase doesn't bother checking access, just that the links works.
Committed. Thanks!