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
Improve JUnit Test code #3789
Comments
benoit.wiart (migrated from Bugzilla): |
benoit.wiart (migrated from Bugzilla): Can a committer merge https://github.com/apache/jmeter/pull/81/files before I start providing the PRs ? |
benoit.wiart (migrated from Bugzilla):
No change in the number of executed tests *
Jorphan AllTests is a stinky monkey. PR #85 |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1727442&view=rev Added: |
benoit.wiart (migrated from Bugzilla): Update the junit tests execution to a recent junit runner Not that while it's a recent runner you can not use pure junit annotation tests as they're not detected in the classpath. This has only been tested locally, it should work on the bot. PR #94 |
benoit.wiart (migrated from Bugzilla): We now scan for classes that extends TestCase (junit3) and for classes that have at least one method annotated with @test PR #95 |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1727996&view=rev Modified: |
benoit.wiart (migrated from Bugzilla): this patch is "mechanical" PR #100 |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1728218&view=rev Modified: |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1728219&view=rev Modified: |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1728220&view=rev Modified: |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1728221&view=rev Modified: |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1728223&view=rev Added: |
benoit.wiart (migrated from Bugzilla): misc clean up PR #104 |
benoit.wiart (migrated from Bugzilla): |
benoit.wiart (migrated from Bugzilla): |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1728418&view=rev Added: |
benoit.wiart (migrated from Bugzilla):
|
Sebb (migrated from Bugzilla): This is wrong, as a lot of the tests in that class do not require a GUI. |
Sebb (migrated from Bugzilla): It's not possible to instantiate it if the code is running Headless. I think this needs to be resolved somehow, because there are some useful tests that cannot be run under Jenkins etc. For example, checking that the GUI components have entries in component_reference. Ideally RSyntaxtTextArea should behave like JTextArea and allow non-Headless instantiation, but that may take a while to get fixed. Other approaches:
|
Sebb (migrated from Bugzilla):
See #3896 regarding RSyntaxTextArea |
Sebb (migrated from Bugzilla): Modified: |
@pmouawad (migrated from Bugzilla):
(In reply to benoit.wiart from comment 18)
I don't think it's the commit that did this. Regards |
Sebb (migrated from Bugzilla):
This has has broken Test classes that depend on JMeterTestCase. They cannot now be run stand-alone because JMeterTestCase no longer extends TestCase. |
Sebb (migrated from Bugzilla):
Ignore that. The problem is that JMeterTestCase used to support JUnit3; it now only supports JUnit4. |
benoit.wiart (Bug 58897):
For example TestSamplingStatCalculator is not executed with ant as it's a junit4 test (it works fine in your IDE)
Some code added a few years ago silently disabled a lot of tests :
when run in headless mode (apache build bot ?) a HeadlessException is thrown but wrapped in an ExceptionInInitializerError
this error stop the JmeterTest suite and the following tests are disabled
Looks like the test code was frozen when an asteroid hit earth and killed all the dinosaurs.
OS: All
Depends on:
The text was updated successfully, but these errors were encountered: