Skip to content

Commit

Permalink
[tests] add some tests for -D fast-fail
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Mar 12, 2024
1 parent 43f109a commit 251d64c
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/misc/projects/Issue8019/compile-fastfail.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--macro Macro.init()
-D fail-fast
2 changes: 2 additions & 0 deletions tests/misc/projects/Issue8019/compile-fastfail.hxml.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Macro.hx:9: characters 18-19 : "" is not a valid package name:
Macro.hx:9: characters 18-19 : Package name must not be empty
2 changes: 2 additions & 0 deletions tests/misc/projects/Issue8019/compile3-fastfail.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--macro Macro2.init()
-D fail-fast
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Macro2.hx:8: characters 18-19 : Module "" does not have a valid name. Module name must not be empty.
2 changes: 2 additions & 0 deletions tests/misc/projects/issue5002/compile-fastfail.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-main Main
-D fail-fast
1 change: 1 addition & 0 deletions tests/misc/projects/issue5002/compile-fastfail.hxml.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Main.hx:1: characters 1-8 : "0" is not a valid field name.
2 changes: 2 additions & 0 deletions tests/misc/projects/issue5002/compile2-fastfail.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-main Main2
-D fail-fast
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Main2.hx:6: characters 3-32 : "0_variable" is not a valid variable name.
2 changes: 2 additions & 0 deletions tests/misc/projects/issue5002/compile3-fastfail.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--macro Main3.init()
-D fail-fast
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Main3.hx:10: characters 18-19 : Module "lowercase" does not have a valid name. Module name should start with an uppercase letter: "lowercase"
2 changes: 2 additions & 0 deletions tests/misc/projects/issue5002/compile4-fastfail.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-main Main4
-D fail-fast
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Main4.hx:3: characters 7-9 : Variable names starting with a dollar are not allowed: "$i"

0 comments on commit 251d64c

Please sign in to comment.