Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit a5aba10

Browse files
committed
Reduce boiler plate for integration tests
1 parent 0959bff commit a5aba10

File tree

5 files changed

+156
-842
lines changed

5 files changed

+156
-842
lines changed

Cargo.lock

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ tracing-tree = "0.3.0"
1313

1414
[dev-dependencies]
1515
color-eyre = "0.6.2"
16+
libtest-mimic = "0.6.1"
17+
18+
[[test]]
19+
name = "integration_tests"
20+
path = "tests/integration_tests.rs"
21+
harness = false

tests/integration/jason3.june

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// output: 33
2-
31
struct Stats {
42
age: i64
53
}
@@ -17,4 +15,4 @@ fun helper(mut employee: Employee) {
1715

1816
fun main() {
1917
helper(new Employee(name: "foo", new Stats(age: 100)))
20-
}
18+
}

tests/integration/lifetime_inference/lifetime_with_constraints.june

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// output: whatever
1+
// output: 33
22

33
struct Stats {
44
age: i64
@@ -19,4 +19,4 @@ fun main() {
1919
helper(employee, new Stats(age: 33))
2020

2121
println(employee.stats.age)
22-
}
22+
}

0 commit comments

Comments
 (0)