Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robo test, should that be exec not run? #1

Open
michaelpporter opened this issue Aug 12, 2017 · 0 comments
Open

Robo test, should that be exec not run? #1

michaelpporter opened this issue Aug 12, 2017 · 0 comments

Comments

@michaelpporter
Copy link

Thank you for this example setup, it has helped me learn docker and robo much faster.

In your RoboFile.php you have test setup to run the container. You also have test in your docker-compose. In my setup this command creates a new container each time I run robo test I changed it to exec which will use the existing container.

/**
     * Run Behat tests.
     */
    public function test()
    {
        $this->taskExec(self::COMPOSE_BIN)
            ->args(['run', 'testphp', self::BEHAT_BIN])
            ->option('colors')
            ->option('format', 'progress')
            ->run();
    }

My change.

/**
     * Run Behat tests.
     */
    public function test()
    {
        $this->taskExec(self::COMPOSE_BIN)
            ->args(['exec', 'testphp', self::BEHAT_BIN])
            ->option('colors')
            ->option('format', 'progress')
            ->run();
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant