I'm working on some JS cleanup for core and wanted to create a test for around states. Happily I found that this may be part of testswarm already, but I can't seem to get it to work (or work as I expect, but that maybe the issue ;)). Maybe this is already a known issue or a work in process, but I wanted to check in. My process:

  1. Followed http://drupal.org/node/1780104
  2. Running all tests ends on the collapsible fields test
  3. Running the states form test ends up on the form, but there isn't any qunit results.
  4. Running the basictests page also displays a page without any test results.

These may be setup different so please excuse me if this isn't ready yet. I am going to use the states form to test some things as is but wasn't sure if I was going to see qunit results here too.

Comments

attiks’s picture

Make sure any caching is disabled

The live version can be found at http://drupal-8.drupaltestswarm.com/testswarm-tests/LATEST can you check if it behaves the same?

rballou’s picture

StatusFileSize
new38.49 KB

Ok, finally had a chance to look into this a bit more. I don't see the same information as shown on the page above.

I created a new install on a new server, just to be sure nothing I had installed was going a bit crazy. In a nut shell, if I navigate to a test page (part of Test Swarm Tests or Test Swarm Forms modules), I see the a screen like the one below without any tests being run. There are no JS errors on this page and as far as I can tell, the "*.tests.js" associated with that test is not being loaded. I dug around a little bit and the library info hook does contain the correct path to the JS file, but for some reason it is not included.

How to Replicate

  1. I created an AWS instance with php5, apache2, and mysql on a Ubuntu server
  2. Cloned Drupal 8 into the vhost directory: git clone --recursive --branch 8.x http://git.drupal.org/project/drupal.git
  3. Enabled the mod rewrite module: sudo a2enmod rewrite
  4. Allowed htaccess override in vhost configuration
  5. Created a mysql database for the site
  6. Installed the site
  7. Cloned Test Swarm into sites/all/modules
  8. Enabled Test Swarm, Test Swarm Forms, and Test Swarm Tests
  9. Navigated to /testswarm-tests.
  10. Clicked "Test now in Bartik" for "core::testswarm_forms_collapse"
  11. Landed on page with the form, but no tests

PHP version: 5.3.10
MySQL: 5.5

Caching is not enabled and I cleared cache a couple times just to be sure. I hope this helps ... and let me know if there is anything else I can help do to track this down.

jelle_s’s picture

Assigned: Unassigned » jelle_s

Bug confirmed with latest git clone of Drupal 8.

jelle_s’s picture

Assigned: jelle_s » Unassigned
Status: Active » Fixed

Fixed in latest dev.

The reason was that the library 'drupal.settings' was renamed to 'drupalSettings' and drupal_add_library just fails silently when it can't find the dependencies for the library it wants to add.

I also updated the tests to the latest d8 dev version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.