name long bash test command
This commit is contained in:
parent
11650bd1b5
commit
d425f62009
|
@ -49,11 +49,13 @@ jobs:
|
||||||
mv consul ~/bin
|
mv consul ~/bin
|
||||||
echo 'export PATH="~/bin:$PATH"'
|
echo 'export PATH="~/bin:$PATH"'
|
||||||
- run: mkdir -p $TEST_RESULTS_DIR
|
- run: mkdir -p $TEST_RESULTS_DIR
|
||||||
- run: |
|
- run:
|
||||||
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
|
name: Run Go Tests
|
||||||
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
|
command: |
|
||||||
echo $PACKAGE_NAMES
|
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
|
||||||
gotestsum --format=short-verbose --junitfile $TEST_RESULTS_DIR/gotestsum-report.xml -- -p 2 -cover -coverprofile=cov_$CIRCLE_NODE_INDEX.part $PACKAGE_NAMES
|
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
|
||||||
|
echo $PACKAGE_NAMES
|
||||||
|
gotestsum --format=short-verbose --junitfile $TEST_RESULTS_DIR/gotestsum-report.xml -- -p 2 -cover -coverprofile=cov_$CIRCLE_NODE_INDEX.part $PACKAGE_NAMES
|
||||||
|
|
||||||
# save coverage report parts
|
# save coverage report parts
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
|
@ -76,11 +78,13 @@ jobs:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run: mkdir -p $TEST_RESULTS_DIR
|
- run: mkdir -p $TEST_RESULTS_DIR
|
||||||
- run: |
|
- run:
|
||||||
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
|
name: Run Go E2E Tests
|
||||||
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
|
command: |
|
||||||
echo $PACKAGE_NAMES
|
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
|
||||||
gotestsum --format=short-verbose --junitfile $TEST_RESULTS_DIR/gotestsum-report.xml -- -p 2 -cover -coverprofile=cov_e2e.part ./command/e2etest
|
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
|
||||||
|
echo $PACKAGE_NAMES
|
||||||
|
gotestsum --format=short-verbose --junitfile $TEST_RESULTS_DIR/gotestsum-report.xml -- -p 2 -cover -coverprofile=cov_e2e.part ./command/e2etest
|
||||||
|
|
||||||
# save coverage report parts
|
# save coverage report parts
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
|
|
Loading…
Reference in New Issue