Skip to content

e2e: prototype

Warren Gifford requested to merge jc/e2e into master

Created by: unknwon

A prototype to run our e2e tests in go test style, includes an example search test that tests the "visibility:" filter.

Simply run go test and e2e tests will kick off against our GraphQL API, which also allows us to run a single test via go test -run <name> command.

In addition, this prototype includes some setup logic that can handle automated site init and sign in so there is no need to obtain a token in-advance.

Sample output for this prototype:

→ go test -v
2020/05/20 20:36:45 Site admin has been created: e2e-admin
=== RUN   TestSearch_VisibilityFilter
=== RUN   TestSearch_VisibilityFilter/type:repo_visibility:private
--- PASS: TestSearch_VisibilityFilter (0.01s)
    --- PASS: TestSearch_VisibilityFilter/type:repo_visibility:private (0.01s)
PASS
ok  	github.com/sourcegraph/sourcegraph/dev/e2e	11.439s

Merge request reports

Loading