You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess the problem is not that it is not executed, but that it is executed after the docker_run. The reason is that docker_run should be run before running any test. It is executed at RSpec compile time in order to be able to check, for example, OS platform, outside it blocks (see #2).
I mean, the problem is that RSpec execution has different stages and running the container in one or the other stage has its advantages and disadvantages. Keep in mind that RSpec before blocks are run before the its blocks, but not before everything that is inside a describe block.
IMHO, the best way to do what you are trying to do is to use docker_build resource instead of a before. If docker_build needs to be extended to add a feature you need, I think that would be easier than trying to use before blocks to create your images. It may not be well explained in the README, but this gem is not meant to be used that way.
Dockerspec Version
0.4.1
Ruby Version
2.4
Platform Details
Mac
Scenario
Run the following, but
:all
is not executedSteps to Reproduce
See code above.
Expected Result
Executing
:all
beforedocker_run
, or others.Actual Result
Not being executed.
The text was updated successfully, but these errors were encountered: