all tests

This commit is contained in:
HiteshRepo 2024-01-28 21:33:06 +05:30
parent 9939182054
commit de25ca69cb
2 changed files with 7 additions and 58 deletions

View File

@ -299,7 +299,12 @@ jobs:
- run: mkdir -p /tmp/corso-testlog
- name: one test
- name: all tests
env:
# Set these to a bad value so we don't accidentally fall back to
# something elsewhere.
CORSO_M365_TEST_USER_ID: "foo"
CORSO_SECONDARY_M365_TEST_USER_ID: "foo"
run: |
set -euo pipefail
@ -311,45 +316,9 @@ jobs:
-failfast \
-p 1 \
-timeout 20m \
-run '^TestSharePointBackupUnitSuite/TestPopulateListsCollections_incremental$' ./internal/m365/collection/site \
./... \
2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log
# Run the second test
go test \
-tags testing \
-failfast \
-p 1 \
-timeout 20m \
-run '^TestSharePointBackupUnitSuite/TestCollectLists$' ./internal/m365/collection/site \
2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log
# Run the third test
go test \
-tags testing \
-failfast \
-p 1 \
-timeout 20m \
-run '^TestExportUnitSuite/TestStreamItems$' ./internal/m365/collection/site \
2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log
# - name: all tests
# env:
# # Set these to a bad value so we don't accidentally fall back to
# # something elsewhere.
# CORSO_M365_TEST_USER_ID: "foo"
# CORSO_SECONDARY_M365_TEST_USER_ID: "foo"
# run: |
# set -euo pipefail
# # Run the first test
# go test \
# -tags testing \
# -failfast \
# -p 1 \
# -timeout 20m \
# ./... \
# 2>&1 | tee -a ./testlog/gotest-unit.log
# run the tests
# - name: Unit Tests
# env:

View File

@ -721,23 +721,3 @@ func (suite *PathUnitSuite) TestArePathsEquivalent() {
})
}
}
func (suite *PathUnitSuite) Test_Stuff() {
t := suite.T()
tests := []struct {
name string
path1 string
path2 string
}{
{
name: "same linux normal path",
path1: "/path/to/dir",
path2: "/path/to/dir",
},
}
for _, test := range tests {
assert.Equal(t, test.path1, test.path2)
}
}