Skip to content

Commit 0267e08

Browse files
committed
Put integration tests into a new integration folder and explain what it is there for
1 parent 6de63e9 commit 0267e08

10 files changed

Lines changed: 8 additions & 2 deletions

test/benchee/integration/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
These tests are split out of `benchee_test.exs` to be able to run more of them in parallel.
2+
3+
These are integration-y tests executing the whole stack.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
defmodule Benchee.EscriptTest do
2+
# Cding is global, so can't run in parallel
23
use ExUnit.Case, async: false
34

45
import Benchee.IntegrationHelpers
56

67
describe "escript building" do
78
@working_directory File.cwd!()
8-
@sample_project_directory Path.expand("../fixtures/escript", __DIR__)
9+
@sample_project_directory Path.expand("../../fixtures/escript", __DIR__)
910
test "benchee can be built into and used as an escript" do
1011
File.cd!(@sample_project_directory)
1112
# we don't match the exit_status right now to get better error messages potentially
File renamed without changes.

test/benchee/function_overhead_and_outliers_test.exs renamed to test/benchee/integration/function_overhead_and_outliers_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
defmodule Benchee.FunctionOverheadAndOutliersTest do
2-
use ExUnit.Case, async: false
2+
use ExUnit.Case, async: true
33

44
import ExUnit.CaptureIO
55
import Benchee.IntegrationHelpers
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/benchee_test.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ defmodule BencheeTest do
1414
import Benchee.IntegrationHelpers
1515
import Benchee.TestHelpers
1616

17+
# Several integration tests are split out of this file into their own files so more tests can run in parallel
18+
1719
@header_regex ~r/^Name.+ips.+average.+deviation.+median.+99th %$/m
1820
@test_configuration [time: 0.01, warmup: 0.005]
1921

0 commit comments

Comments
 (0)