[Differential] [Commented On] D4379: Qt unit test template: add option to prefix test methods with "test"

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Wed Feb 1 00:38:01 UTC 2017


kossebau added a comment.


  In https://phabricator.kde.org/D4379#82035, @apol wrote:
  
  > Shouldn't test cases then be actually named "test*"?
  
  
  Could you give an example, not sure what you mean?
  
  The idea with the prefix is to allow the user optionally to enter test cases (by UI lingo) without a "test" prefix, for quicker typing. And then still have all the ,method names generated with a "test" prefix, if they want.
  Hardcoding seemingly common practice, if the prefix is done, the first letter after the prefix would be enforced to camelCased: "test" + "foo" -> "testFoo".

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D4379

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: kossebau, #kdevelop
Cc: apol, kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170201/09586752/attachment.html>


More information about the KDevelop-devel mailing list