Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: introduce flag for trace input to e2e framework #1318

Merged
merged 26 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d8dcf54
Add json marshal/unmarshal for test traces
p-offtermatt Sep 19, 2023
276e347
Remove auto-generated trace files
p-offtermatt Sep 19, 2023
28eec48
Add an example trace to see the input format
p-offtermatt Sep 19, 2023
ae67d35
Add comment in rapid test
p-offtermatt Sep 19, 2023
5d894e6
Remove duplicated test case
p-offtermatt Sep 19, 2023
5dfb63b
Remove TODO in favor of comment
p-offtermatt Sep 19, 2023
0948b05
Reduce code duplication
p-offtermatt Sep 19, 2023
e3e3e84
Run go mod tidy and make format
p-offtermatt Sep 19, 2023
010bec3
Correct testdata directory in gitignore
p-offtermatt Sep 19, 2023
f00e209
Remove testdata directory
p-offtermatt Sep 19, 2023
70350c2
Remove testdata from gitignore
p-offtermatt Sep 19, 2023
b02d4f7
Add tracehandler_testdata
p-offtermatt Sep 19, 2023
a519315
Remove example trace, since there are examples in the test data
p-offtermatt Sep 19, 2023
9eb0a1f
Revert unintentional change to .gitignore
p-offtermatt Sep 20, 2023
2f961cf
Remove propType field from generator
p-offtermatt Sep 20, 2023
760c67a
Add docstrings to action_rapid test and state_rapid_test to better ex…
p-offtermatt Sep 20, 2023
e62c9a7
Add flag for reading test traces
p-offtermatt Sep 19, 2023
e56287f
Refactor testRun to testConfig and remove testConfig specification fo…
p-offtermatt Sep 20, 2023
8cd727a
Remove ::testConfig from Makefile
p-offtermatt Sep 20, 2023
0e0ab73
Re-add removed BUILDDIR instruction
p-offtermatt Sep 20, 2023
28f8fb1
Re-add removed newline
p-offtermatt Sep 20, 2023
9a4c5e3
Fix duplicated words
p-offtermatt Sep 20, 2023
bc9a51c
Merge branch 'main' into ph/trace-flag
p-offtermatt Sep 25, 2023
6fc1e90
Checkout tracehandler testdata from main
p-offtermatt Sep 25, 2023
444636b
Remove unecessary test trace
p-offtermatt Sep 25, 2023
d2ab8ab
Commit merged file
p-offtermatt Sep 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/automated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,17 @@ jobs:
go-version: "1.20"
- name: E2E tests
run: make test-e2e-short-cometmock
Trace-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: E2E tests
run: make test-trace
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ test-gaia-e2e-parallel-tagged:
test-no-cache:
go test ./... -count=1 && go run ./tests/e2e/...

# test reading a trace from a file
test-trace:
go run ./tests/e2e/... --test-file tests/e2e/tracehandler_testdata/happyPath.json::default

###############################################################################
### Linting ###
###############################################################################
Expand Down
Loading
Loading