From cbe0f8a9eb4b7adf85afa08ba2f945399ca9eb0f Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 12 Apr 2016 21:00:20 -0700 Subject: [PATCH] Split environments into configs --- tests/_envs/testing.yml | 18 ++++++++++++++++++ tests/acceptance.suite.yml | 24 +++++++----------------- 2 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 tests/_envs/testing.yml diff --git a/tests/_envs/testing.yml b/tests/_envs/testing.yml new file mode 100644 index 000000000000..29c36195e2d0 --- /dev/null +++ b/tests/_envs/testing.yml @@ -0,0 +1,18 @@ +# Codeception Test Suite Configuration + +# suite for acceptance tests. +# perform tests in browser using the Selenium-like tools. +# powered by Mink (http://mink.behat.org). +# (tip: that's what your customer will see). +# (tip: test your ajax and javascript by one of Mink drivers). + +# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. +class_name: AcceptanceTester +modules: + enabled: + - WebDriver + - \Helper\Acceptance + config: + WebDriver: + url: 'http://localhost:8000' + browser: 'phantomjs' diff --git a/tests/acceptance.suite.yml b/tests/acceptance.suite.yml index 64c7e7b3c233..61ac2b1a5747 100644 --- a/tests/acceptance.suite.yml +++ b/tests/acceptance.suite.yml @@ -7,22 +7,12 @@ # (tip: test your ajax and javascript by one of Mink drivers). # RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. - class_name: AcceptanceTester modules: - enabled: - - WebDriver: - url: https://snipe-it.dev:1337 - browser: phantomjs - -env: - testing-ci: - modules: - - WebDriver: - url: http://localhost:8000 - browser: phantomjs - testing: - modules: - - WebDriver: - url: http://localhost:8000 - browser: phantomjs + enabled: + - WebDriver + - \Helper\Acceptance + config: + WebDriver: + url: 'https://snipe-it.dev:1337' + browser: 'firefox'