Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

fixed node tests #1

Merged
merged 4 commits into from
Feb 28, 2018
Merged

fixed node tests #1

merged 4 commits into from
Feb 28, 2018

Conversation

schmunk42
Copy link
Contributor

PR is for testing on Travis


Q A
Is bugfix? yes/no
New feature? yes/no
Breaks BC? yes/no
Tests pass? yes/no
Fixed issues comma-separated list of tickets # fixed by the PR, if any

@klimov-paul
Copy link
Member

Well, this is already better: no error, but tests are failing.

@schmunk42
Copy link
Contributor Author

Comment copied from original issue


Most tests are passing, see https://travis-ci.org/yiisoft/yii2-jquery/jobs/346996359 - I guess pjax can be removed and captcha also (move test to https://github.com/yiisoft/yii2-captcha)

@schmunk42 schmunk42 changed the title [WIP] fixing node tests fixed node tests Feb 27, 2018
- travis_retry composer install --prefer-dist --no-interaction
# setup PHP tests
- |
if [ $TASK_TESTS_PHP == 1 ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need that for JS tests as well...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i.e. JS packages are installed via composer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point :) The question is how it will be handled in 2.1 ...

As laid out in https://github.com/yiisoft/yii2/issues/14862#issue-259192470 I think we should drop requirements in composer.json in favour of packages.json.

Since I've added it to packages.json, the npm install command fetches the packages needed for testing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@klimov-paul any ideas about it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How should I know?
It seems you and @schmunk42 have already decided to move towards new asset plugin. If you did, you should start to upgrade infrastructure, including the docs at the core and all asset-related extensions.

I would rather use CDN as default asset bundle source to aviod necessity of any plugin or other composer hack usage. This will allow particular extension to function out-of-the-box in most case, while leaving the developer choice in which way he want to install the assets.

I suppose it is too early to perform global asset management changes, like enforcing 'foxy' usage.
The core extensions yii2-gii and yii2-debug should be stripped from asset dependency first. Only after then this matter can be considered.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samdark
Copy link
Member

samdark commented Feb 28, 2018

Please remove PJAX and CAPTCHA from tests.

@schmunk42
Copy link
Contributor Author

I've removed the captcha part, but I'd suggest to do the PJAX stuff in a separate PR and merge this one for now.

There are hundreds of pjax occurences in yii.js, yii.gridView.js and yii.test.js 😖
It's really good to see this go 😄

@samdark samdark merged commit 76f66b9 into yiisoft:master Feb 28, 2018
@samdark
Copy link
Member

samdark commented Feb 28, 2018

Merged. Thanks.

@schmunk42 schmunk42 deleted the feature/node-tests branch February 28, 2018 14:26
@schmunk42
Copy link
Contributor Author

@samdark Side question, did you merge the commits squashed? Is this a (new) feature on GitHub or did you squash them manually?

@samdark
Copy link
Member

samdark commented Feb 28, 2018

I did. It's not new. It's there for about 2 years.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants