Test Examples
Sample path test project with some scenarios using defined steps at Golium and creating new ones.
Structure
The examples folder contains the following directories:
features
. Features for the test suite in BDD.
environments
. It contains the configuration for each environment in a specific yml file. This directory is configured with the environment variable: DIR_ENVIRONMENTS
.
schemas
. JSON schemas. This is used by some steps to validate an input (e.g. the HTTP response body). This directory is configured with the environment variable: DIR_SCHEMAS
.
logs
. It stores the log files generated by the execution of the suite tests.
steps
. New steps added using Golium as dependency sharing data between them.
Testing
For testing:
cd test/acceptance
go test -v
Run specific tag @shared
from feature file:
go test -v --godog.tags="shared"
License
Copyright 2021 Telefonica Cybersecurity & Cloud Tech SL
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or lied.
See the License for the specific language governing permissions and
limitations under the License.