1 # This file is part of NIT ( http://www.nitlanguage.org ).
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Common interface for `nitunit` test-suites.
17 # Annotation used by test-suite modules.
18 new_annotation test_suite
21 # A test-suite that can be executed by `nitunit`.
23 # All test-suite classes must implement `TestSuite`.
25 # Internal empty init.
26 private init nitunit
do end
28 # Method called before each test-case.
30 # Redefine this method to factorize code that have to be
31 # executed before every test.
32 fun before_test
do end
34 # Method called after each test-case.
36 # Redefine this method to factorize code that have to be
37 # executed after every test.
42 # Internal empty init.
43 private init nitunit
do end
45 # No before test for the module
46 private fun before_test
do end
48 # No after test for the module
49 private fun after_test
do end
51 # Method called before each test-suite.
53 # Redefine this method to factorize code that have to be
54 # executed before every test suite.
55 fun before_module
do end
57 # Method called after each test-suite.
59 # Redefine this method to factorize code that have to be
60 # executed after every test suite.
61 fun after_module
do end