Current I've a problem with Yii, when I'd using "@group
annotation" ( support by PHPUnit ) to test a groups function in my class extends from Yii.
I'd configured as guidance in forum of Yii (NetBeans IDE and Yii projects).
I'd tested all functions in my class, when I press Ctrl + F6. It runs very good.
But when I'd used "@group
annotation" (support by PHPUnit). It doesn't run, I don't see the dialog box.
When I check "Ask for Test Groups Before Running Tests" in dialog configure PHPUnit. When I press Ctrl + F6, I don't see the dialog box.
I thing this's problem here are two file "bootstrap.php" and "phpunit.php", but I don't how alter it?
I had question as it for forum Yii, and demo code.
Pardon me sir, I don't mean to be rude, are you maybe unaware that your english is terrible?
I am only asking you see, because maybe no one has ever told you this before because we are way to polite to risk offense. On the contrary it would generally be considered more appropriate to just ignore this situation instead and it will disappear. Even more so in this context I am afraid, us being in public and all.
At the risk of being scolded, I feel obliged to point out that this is a problem for you, unless you haven't noticed. Don't worry though there is nothing to be ashamed of and personally I could care less if you thing this's problem here are or here are not. I say go for it. Either way, only if you agree that there is a problem can it be fixed.
Fixing the grammar and spelling is the easy part, you've heard about Google translate right? Use it, and see less people ignoring your post while you get answers timeously, this is win-win right. With 64 languages at your disposal find one that you are adept with and let Google worry about placement of your k's and apostrophes while you instead focus on correctly referring to the items in question which don't require any translation, as for example what to call: phpunit.xml Agreed?
How to alter bootstrap.php or phpunit.xml? Just open in your favourite text editor, Netbeans will suffice. As to the meaning of these files, Referring to phpunit documentation available in english, french and japanese it would seem.
- bootstrap - A "bootstrap" PHP file that is run before the tests.
- configuration - If phpunit.xml or phpunit.xml.dist (in that order) exist in the current working directory and --configuration is not used, the configuration will be automatically read from that file.
I would not worry about bootstrap.php if you haven't needed it you probably won't and suffice to say nothing you can add there will improve the behaviour in Netbeans.
With regards to configuring groups the phpunit documentation is quite elaborate:
The <groups> element and its <include>, <exclude>, and <group> children can be used to select groups of tests from a suite of tests that should (not) be run.
<groups> <include> <group>name</group> </include> <exclude> <group>name</group> </exclude> </groups>
The XML configuration above corresponds to invoking the TextUI test runner with the following switches:
--group name
--exclude-group name
Again nothing which would improve netbeans with regard to the Ctrl+F6 usage you are after, instead I would also suggest you refer to Devin M's explanation, as @hakre already suggested, combine that with the Netbeans - run test groups documentation and there is nothing more I could add still as it is complete, I am afraid.
Good luck and please let us know how things have turned out for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With