Skip to content

Commit 7e793b4

Browse files
committed
update test runner
due to the previous commit, all tests are now ran with the same command
1 parent d677f2e commit 7e793b4

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

.circleci/config.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,10 @@ reference:
4444
# uid 1001 but uid 1000 is used in the containers.
4545
sudo chown -R 1000 .
4646
47-
run_unit_tests_step: &run_unit_tests_step
47+
run_tests_step: &run_tests_step
4848
run:
49-
name: Run unit tests
50-
command: make test-unit
51-
52-
run_functional_tests_step: &run_functional_tests_step
53-
run:
54-
name: Run functional tests
55-
command: make test-functional
49+
name: Run tests
50+
command: make tests
5651

5752
build_release_step: &build_release_step
5853
run:
@@ -72,8 +67,7 @@ jobs:
7267
- <<: *build_docker_image_step
7368
- <<: *restore_cache_step
7469
- <<: *chown_working_directory_step
75-
- <<: *run_unit_tests_step
76-
- <<: *run_functional_tests_step
70+
- <<: *run_tests_step
7771
- <<: *enlight_cache_step
7872
- <<: *save_cache_step
7973

Makefile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,7 @@ build-release:
1818
docker-compose run --rm app \
1919
cargo build --release
2020

21-
# https://manpages.debian.org/testing/cargo/cargo-test.1.en.html
22-
.PHONY: test-unit
23-
test-unit:
24-
docker-compose run --rm app \
25-
cargo test --tests $(TEST_FLAGS) \
26-
-p ci \
27-
# add the other packages to test with the -p flag
28-
29-
.PHONY: test-functional
30-
test-functional:
21+
.PHONY: tests
22+
tests:
3123
docker-compose run --rm app \
3224
cargo test --tests $(TEST_FLAGS)

0 commit comments

Comments
 (0)