Yii Framework Forum: Codeception test fails on attempt to publish assets - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Codeception test fails on attempt to publish assets

#1 User is offline   ad_amin 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 18-October 16

Posted 22 June 2017 - 04:22 AM

Hi,

When I run my codeception functional tests I get this error:

The file or directory to be published does not exist: <yii root>/<my app>/vendor/bower/jquery/dist'

The problem seems to be that the path to assets is constructed wrongly - instead of accessing vendor directly from the yii installation root directory it looks under my app directory for the vendor folder. The directory is not in there obviously so the error message is perfectly fine but what might be the reason of the path to vendor directory being prepended with my app directory name?

I've run out of ideas with this one, so any help would be much appreciated.
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 23 June 2017 - 02:39 PM

Is your app based on basic template?
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

#3 User is offline   ad_amin 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 18-October 16

Posted 28 June 2017 - 03:24 AM

Hi,

Sorry for a late reply.

No, my app is based on the advanced template.
0

#4 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 04 July 2017 - 12:50 PM

Just tried installing clean advanced app and running tests. Can't reproduce your error.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users