Problem/Motivation
All of our non-kernel tests are SimpleTest. We should move to BrowserTest. We also have a lot of duplicate testing helper methods in our base classes that could be traits (for ourselves and contrib.) This is the planning issue for simplifying and moving our tests to BrowserTest.
Proposed resolution
The following items:
- Move common testing helper methods into traits and update tests to use them
- Move tests based on SimpleTest to BrowserTest
- See if we can move traits to
\Drupal\Tests\commerce_*
Any issues relating will be added as child items.
Remaining tasks
See child issues.
Comments
Comment #2
mglamanDiscovered that SimpleTest cannot autoload classes in
\Drupal\Tests\namespace. Our test traits will need to be in src/ and documented that they are for tests.Comment #3
mglamanWe now have PhantomJS in our TravisCI build with a Javascript test!
Comment #4
mglamanOnce all child tickets are done, we will be 100% off of Simpletest!
Comment #5
mglamanUpdating title to reflect fact that some child issues involve porting to Kernel test so we no longer have simpletest tests.
Comment #6
mglamanI need to update this issue with the few remaining tasks now that we have 0 simpletest tests.
Comment #7
mglamanLong overdue closure of this :) Thanks to everyone who helped in the effort.