You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ This SDK is compatible with [Featurevisor](https://featurevisor.com/) v2.0 proje
41
41
-[Close](#close)
42
42
-[CLI usage](#cli-usage)
43
43
-[Test](#test)
44
-
-[Test against example-1](#test-against-example-1)
44
+
-[Test against local monorepo's example-1](#test-against-local-monorepos-example-1)
45
45
-[Benchmark](#benchmark)
46
46
-[Assess distribution](#assess-distribution)
47
47
-[Development](#development)
@@ -694,14 +694,17 @@ $ bundle exec featurevisor test \
694
694
695
695
`--with-scopes` and `--with-tags` make the Ruby test runner build scoped/tagged datafiles in memory (via `npx featurevisor build --json`) and evaluate matching assertions against those exact datafiles.
696
696
697
+
If an assertion references `scope` and `--with-scopes` is not provided, the runner still evaluates the assertion by merging that scope's configured context into the assertion context (without building scoped datafiles).
698
+
697
699
For compatibility, camelCase aliases are also supported: `--withScopes` and `--withTags`.
698
700
699
-
### Test against example-1
701
+
### Test against local monorepo's example-1
700
702
701
703
```bash
702
704
$ cd /absolute/path/to/featurevisor-ruby
703
-
$ bundle exec featurevisor test --projectDirectoryPath=/path/to/featurevisor/project
704
-
$ bundle exec featurevisor test --projectDirectoryPath=/path/to/featurevisor/project --with-scopes
705
+
$ bundle exec featurevisor test --projectDirectoryPath=./monorepo/examples/example-1
706
+
$ bundle exec featurevisor test --projectDirectoryPath=./monorepo/examples/example-1 --with-scopes
707
+
$ bundle exec featurevisor test --projectDirectoryPath=./monorepo/examples/example-1 --with-tags
0 commit comments