Skip to content

Commit

Permalink
update test runner
Browse files Browse the repository at this point in the history
due to the previous commit, all tests are now ran with the same command
  • Loading branch information
nm2107 committed Mar 8, 2022
1 parent d677f2e commit 7e793b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
14 changes: 4 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,10 @@ reference:
# uid 1001 but uid 1000 is used in the containers.
sudo chown -R 1000 .
run_unit_tests_step: &run_unit_tests_step
run_tests_step: &run_tests_step
run:
name: Run unit tests
command: make test-unit

run_functional_tests_step: &run_functional_tests_step
run:
name: Run functional tests
command: make test-functional
name: Run tests
command: make tests

build_release_step: &build_release_step
run:
Expand All @@ -72,8 +67,7 @@ jobs:
- <<: *build_docker_image_step
- <<: *restore_cache_step
- <<: *chown_working_directory_step
- <<: *run_unit_tests_step
- <<: *run_functional_tests_step
- <<: *run_tests_step
- <<: *enlight_cache_step
- <<: *save_cache_step

Expand Down
12 changes: 2 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@ build-release:
docker-compose run --rm app \
cargo build --release

# https://manpages.debian.org/testing/cargo/cargo-test.1.en.html
.PHONY: test-unit
test-unit:
docker-compose run --rm app \
cargo test --tests $(TEST_FLAGS) \
-p ci \
# add the other packages to test with the -p flag

.PHONY: test-functional
test-functional:
.PHONY: tests
tests:
docker-compose run --rm app \
cargo test --tests $(TEST_FLAGS)

0 comments on commit 7e793b4

Please sign in to comment.