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 7
7
3 . Open terminal and switch directory to the cloned sdk ` $GOPATH/src/github.com/optimizely/go-sdk ` .
8
8
4 . Run the following command to fetch dependencies: <pre >``` go get ``` </pre >
9
9
5 . 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 >
12
13
13
14
For 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
+
1
17
package main
2
18
3
19
import (
@@ -10,8 +26,7 @@ import (
10
26
"github.com/optimizely/go-sdk/tests/integration/support"
11
27
)
12
28
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 )}
15
30
16
31
func init () {
17
32
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
+
1
17
package models
2
18
3
19
// 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
+
1
17
package models
2
18
3
19
import (
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
+
1
17
package models
2
18
3
19
import "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
+
1
17
package models
2
18
3
19
import (
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
+
1
17
package models
2
18
3
19
// 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
+
1
17
package models
2
18
3
19
// 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
+
1
17
package models
2
18
3
19
// 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
+
1
17
package optlyplugins
2
18
3
19
import (
You can’t perform that action at this time.
0 commit comments