==== Test-suite of module test_test_nitunit::test_test_nitunit | tests: 3
[OK] test_test_nitunit$TestX$test_foo
[KO] test_test_nitunit$TestX$test_foo1
- test_test_nitunit.nit:36,2--40,4: Runtime Error in file nitunit.out/gen_test_test_nitunit.nit
+ test_test_nitunit.nit:35,2--39,4: Runtime Error in file nitunit.out/gen_test_test_nitunit.nit
Output
- Runtime error: Assert failed (test_test_nitunit.nit:39)
+ Runtime error: Assert failed (test_test_nitunit.nit:38)
[OK] test_test_nitunit$TestX$test_foo2
</system-out></testcase><testcase classname="nitunit.test_nitunit.X" name="foo" time="0.0"><failure message="Compilation error in nitunit.out/test_nitunit-3.nit">nitunit.out/test_nitunit-3.nit:5,8--27: Error: method or variable `undefined_identifier` unknown in `Sys`.
</failure><system-out>assert undefined_identifier
</system-out></testcase><testcase classname="nitunit.test_nitunit.X" name="foo1" time="0.0"><failure message="Syntax Error: unexpected operator '!'."></failure><system-out>assert !@#$%^&*()
-</system-out></testcase></testsuite><testsuite package="test_test_nitunit::test_test_nitunit"></testsuite><testsuite package="test_test_nitunit"><testcase classname="nitunit.test_test_nitunit.TestX" name="test_foo" time="0.0"><system-err></system-err></testcase><testcase classname="nitunit.test_test_nitunit.TestX" name="test_foo1" time="0.0"><error message="Runtime Error in file nitunit.out/gen_test_test_nitunit.nit">Runtime error: Assert failed (test_test_nitunit.nit:39)
+</system-out></testcase></testsuite><testsuite package="test_test_nitunit::test_test_nitunit"></testsuite><testsuite package="test_test_nitunit"><testcase classname="nitunit.test_test_nitunit.TestX" name="test_foo" time="0.0"><system-err></system-err></testcase><testcase classname="nitunit.test_test_nitunit.TestX" name="test_foo1" time="0.0"><error message="Runtime Error in file nitunit.out/gen_test_test_nitunit.nit">Runtime error: Assert failed (test_test_nitunit.nit:38)
</error></testcase><testcase classname="nitunit.test_test_nitunit.TestX" name="test_foo2" time="0.0"><system-err></system-err></testcase></testsuite></testsuites>
\ No newline at end of file
==== Test-suite of module test_nitunit6::test_nitunit6 | tests: 3
[KO] test_nitunit6::test_nitunit6$core::Sys$before_module
- test_nitunit6.nit:27,1--29,3: Runtime Error in file nitunit.out/gen_test_nitunit6.nit
+ test_nitunit6.nit:25,1--27,3: Runtime Error in file nitunit.out/gen_test_nitunit6.nit
Output
- Runtime error: Assert failed (test_nitunit6.nit:28)
+ Runtime error: Assert failed (test_nitunit6.nit:26)
[KO] test_nitunit6$TestNitunit6$test_foo
- test_nitunit6.nit:22,2--24,4: Nitunit Error: before_module test failed
+ test_nitunit6.nit:20,2--22,4: Nitunit Error: before_module test failed
[KO] test_nitunit6::test_nitunit6$core::Sys$after_module
- test_nitunit6.nit:31,1--33,3: Nitunit Error: before_module test failed
+ test_nitunit6.nit:29,1--31,3: Nitunit Error: before_module test failed
Docunits: Entities: 5; Documented ones: 0; With nitunits: 0
Test suites: Classes: 1; Test Cases: 3; Failures: 3
[OK] test_nitunit7::test_nitunit7$core::Sys$before_module
[OK] test_nitunit7$TestNitunit7$test_foo
[KO] test_nitunit7::test_nitunit7$core::Sys$after_module
- test_nitunit7.nit:31,1--33,3: Runtime Error in file nitunit.out/gen_test_nitunit7.nit
+ test_nitunit7.nit:29,1--31,3: Runtime Error in file nitunit.out/gen_test_nitunit7.nit
Output
- Runtime error: Assert failed (test_nitunit7.nit:32)
+ Runtime error: Assert failed (test_nitunit7.nit:30)
Docunits: Entities: 5; Documented ones: 0; With nitunits: 0
-test_nitunit4/test_bad_comp.nit:27,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
-test_nitunit4/test_bad_comp2.nit:19,7--22: Error: a class named `test_nitunit4::TestSuiteBadComp` is already defined in module `test_bad_comp` at test_nitunit4/test_bad_comp.nit:19,1--29,3.
+test_nitunit4/test_bad_comp.nit:25,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
+test_nitunit4/test_bad_comp2.nit:17,7--22: Error: a class named `test_nitunit4::TestSuiteBadComp` is already defined in module `test_bad_comp` at test_nitunit4/test_bad_comp.nit:17,1--27,3.
==== Test-suite of module test_nitunit4::test_bad_comp | tests: 2
[KO] test_nitunit4$TestSuiteBadComp$test_good
- test_nitunit4/test_bad_comp.nit:22,2--24,4: Compilation Error
+ test_nitunit4/test_bad_comp.nit:20,2--22,4: Compilation Error
Output
- test_nitunit4/test_bad_comp.nit:27,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
+ test_nitunit4/test_bad_comp.nit:25,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
[KO] test_nitunit4$TestSuiteBadComp$test_bad
- test_nitunit4/test_bad_comp.nit:26,2--28,4: Compilation Error
+ test_nitunit4/test_bad_comp.nit:24,2--26,4: Compilation Error
Output
- test_nitunit4/test_bad_comp.nit:27,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
+ test_nitunit4/test_bad_comp.nit:25,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
==== Test-suite of module test_nitunit4::test_bad_comp2 | tests: 2
[KO] test_nitunit4$TestSuiteBadComp$test_good
- test_nitunit4/test_bad_comp2.nit:22,2--24,4: Compilation Error
+ test_nitunit4/test_bad_comp2.nit:20,2--22,4: Compilation Error
Output
- nitunit.out/gen_test_bad_comp2.nit:14,10--17: Error: expected 1 argument(s) for `test_bad(param: Bool)`; got 0. See introduction at `test_nitunit4::TestSuiteBadComp::test_bad`.
+ nitunit.out/gen_test_bad_comp2.nit:11,10--17: Error: expected 1 argument(s) for `test_bad(param: Bool)`; got 0. See introduction at `test_nitunit4::TestSuiteBadComp::test_bad`.
[KO] test_nitunit4$TestSuiteBadComp$test_bad
- test_nitunit4/test_bad_comp2.nit:26,2--28,4: Compilation Error
+ test_nitunit4/test_bad_comp2.nit:24,2--26,4: Compilation Error
Output
- nitunit.out/gen_test_bad_comp2.nit:14,10--17: Error: expected 1 argument(s) for `test_bad(param: Bool)`; got 0. See introduction at `test_nitunit4::TestSuiteBadComp::test_bad`.
+ nitunit.out/gen_test_bad_comp2.nit:11,10--17: Error: expected 1 argument(s) for `test_bad(param: Bool)`; got 0. See introduction at `test_nitunit4::TestSuiteBadComp::test_bad`.
==== Test-suite of module test_nitunit4::test_nitunit4 | tests: 4
[KO] test_nitunit4$TestTestSuite$test_foo
- test_nitunit4/test_nitunit4.nit:22,2--26,4: Runtime Error in file nitunit.out/gen_test_nitunit4.nit
+ test_nitunit4/test_nitunit4.nit:23,2--27,4: Runtime Error in file nitunit.out/gen_test_nitunit4.nit
Output
Before Test
Tested method
After Test
- Runtime error: Assert failed (test_nitunit4/test_nitunit4_base.nit:31)
+ Runtime error: Assert failed (test_nitunit4/test_nitunit4_base.nit:28)
[OK] test_nitunit4$TestTestSuite$test_bar
[KO] test_nitunit4$TestTestSuite$test_baz
- test_nitunit4/test_nitunit4.nit:32,2--34,4: Difference with expected output: diff -u test_nitunit4/test_baz.res nitunit.out/gen_test_nitunit4_test_baz.out1
+ test_nitunit4/test_nitunit4.nit:33,2--35,4: Difference with expected output: diff -u test_nitunit4/test_baz.res nitunit.out/gen_test_nitunit4_test_baz.out1
Output
Diff
--- expected:test_nitunit4/test_baz.res
+After Test
[KO] test_nitunit4$TestTestSuite$test_sav_conflict
- test_nitunit4/test_nitunit4.nit:36,2--38,4: Conflicting expected output: test_nitunit4/test_nitunit4.sav/test_sav_conflict.res, test_nitunit4/sav/test_sav_conflict.res and test_nitunit4/test_sav_conflict.res all exist
+ test_nitunit4/test_nitunit4.nit:37,2--39,4: Conflicting expected output: test_nitunit4/test_nitunit4.sav/test_sav_conflict.res, test_nitunit4/sav/test_sav_conflict.res and test_nitunit4/test_sav_conflict.res all exist
Output
Before Test
Tested method
After Test
-==== Test-suite of module test_nitunit4::test_nitunit4_base | tests: 0
-==== Test-suite of module test_nitunit4::test_nitunit4_base | tests: 0
-
Docunits: Entities: 21; Documented ones: 0; With nitunits: 0
-Test suites: Classes: 4; Test Cases: 8; Failures: 7
+Test suites: Classes: 3; Test Cases: 8; Failures: 7
[FAILURE] 7/8 tests failed.
`nitunit.out` is not removed for investigation.
-<testsuites><testsuite package="test_nitunit4>"></testsuite><testsuite package="test_nitunit4::nitunit4"></testsuite><testsuite package="test_nitunit4::test_bad_comp"></testsuite><testsuite package="test_bad_comp"><testcase classname="nitunit.test_nitunit4.TestSuiteBadComp" name="test_good" time="0.0"><failure message="Compilation Error">test_nitunit4/test_bad_comp.nit:27,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
-</failure></testcase><testcase classname="nitunit.test_nitunit4.TestSuiteBadComp" name="test_bad" time="0.0"><failure message="Compilation Error">test_nitunit4/test_bad_comp.nit:27,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
-</failure></testcase></testsuite><testsuite package="test_nitunit4::test_bad_comp2"></testsuite><testsuite package="test_bad_comp2"><testcase classname="nitunit.test_nitunit4.TestSuiteBadComp" name="test_good" time="0.0"><failure message="Compilation Error">nitunit.out/gen_test_bad_comp2.nit:14,10--17: Error: expected 1 argument(s) for `test_bad(param: Bool)`; got 0. See introduction at `test_nitunit4::TestSuiteBadComp::test_bad`.
-</failure></testcase><testcase classname="nitunit.test_nitunit4.TestSuiteBadComp" name="test_bad" time="0.0"><failure message="Compilation Error">nitunit.out/gen_test_bad_comp2.nit:14,10--17: Error: expected 1 argument(s) for `test_bad(param: Bool)`; got 0. See introduction at `test_nitunit4::TestSuiteBadComp::test_bad`.
+<testsuites><testsuite package="test_nitunit4>"></testsuite><testsuite package="test_nitunit4::nitunit4"></testsuite><testsuite package="test_nitunit4::test_bad_comp"></testsuite><testsuite package="test_bad_comp"><testcase classname="nitunit.test_nitunit4.TestSuiteBadComp" name="test_good" time="0.0"><failure message="Compilation Error">test_nitunit4/test_bad_comp.nit:25,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
+</failure></testcase><testcase classname="nitunit.test_nitunit4.TestSuiteBadComp" name="test_bad" time="0.0"><failure message="Compilation Error">test_nitunit4/test_bad_comp.nit:25,10--19: Error: method or variable `bad_method` unknown in `TestSuiteBadComp`.
+</failure></testcase></testsuite><testsuite package="test_nitunit4::test_bad_comp2"></testsuite><testsuite package="test_bad_comp2"><testcase classname="nitunit.test_nitunit4.TestSuiteBadComp" name="test_good" time="0.0"><failure message="Compilation Error">nitunit.out/gen_test_bad_comp2.nit:11,10--17: Error: expected 1 argument(s) for `test_bad(param: Bool)`; got 0. See introduction at `test_nitunit4::TestSuiteBadComp::test_bad`.
+</failure></testcase><testcase classname="nitunit.test_nitunit4.TestSuiteBadComp" name="test_bad" time="0.0"><failure message="Compilation Error">nitunit.out/gen_test_bad_comp2.nit:11,10--17: Error: expected 1 argument(s) for `test_bad(param: Bool)`; got 0. See introduction at `test_nitunit4::TestSuiteBadComp::test_bad`.
</failure></testcase></testsuite><testsuite package="test_nitunit4::test_nitunit4"></testsuite><testsuite package="test_nitunit4"><testcase classname="nitunit.test_nitunit4.TestTestSuite" name="test_foo" time="0.0"><error message="Runtime Error in file nitunit.out/gen_test_nitunit4.nit">Before Test
Tested method
After Test
-Runtime error: Assert failed (test_nitunit4/test_nitunit4_base.nit:31)
+Runtime error: Assert failed (test_nitunit4/test_nitunit4_base.nit:28)
</error></testcase><testcase classname="nitunit.test_nitunit4.TestTestSuite" name="test_bar" time="0.0"><system-err>Before Test
Tested method
After Test
</error></testcase><testcase classname="nitunit.test_nitunit4.TestTestSuite" name="test_sav_conflict" time="0.0"><error message="Conflicting expected output: test_nitunit4/test_nitunit4.sav/test_sav_conflict.res, test_nitunit4/sav/test_sav_conflict.res and test_nitunit4/test_sav_conflict.res all exist">Before Test
Tested method
After Test
-</error></testcase></testsuite><testsuite package="test_nitunit4::test_nitunit4_base"></testsuite><testsuite package="test_nitunit4_base"></testsuite></testsuites>
\ No newline at end of file
+</error></testcase></testsuite><testsuite package="test_nitunit4::test_nitunit4_base"></testsuite></testsuites>
\ No newline at end of file
# See the License for the specific language governing permissions and
# limitations under the License.
-module test_bad_comp is test_suite
-
-import test_suite
+module test_bad_comp is test
class TestSuiteBadComp
- super TestSuite
+ test
- fun test_good do
+ fun test_good is test do
assert true
end
- fun test_bad do
+ fun test_bad is test do
assert bad_method
end
end
# See the License for the specific language governing permissions and
# limitations under the License.
-module test_bad_comp2 is test_suite
-
-import test_suite
+module test_bad_comp2 is test
class TestSuiteBadComp
- super TestSuite
+ test
- fun test_good do
+ fun test_good is test do
assert true
end
- fun test_bad(param: Bool) do
+ fun test_bad(param: Bool) is test do
assert param
end
end
# See the License for the specific language governing permissions and
# limitations under the License.
-module test_nitunit4 is test_suite
+module test_nitunit4 is test
import test_nitunit4_base
class TestTestSuite
super SuperTestSuite
+ test
- fun test_foo do
+ fun test_foo is test do
print "Tested method"
assert before
before = false
end
- fun test_bar do
+ fun test_bar is test do
print "Tested method"
end
- fun test_baz do
+ fun test_baz is test do
print "Tested method"
end
- fun test_sav_conflict do
+ fun test_sav_conflict is test do
print "Tested method"
end
end
# See the License for the specific language governing permissions and
# limitations under the License.
-module test_nitunit4_base is test_suite
-
-import test_suite
+module test_nitunit4_base
class SuperTestSuite
- super TestSuite
var before = false
- redef fun before_test do
+ fun before_test is before do
print "Before Test"
before = true
end
- redef fun after_test do
+ fun after_test is after do
print "After Test"
assert before
end
# See the License for the specific language governing permissions and
# limitations under the License.
-module test_nitunit5 is test_suite
-
-import test_suite
+module test_nitunit5 is test
class TestNitunit5
- super TestSuite
+ test
- fun test_path_is_set do
+ fun test_path_is_set is test do
assert "NIT_TESTING_PATH".environ != ""
end
- fun test_path_is_suite_path do
+ fun test_path_is_suite_path is test do
assert "NIT_TESTING_PATH".environ.basename == "test_nitunit5.nit"
end
end
# See the License for the specific language governing permissions and
# limitations under the License.
-module test_nitunit6 is test_suite
-
-import test_suite
+module test_nitunit6 is test
class TestNitunit6
- super TestSuite
+ test
- fun test_foo do
+ fun test_foo is test do
assert true
end
end
-redef fun before_module do
+fun before_module is before_all do
assert false
end
-redef fun after_module do
+fun after_module is after_all do
assert false
end
# See the License for the specific language governing permissions and
# limitations under the License.
-module test_nitunit7 is test_suite
-
-import test_suite
+module test_nitunit7 is test
class TestNitunit7
- super TestSuite
+ test
- fun test_foo do
+ fun test_foo is test do
assert true
end
end
-redef fun before_module do
+fun before_module is before_all do
assert true
end
-redef fun after_module do
+fun after_module is after_all do
assert false
end
# limitations under the License.
# NitUnit file for test_nitunit module.
-module test_test_nitunit is test_suite
+module test_test_nitunit is test
-import test_suite
intrude import test_nitunit
class TestX
- super TestSuite
+ test
var subject: X is noinit
- redef fun before_test do
+ fun before_test is before do
subject = new X
end
- fun test_foo do
+ fun test_foo is test do
subject.foo
end
# will fail
- fun test_foo1 do
+ fun test_foo1 is test do
subject.foo1(10, 20)
assert false
end
- fun test_foo2 do
+ fun test_foo2 is test do
assert subject.foo2
end
end