This commit is contained in:
Mayel de Borniol 2022-10-25 16:02:49 +13:00
parent c1fc1cf0de
commit 5bcc868fa7
3 changed files with 26 additions and 9 deletions

View file

@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
## [Unreleased (2022-10-24)]
## [Unreleased (2022-10-25)]
### Added
- Enable/disable extensions [#448](https://github.com/bonfire-networks/bonfire-app/issues/448)
- Coordination MVP [#445](https://github.com/bonfire-networks/bonfire-app/issues/445) by mayel & ivanminutillo

View file

@ -54,6 +54,7 @@ config :rauversion_extension, :user_table, "pointers_pointer"
config :rauversion_extension, :user_key_type, :uuid
config :bonfire, Bonfire.Common.Repo, types: Bonfire.Geolocate.PostgresTypes
config :bonfire, Bonfire.Common.TestInstanceRepo, types: Bonfire.Geolocate.PostgresTypes
# priv: flavour_path <> "/repo"
# ecto query filtering

View file

@ -385,35 +385,51 @@ deps-git-fix:
# Run tests. You can also run only specific tests, eg: `just test forks/bonfire_social/test`
test *args='':
@echo "Testing $@..."
MIX_ENV=test just mix test $@
# Run only stale tests
test-stale *args='':
@echo "Testing $@..."
MIX_ENV=test just mix test --stale $@
# Run tests (ignoring changes in local forks)
test-remote *args='':
@echo "Testing $@..."
MIX_ENV=test just mix-remote test $@
# Run stale tests, and wait for changes to any module code, and re-run affected tests
test-watch *args='':
@echo "Testing $@..."
MIX_ENV=test just mix test.watch --stale $@
# Run stale tests, and wait for changes to any module code, and re-run affected tests, and interactively choose which tests to run
test-interactive *args='':
@MIX_ENV=test just mix test.interactive --stale $@
test-federation-lib *args='forks/activity_pub':
@MIX_ENV=test just test-watch $@
ap_lib := "forks/activity_pub"
ap_integration := "forks/bonfire_federate_activitypub/test/activity_pub_integration"
ap_boundaries := "forks/bonfire_federate_activitypub/test/ap_boundaries"
ap_ext := "forks/*/test/*federat* forks/*/test/*/*federat* forks/*/test/*/*/*federat*"
# ap_two := "forks/bonfire_federate_activitypub/test/two_instances"
test-federation-integration *args='forks/bonfire_federate_activitypub/test/activity_pub_integration':
@MIX_ENV=test just test-watch $@
test-federation:
just test-stale {{ ap_lib }}
just test-stale {{ ap_integration }}
just test-stale {{ ap_ext }}
TEST_INSTANCE=yes just test-stale --only test_instance
test-federation-extensions *args='forks/*/test/*federat* forks/*/test/*/*federat* forks/*/test/*/*/*federat*':
@MIX_ENV=test just test-watch $@
test-federation-lib *args=ap_lib:
just test-watch $@
test-federation-two *args='forks/bonfire_federate_activitypub/test/two_instances':
@MIX_ENV=test TEST_INSTANCE=yes just test-watch $@
test-federation-integration *args=ap_integration:
just test-watch $@
test-federation-ext *args=ap_ext:
just test-watch $@
test-federation-two *args='':
TEST_INSTANCE=yes just test-watch --only test_instance $@
# dev-test-watch: init ## Run tests
# docker-compose run --service-ports -e MIX_ENV=test web iex -S mix phx.server