Skip to content

Instantly share code, notes, and snippets.

View youknowjack's full-sized avatar

Jack Humphrey youknowjack

View GitHub Profile
{
"tests" : {
"bgcolortst" : {
"version" : 1,
"description" : "background color test",
"constants" : {
},
"rule" : null,
"salt" : "bgcolortst",
"buckets" : [ {
{
"tests" : {
"bgcolortst" : {
"version" : 1,
"description" : "background color test",
"constants" : {
},
"rule" : null,
"salt" : "bgcolortst",
"buckets" : [ {
{
"tests" : {
"bgcolortst" : {
"version" : 1,
"description" : "background color test",
"constants" : {
},
"rule" : null,
"salt" : "bgcolortst",
"buckets" : [ {
{
"tests" : {
"bgcolortst" : {
"version" : 1,
"description" : "background color test",
"constants" : {
},
"rule" : null,
"salt" : "bgcolortst",
"buckets" : [ {
{
"tests" : {
"bgcolortst" : {
"version" : 1,
"description" : "background color test",
"constants" : {
},
"rule" : null,
"salt" : "bgcolortst",
"buckets" : [ {
{
"tests" : {
"bgcolortst" : {
"version" : 1,
"description" : "background color test",
"constants" : {
},
"rule" : null,
"salt" : "bgcolortst",
"buckets" : [ {
<build>
<plugins>
<!-- add this plugin definition -->
<plugin>
<groupId>com.indeed</groupId>
<artifactId>proctor-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>proctor-generate</id>
{
"tests" : {
"bgcolortst" : {
"version" : 1,
"description" : "background color test",
"salt" : "bgcolortst",
"buckets" : [ {
"name" : "inactive",
"value" : -1,
"description" : "",
import com.indeed.proctor.common.*;
import com.indeed.proctor.common.model.*;
import javax.el.FunctionMapper;
...
public Proctor loadProctor(final String definitionFile) throws MissingTestMatrixException, IOException {
final String specPath = "/org/example/proctor/ExampleGroups.json";
final ProctorSpecification spec = ProctorUtils.readSpecification(getClass().getResourceAsStream(specPath));
final FunctionMapper functionMapper = RuleEvaluator.defaultFunctionMapperBuilder().build();
import com.google.common.base.Suppliers;
import org.example.proctor.ExampleGroups;
import org.example.proctor.ExampleGroupsManager;
import com.indeed.proctor.common.*;
import com.indeed.proctor.common.model.*;
...
public ExampleGroups getTestGroups(final Proctor proctor, final String userId,
final HttpServletRequest request, final HttpServletResponse response) {