File tree 4 files changed +48
-0
lines changed
4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ Posthog.feature_flags("user_123",
137
137
138
138
## Local Development
139
139
140
+ Run ` bin/setup ` to install development dependencies or run the following commands manually:
141
+
140
142
We recommend using ` asdf ` to manage Elixir and Erlang versions:
141
143
142
144
``` sh
@@ -148,6 +150,14 @@ mix deps.get
148
150
mix compile
149
151
```
150
152
153
+ Run tests:
154
+
155
+ ``` sh
156
+ bin/test
157
+ ```
158
+
159
+ (This runs ` mix test ` ).
160
+
151
161
### Troubleshooting
152
162
153
163
If you encounter WX library issues during Erlang installation:
Original file line number Diff line number Diff line change
1
+ error () {
2
+ echo " $@ " >&2
3
+ }
4
+
5
+ fatal () {
6
+ error " $@ "
7
+ exit 1
8
+ }
9
+
10
+ set_source_and_root_dir () {
11
+ { set +x; } 2> /dev/null
12
+ source_dir=" $( cd -P " $( dirname " $0 " ) " > /dev/null 2>&1 && pwd ) "
13
+ root_dir=$( cd $source_dir && cd ../ && pwd)
14
+ cd $root_dir
15
+ }
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # / Usage: bin/test [<configuration>]
3
+ # / Description: Runs all the tests for the target frameworks: netstandard2.1 and net8.0
4
+ source bin/helpers/_utils.sh
5
+ set_source_and_root_dir
6
+
7
+ if ! command -v asdf & > /dev/null; then
8
+ brew install asdf
9
+ fi
10
+
11
+ asdf plugin add erlang
12
+ asdf plugin add elixir
13
+ asdf install
14
+
15
+ mix deps.get
16
+ mix compile
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # / Usage: bin/test [<configuration>]
3
+ # / Description: Runs all the tests for the target frameworks: netstandard2.1 and net8.0
4
+ source bin/helpers/_utils.sh
5
+ set_source_and_root_dir
6
+
7
+ mix test
You can’t perform that action at this time.
0 commit comments