Skip to content

Commit c4d3230

Browse files
Merge all test files that share a package into one
Having different test files that shared the same package was inefficient, because the whole package test was run one time for each file. This enhancement avoids repeating the same tests more than once.
1 parent 0d547d5 commit c4d3230

12 files changed

+643
-841
lines changed

internal/integrationtest/board/board_list_test.go

Lines changed: 0 additions & 63 deletions
This file was deleted.

internal/integrationtest/board/board_test.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,45 @@ import (
2929
"gopkg.in/src-d/go-git.v4/plumbing"
3030
)
3131

32+
func TestCorrectBoardListOrdering(t *testing.T) {
33+
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
34+
defer env.CleanUp()
35+
36+
_, _, err := cli.Run("core", "install", "arduino:avr")
37+
require.NoError(t, err)
38+
jsonOut, _, err := cli.Run("board", "listall", "--format", "json")
39+
require.NoError(t, err)
40+
requirejson.Query(t, jsonOut, "[.boards[] | .fqbn]", `[
41+
"arduino:avr:yun",
42+
"arduino:avr:uno",
43+
"arduino:avr:unomini",
44+
"arduino:avr:diecimila",
45+
"arduino:avr:nano",
46+
"arduino:avr:mega",
47+
"arduino:avr:megaADK",
48+
"arduino:avr:leonardo",
49+
"arduino:avr:leonardoeth",
50+
"arduino:avr:micro",
51+
"arduino:avr:esplora",
52+
"arduino:avr:mini",
53+
"arduino:avr:ethernet",
54+
"arduino:avr:fio",
55+
"arduino:avr:bt",
56+
"arduino:avr:LilyPadUSB",
57+
"arduino:avr:lilypad",
58+
"arduino:avr:pro",
59+
"arduino:avr:atmegang",
60+
"arduino:avr:robotControl",
61+
"arduino:avr:robotMotor",
62+
"arduino:avr:gemma",
63+
"arduino:avr:circuitplay32u4cat",
64+
"arduino:avr:yunmini",
65+
"arduino:avr:chiwawa",
66+
"arduino:avr:one",
67+
"arduino:avr:unowifi"
68+
]`)
69+
}
70+
3271
func TestBoardList(t *testing.T) {
3372
if os.Getenv("CI") != "" {
3473
t.Skip("VMs have no serial ports")

internal/integrationtest/compile/compile_part_2_test.go

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)