File tree Expand file tree Collapse file tree 14 files changed +212
-4
lines changed Expand file tree Collapse file tree 14 files changed +212
-4
lines changed Original file line number Diff line number Diff line change 773 . Open terminal and switch directory to the cloned sdk ` $GOPATH/src/github.com/optimizely/go-sdk ` .
884 . Run the following command to fetch dependencies: <pre >``` go get ``` </pre >
995 . Set ** DATAFILES_DIR='${Path to datafiles folder you want to use}'** Environment variable.
10- 6 . Copy all feature files to ` $GOPATH/src/github.com/optimizely/go-sdk/tests/integration/features ` folder.
11- 7 . Run the following command to execute gherkin tests: <pre >``` go test ./tests/integration/ ``` </pre >
10+ 6 . Create a folder named ` features ` in path ` $GOPATH/src/github.com/optimizely/go-sdk/tests/integration/ ` .
11+ 7 . Copy all feature files to this newly created folder.
12+ 8 . Run the following command to execute gherkin tests: <pre >``` go test -v ./tests/integration/ ``` </pre > To test with specific tags: <pre >``` go test -v ./tests/integration/ --godog.tags=FEATURE_ROLLOUT ``` </pre >
1213
1314For further instructions: https://golang.org/doc/code.html
Original file line number Diff line number Diff line change 1+ /****************************************************************************
2+ * Copyright 2019, Optimizely, Inc. and contributors *
3+ * *
4+ * Licensed under the Apache License, Version 2.0 (the "License"); *
5+ * you may not use this file except in compliance with the License. *
6+ * You may obtain a copy of the License at *
7+ * *
8+ * http://www.apache.org/licenses/LICENSE-2.0 *
9+ * *
10+ * Unless required by applicable law or agreed to in writing, software *
11+ * distributed under the License is distributed on an "AS IS" BASIS, *
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+ * See the License for the specific language governing permissions and *
14+ * limitations under the License. *
15+ ***************************************************************************/
16+
117package main
218
319import (
@@ -10,8 +26,7 @@ import (
1026 "github.com/optimizely/go-sdk/tests/integration/support"
1127)
1228
13- var opt = godog.Options {Output : colors .Colored (os .Stdout ), Tags : "~@FEATURE_ROLLOUT" }
14- var Godogs int
29+ var opt = godog.Options {Output : colors .Colored (os .Stdout )}
1530
1631func init () {
1732 godog .BindFlags ("godog." , flag .CommandLine , & opt )
Original file line number Diff line number Diff line change 1+ /****************************************************************************
2+ * Copyright 2019, Optimizely, Inc. and contributors *
3+ * *
4+ * Licensed under the Apache License, Version 2.0 (the "License"); *
5+ * you may not use this file except in compliance with the License. *
6+ * You may obtain a copy of the License at *
7+ * *
8+ * http://www.apache.org/licenses/LICENSE-2.0 *
9+ * *
10+ * Unless required by applicable law or agreed to in writing, software *
11+ * distributed under the License is distributed on an "AS IS" BASIS, *
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+ * See the License for the specific language governing permissions and *
14+ * limitations under the License. *
15+ ***************************************************************************/
16+
117package models
218
319// APIOptions represents parameters for a scenario
Original file line number Diff line number Diff line change 1+ /****************************************************************************
2+ * Copyright 2019, Optimizely, Inc. and contributors *
3+ * *
4+ * Licensed under the Apache License, Version 2.0 (the "License"); *
5+ * you may not use this file except in compliance with the License. *
6+ * You may obtain a copy of the License at *
7+ * *
8+ * http://www.apache.org/licenses/LICENSE-2.0 *
9+ * *
10+ * Unless required by applicable law or agreed to in writing, software *
11+ * distributed under the License is distributed on an "AS IS" BASIS, *
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+ * See the License for the specific language governing permissions and *
14+ * limitations under the License. *
15+ ***************************************************************************/
16+
117package models
218
319import (
Original file line number Diff line number Diff line change 1+ /****************************************************************************
2+ * Copyright 2019, Optimizely, Inc. and contributors *
3+ * *
4+ * Licensed under the Apache License, Version 2.0 (the "License"); *
5+ * you may not use this file except in compliance with the License. *
6+ * You may obtain a copy of the License at *
7+ * *
8+ * http://www.apache.org/licenses/LICENSE-2.0 *
9+ * *
10+ * Unless required by applicable law or agreed to in writing, software *
11+ * distributed under the License is distributed on an "AS IS" BASIS, *
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+ * See the License for the specific language governing permissions and *
14+ * limitations under the License. *
15+ ***************************************************************************/
16+
117package models
218
319import "time"
Original file line number Diff line number Diff line change 1+ /****************************************************************************
2+ * Copyright 2019, Optimizely, Inc. and contributors *
3+ * *
4+ * Licensed under the Apache License, Version 2.0 (the "License"); *
5+ * you may not use this file except in compliance with the License. *
6+ * You may obtain a copy of the License at *
7+ * *
8+ * http://www.apache.org/licenses/LICENSE-2.0 *
9+ * *
10+ * Unless required by applicable law or agreed to in writing, software *
11+ * distributed under the License is distributed on an "AS IS" BASIS, *
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+ * See the License for the specific language governing permissions and *
14+ * limitations under the License. *
15+ ***************************************************************************/
16+
117package models
218
319import (
Original file line number Diff line number Diff line change 1+ /****************************************************************************
2+ * Copyright 2019, Optimizely, Inc. and contributors *
3+ * *
4+ * Licensed under the Apache License, Version 2.0 (the "License"); *
5+ * you may not use this file except in compliance with the License. *
6+ * You may obtain a copy of the License at *
7+ * *
8+ * http://www.apache.org/licenses/LICENSE-2.0 *
9+ * *
10+ * Unless required by applicable law or agreed to in writing, software *
11+ * distributed under the License is distributed on an "AS IS" BASIS, *
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+ * See the License for the specific language governing permissions and *
14+ * limitations under the License. *
15+ ***************************************************************************/
16+
117package models
218
319// GetEnabledFeaturesParams represents params required for GetEnabledFeatures API
Original file line number Diff line number Diff line change 1+ /****************************************************************************
2+ * Copyright 2019, Optimizely, Inc. and contributors *
3+ * *
4+ * Licensed under the Apache License, Version 2.0 (the "License"); *
5+ * you may not use this file except in compliance with the License. *
6+ * You may obtain a copy of the License at *
7+ * *
8+ * http://www.apache.org/licenses/LICENSE-2.0 *
9+ * *
10+ * Unless required by applicable law or agreed to in writing, software *
11+ * distributed under the License is distributed on an "AS IS" BASIS, *
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+ * See the License for the specific language governing permissions and *
14+ * limitations under the License. *
15+ ***************************************************************************/
16+
117package models
218
319// GetFeatureVariableParams represents params required for GetFeatureVariable API's
Original file line number Diff line number Diff line change 1+ /****************************************************************************
2+ * Copyright 2019, Optimizely, Inc. and contributors *
3+ * *
4+ * Licensed under the Apache License, Version 2.0 (the "License"); *
5+ * you may not use this file except in compliance with the License. *
6+ * You may obtain a copy of the License at *
7+ * *
8+ * http://www.apache.org/licenses/LICENSE-2.0 *
9+ * *
10+ * Unless required by applicable law or agreed to in writing, software *
11+ * distributed under the License is distributed on an "AS IS" BASIS, *
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+ * See the License for the specific language governing permissions and *
14+ * limitations under the License. *
15+ ***************************************************************************/
16+
117package models
218
319// IsFeatureEnabledRequestParams represents params required for isFeatureEnabled API
Original file line number Diff line number Diff line change 1+ /****************************************************************************
2+ * Copyright 2019, Optimizely, Inc. and contributors *
3+ * *
4+ * Licensed under the Apache License, Version 2.0 (the "License"); *
5+ * you may not use this file except in compliance with the License. *
6+ * You may obtain a copy of the License at *
7+ * *
8+ * http://www.apache.org/licenses/LICENSE-2.0 *
9+ * *
10+ * Unless required by applicable law or agreed to in writing, software *
11+ * distributed under the License is distributed on an "AS IS" BASIS, *
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+ * See the License for the specific language governing permissions and *
14+ * limitations under the License. *
15+ ***************************************************************************/
16+
117package optlyplugins
218
319import (
You can’t perform that action at this time.
0 commit comments