Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
7283ec4
chore(.cursor/rules/integration-test): fix typo
jgmontoya Aug 19, 2025
6187f3c
refactor(integration_tests): create integration test framework with i…
jgmontoya Aug 21, 2025
be1a223
test(integration): add app_settings and metadata_management scenarios
jgmontoya Aug 21, 2025
d273c23
test(integration/account_management): add logout test
jgmontoya Aug 21, 2025
01b5e79
test(integration/follow_management): add scenario
jgmontoya Aug 21, 2025
6307f9f
fixup! refactor(integration_tests): create integration test framework…
jgmontoya Aug 22, 2025
3c8b482
test(integration/group_membership): add Group Membership Scenario
jgmontoya Aug 22, 2025
2f3e55b
refactor(integration_tests): rename messaging scenario to basic messa…
jgmontoya Aug 22, 2025
61f2964
test(integration/advanced_messaging): add AdvancedMessagingScenario s…
jgmontoya Aug 22, 2025
555ee28
test(integration/subscription_processing): add scenario to test subsc…
jgmontoya Aug 23, 2025
d745bbc
test(integration): fix tests by using updated methods
jgmontoya Aug 23, 2025
776e95f
docs(integration_tests): update readme
jgmontoya Aug 23, 2025
2f4844a
refactor(integration_tests): registry: reorder summary info
jgmontoya Aug 23, 2025
cac9b05
fixup! test(integration): fix tests by using updated methods
jgmontoya Aug 23, 2025
1951bc9
chore(ci): use --features integration-tests to run integration tests
jgmontoya Aug 23, 2025
d4a7add
Update .cursor/rules/integration-test.mdc
jgmontoya Aug 23, 2025
6b136dc
Update src/integration_tests/README.md
jgmontoya Aug 23, 2025
b61e792
fix: CodeRabbit comments
jgmontoya Aug 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cursor/rules/integration-test.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ alwaysApply: true
---
# Integration Test

We have an a file at [integration_test.rs](mdc:src/bin/integration_test.rs) that is a full integration test of different functionality. This integrtion test should ALWAYS be run with the `just int-test` command and not run on it's own with different log and data directories.
There is a file at [integration_test.rs](mdc:src/bin/integration_test.rs) that performs a full integration test across multiple features. This integration test should ALWAYS be run with the `just int-test` command and should not be run on its own with different log and data directories. The `int-test` recipe also enables the `integration-tests` Cargo feature.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
if: matrix.target == 'native' && matrix.os == 'ubuntu-latest'
run: |
mkdir -p ./dev/data/integration_test/
RUST_LOG=warn,integration_test=info cargo run --bin integration_test -- --data-dir ./dev/data/integration_test/ --logs-dir ./dev/data/integration_test/
RUST_LOG=warn,sqlx=info,refinery_core=error,keyring=info,nostr_relay_pool=error,nostr_mls_sqlite_storage=error,tungstenite=error,integration_test=debug cargo run --bin integration_test --features integration-tests -- --data-dir ./dev/data/integration_test/ --logs-dir ./dev/data/integration_test/
rm -rf ./dev/data/integration_test/

- name: Stop Docker Compose services
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
}
},
"rust-analyzer.cargo.features": "all"
}
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ dotenvy = "0.15"
mockito = "1.2"
tempfile = "3.19.1"

[features]
default = []
# Feature flag for integration tests - enables IDE support without including in production
integration-tests = []

[[bin]]
name = "integration_test"
path = "src/bin/integration_test.rs"
required-features = ["integration-tests"]

[profile.release]
debug = false
opt-level = "z"
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int-test:
nostr_mls_sqlite_storage=error,\
tungstenite=error,\
integration_test=debug \
cargo run --bin integration_test -- --data-dir ./dev/data/integration_test/ --logs-dir ./dev/data/integration_test/
cargo run --bin integration_test --features integration-tests -- --data-dir ./dev/data/integration_test/ --logs-dir ./dev/data/integration_test/

# Run all tests (unit tests, integration tests, and doc tests)
test:
Expand Down
Loading
Loading