Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joshi.rohit100 created an issue. See original summary.

joshi.rohit100’s picture

Status: Active » Needs review
FileSize
3.94 KB

here we go.

joshi.rohit100’s picture

Status: Needs review » Needs work

The last submitted patch, 3: block-visibilty-group-creation-ui.patch, failed testing.

joshi.rohit100’s picture

Status: Needs work » Needs review
FileSize
3.94 KB

mis-named test directory name ):

Status: Needs review » Needs work

The last submitted patch, 5: block-visibilty-group-creation-ui.patch, failed testing.

tedbow’s picture

Status: Needs work » Needs review
tedbow’s picture

I turned off "Continuous integration tests" because it looks like it fails without a unit test. You might need to resubmit.

tedbow’s picture

Status: Needs review » Needs work

Not sure if there is problem with my set up but when I try to run the tests locally I get:

The website encountered an unexpected error. Please try again later.

ReflectionException: Class Drupal\block_visibility_groups\Tests\BlockVisibilityGroupsTestBase does not exist in ReflectionClass->__construct() (line 306 of core/modules/simpletest/src/TestDiscovery.php).

I am using core 8.0.0-beta15

The last submitted patch, 5: block-visibilty-group-creation-ui.patch, failed testing.

joshi.rohit100’s picture

Status: Needs work » Needs review
FileSize
3.95 KB
joshi.rohit100’s picture

FileSize
4.04 KB

somehow forgot to mention @group ):

joshi.rohit100’s picture

One problem here it is showing that we have ConditionsSetFormTrait trait which is using StringTranslationTrait and also for example, we are extending FormBase class by BlockVisibilityGroupForm which also using that string translation trait. So there is collision in the $this->t() in some classes which are using this new trait and extending core classes which already have this transaltion trait.

But I think, it is not related with test, so here we go....

Status: Needs review » Needs work

The last submitted patch, 13: 2574629-13.patch, failed testing.

tedbow’s picture

Status: Needs work » Needs review
FileSize
7.61 KB

I have attached a patch that fixes the trait problem with ConditionsSetFormTrait that cause a drupalci testing error.

tedbow’s picture

Attached patch that remove translation function also does use StringTranslationTrait

So only works because all classes that use this trait also use StringTranslationTrait or least has t function.

The previous patch relies on method_exists which probably is wasteful.

joshi.rohit100’s picture

Status: Needs review » Needs work

The last submitted patch, 17: interdiff-17.patch, failed testing.

The last submitted patch, 17: interdiff-17.patch, failed testing.

joshi.rohit100’s picture

Status: Needs work » Needs review

Oops! wrong extension for interdiff

  • tedbow committed da6f58a on 8.x-1.x authored by joshi.rohit100
    Issue #2574629 by joshi.rohit100, tedbow: Test for visibility group...
tedbow’s picture

Status: Needs review » Fixed

@joshi.rohit100 thanks so much for the patch. Sorry it took me so long to get back to this. Test patches are especially appreciated because they make development so much easier.

tedbow’s picture

I have create a meta issue for tests. #2608378: [Meta] Create Web Tests

Status: Fixed » Closed (fixed)

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