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, pattern and documentation review #426

Merged
merged 92 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
222c5bb
refactor(api) uniform file names
helderbetiol Feb 23, 2024
3bc0312
Merge branch 'main' into chore378-review-pattern
helderbetiol Mar 18, 2024
ae3d311
Update README.md
helderbetiol Mar 21, 2024
d16163e
test(api) add domain bulk creation tests
aguszorza Mar 22, 2024
9db16e6
Merge branch 'chore378-review-pattern' of https://github.com/ditrit/O…
aguszorza Mar 22, 2024
0492ba2
feqt(doc) new README.md
helderbetiol Mar 22, 2024
55391f4
Merge branch 'main' of https://github.com/ditrit/OGrEE-Core into chor…
aguszorza Mar 22, 2024
9055ec9
test(api) test complex filters endpoint
aguszorza Mar 22, 2024
6354330
test(api) test api entities
aguszorza Mar 25, 2024
71d922c
fix(app) change description type from list to string
aguszorza Mar 25, 2024
0d15a52
fix(app) fix conflicts
aguszorza Mar 25, 2024
5bc0c33
test(api) add temperature tests
aguszorza Mar 25, 2024
a713100
test(api) add link and unlink tests
aguszorza Mar 25, 2024
c45e9e7
test(api) entity validation
aguszorza Mar 25, 2024
bdb1070
test(api) add auth tests
aguszorza Mar 26, 2024
624844f
test(api) add project tests
aguszorza Mar 26, 2024
52717e0
test(api) add rbac tests
aguszorza Mar 26, 2024
4fd68f9
test(api) add coverage in workflow
aguszorza Mar 27, 2024
28a815b
test(api) change path to coverage report
aguszorza Mar 27, 2024
d462dd9
test(api) change path to coverage report
aguszorza Mar 27, 2024
1ca87e3
test(api) change path to coverage report
aguszorza Mar 27, 2024
0c93695
test(api) test entity validation
aguszorza Mar 27, 2024
d940188
test(api) test invalid auth token
aguszorza Mar 27, 2024
35339fc
test(api) test endDate and startDate filters
aguszorza Mar 27, 2024
bb2457c
test(cli) test create and update objects
aguszorza Mar 28, 2024
9dfa55f
fix(api) fix swagger endpoint method
aguszorza Apr 2, 2024
baa7a59
fix(api) fix swagger parameter types
aguszorza Apr 2, 2024
5c2d9ef
fix(api) fix swagger: change user to required
aguszorza Apr 2, 2024
7c3abd0
fix(app) create layer with complex filters
helderbetiol Apr 2, 2024
2bfa55a
test(api) test request with invalid body
aguszorza Apr 2, 2024
5fa3c43
Merge branch 'chore378-review-pattern' of https://github.com/ditrit/O…
aguszorza Apr 2, 2024
64aa04f
test(api) test get subentities with invalid format
aguszorza Apr 2, 2024
aa276cd
fix(api) search layers objects endpoint
helderbetiol Apr 2, 2024
e755f17
fix(api) endpoint doc update
helderbetiol Apr 2, 2024
94581c9
fix(cli) remove complex filter convertion to map
helderbetiol Apr 3, 2024
5dddc48
test(api) test layer objects
aguszorza Apr 3, 2024
29e861c
Merge branch 'chore378-review-pattern' of https://github.com/ditrit/O…
aguszorza Apr 3, 2024
f702073
test(api) fix complex filter tests
aguszorza Apr 3, 2024
1b7d681
test(api) add more entity tests
aguszorza Apr 3, 2024
2318389
test(api) add more invalid body tests
aguszorza Apr 3, 2024
8967ee5
test(cli) applyTemplate tests for room and device
aguszorza Apr 3, 2024
54c5f59
fix(cli) replace default value by error on apply tmpl
helderbetiol Apr 4, 2024
502207c
test(cli) applyTemplate tests changes for device
aguszorza Apr 4, 2024
a05c053
Merge branch 'chore378-review-pattern' of https://github.com/ditrit/O…
aguszorza Apr 4, 2024
61456b3
test(cli) applyTemplate error test for device
aguszorza Apr 4, 2024
3de2f72
fix(cli) fix conflicts
aguszorza Apr 4, 2024
a70c718
test(cli) starting to add command controller tests
aguszorza Apr 4, 2024
b8ad834
test(cli) add more command controller tests
aguszorza Apr 5, 2024
06262a2
test(api) verify unlink and link
aguszorza Apr 5, 2024
90d346c
test(cli) add more command controller tests
aguszorza Apr 5, 2024
8272645
test(cli) add more command controller tests
aguszorza Apr 5, 2024
4bf3fc1
test(cli) add more controller tests: create user and is attribute dra…
aguszorza Apr 8, 2024
aec4b2c
test(cli) add more controller tests: UI functions and add user role
aguszorza Apr 8, 2024
7d7e99b
test(cli) add tests for cd command
aguszorza Apr 8, 2024
536df5b
test(cli) add tests for sendSchema
aguszorza Apr 9, 2024
5bf7cd9
test(cli) add error tests
aguszorza Apr 9, 2024
3543c6a
test(cli) add more loadTemplate tests
aguszorza Apr 9, 2024
1442701
test(cli) add a pwd test
aguszorza Apr 9, 2024
59b4f82
test(cli) add models entity tests
aguszorza Apr 9, 2024
f6396fb
Merge branch 'main' into chore378-review-pattern
helderbetiol Apr 10, 2024
27becdd
fix(api) group test
helderbetiol Apr 10, 2024
55242e9
fix(api) group test
helderbetiol Apr 10, 2024
fe6c3bc
fix(api) group test
helderbetiol Apr 10, 2024
0254d1e
fix(api) group test
helderbetiol Apr 10, 2024
8652d18
Merge branch 'main' into chore378-review-pattern
helderbetiol Apr 10, 2024
e08d8c8
test(api) fix broken test
aguszorza Apr 10, 2024
915a40d
test(cli) add tests to utils package
aguszorza Apr 10, 2024
95ba95b
Merge branch 'main' into chore378-review-pattern
helderbetiol Apr 11, 2024
ccb2691
test(cli) add layers tests
aguszorza Apr 11, 2024
bd83a51
test(cli) add models path tests
aguszorza Apr 11, 2024
d835ddd
Merge branch 'chore378-review-pattern' of https://github.com/ditrit/O…
aguszorza Apr 11, 2024
c1a8fb6
feat(doc) update cli language
helderbetiol Apr 11, 2024
e995b3d
Merge branch 'chore378-review-pattern' of https://github.com/ditrit/O…
helderbetiol Apr 11, 2024
58d5a64
test(cli) add lexer and parser tests from main package
aguszorza Apr 11, 2024
968816c
Merge branch 'chore378-review-pattern' of https://github.com/ditrit/O…
aguszorza Apr 11, 2024
538e2e9
feat(doc) update cli language
helderbetiol Apr 12, 2024
aa3ad9f
test(cli) add more parser tests
aguszorza Apr 12, 2024
4fcbfe5
Merge branch 'chore378-review-pattern' of https://github.com/ditrit/O…
aguszorza Apr 12, 2024
79ccb8b
test(cli) starting ocli tests
aguszorza Apr 12, 2024
ea9044e
feat(doc) reorganize structure
helderbetiol Apr 16, 2024
c76958c
test(cli) add astutil tests
aguszorza Apr 22, 2024
eeba667
test(cli) add astbool tests
aguszorza Apr 22, 2024
34ca6af
test(cli) add astnum tests
aguszorza Apr 22, 2024
e4a38b5
test(cli) add aststr tests
aguszorza Apr 22, 2024
831bdc8
test(cli) add astflow tests
aguszorza Apr 23, 2024
7fd7a38
test(cli) starting ast tests
aguszorza Apr 23, 2024
dba3f2d
feat(doc) update delete obj attr
helderbetiol Apr 24, 2024
8f5d678
test(cli) add more ast tests
aguszorza Apr 24, 2024
bee9dd0
Merge branch 'chore378-review-pattern' of https://github.com/ditrit/O…
aguszorza Apr 24, 2024
15aac42
test(cli) change tests workflow
aguszorza Apr 24, 2024
3ad68be
test(cli) fix test workflow
aguszorza Apr 24, 2024
8d4b03a
test(cli) fix test workflow
aguszorza Apr 24, 2024
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
20 changes: 19 additions & 1 deletion .github/workflows/api-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,29 @@ jobs:
with:
go-version: 1.21

- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest

- name: Create MongoDB Container
run: cd ../deploy/docker && make test_api

- name: Build
run: make

- name: Test
run: go test -p 1 ./...
run: gotestsum --junitfile tests-api.xml -- -coverpkg=./... -coverprofile=coverage_api.out -p 1 ./...

- name: Log Test Coverage
run: go tool cover -func coverage_api.out | grep total

- name: Test Report
uses: dorny/test-reporter@v1
if: always() # run this step even if previous steps failed
with:
name: API Tests Report # Name of the check run which will be created
path: ./API/tests-api.xml # Path to test results
reporter: java-junit # Format of test results
- uses: actions/upload-artifact@v3
with:
name: coverage
path: ./API/coverage_api.out
20 changes: 19 additions & 1 deletion .github/workflows/cli-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,27 @@ jobs:

- name: Checkout code
uses: actions/checkout@v4

- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest

- name: Build
run: make

- name: Test
run: go test ./...
run: gotestsum --junitfile tests-cli.xml -- -coverprofile=coverage_cli.out -p 1 `go list ./... | grep -v ./readline | grep -v ./mocks`

- name: Log Test Coverage
run: go tool cover -func coverage_cli.out | grep total

- name: Test Report
uses: dorny/test-reporter@v1
if: always() # run this step even if previous steps failed
with:
name: CLI Tests Report # Name of the check run which will be created
path: ./CLI/tests-cli.xml # Path to test results
reporter: java-junit # Format of test results
- uses: actions/upload-artifact@v3
with:
name: coverage_cli
path: ./CLI/coverage_cli.out
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ deploy/mdb/*
*.DS_Store
API/.env
gin-bin
API/coverage

# CLI Ignore
.idea/
Expand All @@ -22,6 +23,7 @@ cli.mac
*.ocli
log.txt
unitylog.txt
CLI/coverage

# APP Ignore
deploy/docker/*.env
Expand Down
File renamed without changes.
Loading
Loading