Skip to content

Commit e861915

Browse files
feature(test_suite): set new project
Signed-off-by: Gabriele Ghio <gabriele.ghio@secomind.com>
1 parent 5480e38 commit e861915

File tree

17 files changed

+1060
-1
lines changed

17 files changed

+1060
-1
lines changed

.github/codecov.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ coverage:
2121
- astarte_events
2222
- astarte_generators
2323
- astarte_data_access_generators
24+
- astarte_test_suite
2425
- astarte_rpc
2526

2627
ignore:
@@ -83,7 +84,11 @@ flags:
8384
astarte_data_access_generators:
8485
carryforward: true
8586
paths:
86-
- libs/astarte_data_access_generators
87+
- libs/astarte_generators
88+
astarte_test_suite:
89+
carryforward: true
90+
paths:
91+
- libs/astarte_test_suite
8792
astarte_rpc:
8893
carryforward: true
8994
paths:

.github/workflows/astarte-libs-workflow.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
with:
4848
lib: "astarte_data_access_generators"
4949
secrets: inherit
50+
astarte_test_suite:
51+
uses: ./.github/workflows/astarte-libs-build-workflow.yaml
52+
with:
53+
lib: "astarte_test_suite"
54+
secrets: inherit
5055
astarte_rpc:
5156
uses: ./.github/workflows/astarte-libs-build-workflow.yaml
5257
with:

committed.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ allowed_scopes = [
4545
"rpc",
4646
"generators",
4747
"data_access_generators",
48+
"test_suite",
49+
"ts",
4850
# tools
4951
"e2e",
5052
"import",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Used by "mix format"
2+
[
3+
import_deps: [:ecto, :stream_data, :astarte_generators],
4+
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
5+
]

libs/astarte_test_suite/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Astarte.TestSuite
2+
3+
**TODO: Add description**
4+
5+
## Installation
6+
7+
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
8+
by adding `astarte_test_suite` to your list of dependencies in `mix.exs`:
9+
10+
```elixir
11+
def deps do
12+
[
13+
{:astarte_test_suite, "~> 0.1.0"}
14+
]
15+
end
16+
```
17+
18+
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
19+
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
20+
be found at <https://hexdocs.pm/astarte_test_suite>.
21+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file is part of Astarte.
2+
#
3+
# Copyright 2026 SECO Mind Srl
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
import Config
19+
20+
import_config "#{config_env()}.exs"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This file is part of Astarte.
2+
#
3+
# Copyright 2026 SECO Mind Srl
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
import Config
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This file is part of Astarte.
2+
#
3+
# Copyright 2026 SECO Mind Srl
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
import Config
19+
20+
config :stream_data,
21+
max_runs: 1_000
22+
23+
config :ex_unit,
24+
timeout: 120_000
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# This file is part of Astarte.
3+
#
4+
# Copyright 2026 SECO Mind Srl
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
19+
defmodule Astarte.Cases.Group do
20+
use ExUnit.CaseTemplate
21+
22+
alias Astarte.Test.Setups.Group, as: GroupSetup
23+
24+
setup_all [
25+
{GroupSetup, :init},
26+
{GroupSetup, :setup}
27+
]
28+
end

0 commit comments

Comments
 (0)