refactor: move e2e tests into src/e2e directory
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package main
|
package e2e_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package main
|
package e2e_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"slices"
|
"slices"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package main
|
package e2e_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package main
|
package e2e_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package main
|
package e2e_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package main
|
package e2e_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
@@ -43,7 +43,7 @@ func (n NodeResponse) HasRelation(relType, targetID string) bool {
|
|||||||
var axBinary string
|
var axBinary string
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
if err := exec.Command("go", "build", "-o", "ax", ".").Run(); err != nil {
|
if err := exec.Command("go", "build", "-o", "ax", "..").Run(); err != nil {
|
||||||
fmt.Fprintln(os.Stderr, "build failed:", err)
|
fmt.Fprintln(os.Stderr, "build failed:", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user