--- a/compiler/tests/extras/stx_goodies_petitparser_compiler_tests_extras.st Sun May 10 06:46:56 2015 +0100
+++ b/compiler/tests/extras/stx_goodies_petitparser_compiler_tests_extras.st Sun May 10 14:20:24 2015 +0100
@@ -10,6 +10,32 @@
!
+!stx_goodies_petitparser_compiler_tests_extras class methodsFor:'accessing'!
+
+additionalClassAttributesFor: aClass
+ "Answers additional set of class attributes for given class
+ Individual project definitions may override this method, but
+ overriding method should always merge its attributes with result
+ of 'super additionalClassAttributesFor: aClass'.
+
+ Here, we add #autoload attributes to all test cases and
+ test resources, as they are not neccessary for the package
+ and should not be compiled (because of unwanted dependency
+ on stx:goodies/sunit package)
+
+ But not make them autoloaded when the package is separate
+ test-package - by conventions such package should by named
+ #'module:package/subpackage/tests'
+ "
+ (TestCase notNil and:[aClass inheritsFrom: TestCase]) ifTrue:[^#()].
+ (TestResource notNil and:[aClass inheritsFrom: TestResource]) ifTrue:[^#()].
+
+
+ ^ super additionalClassAttributesFor: aClass
+
+ "Created: / 10-05-2015 / 14:17:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
!stx_goodies_petitparser_compiler_tests_extras class methodsFor:'accessing - monticello'!
monticelloLastMergedVersionInfo
@@ -101,19 +127,19 @@
^ #(
"<className> or (<className> attributes...) in load order"
- (PPCCompiledJavaVerificationTest autoload)
- (PPCResources autoload)
- (PPCSmalltalkTests autoload)
- (PPCSmalltalkVerificationTest autoload)
- (PPCompiledJavaResource autoload)
+ PPCCompiledJavaVerificationTest
+ PPCResources
+ PPCSmalltalkTests
+ PPCSmalltalkVerificationTest
+ PPCompiledJavaResource
(PPCompiledJavaSyntaxTest autoload)
- (PPCompiledSmalltalkGrammarResource autoload)
- (PPCompiledSmalltalkGrammarTests autoload)
- (PPTokenizedSmalltalkGrammarResource autoload)
- (PPTokenizedSmalltalkGrammarTests autoload)
+ PPCompiledSmalltalkGrammarResource
+ PPCompiledSmalltalkGrammarTests
+ PPTokenizedSmalltalkGrammarResource
+ PPTokenizedSmalltalkGrammarTests
#'stx_goodies_petitparser_compiler_tests_extras'
- (PPCompiledSmalltalkVerificationTest autoload)
- (PPTokenizedSmalltalkVerificationTest autoload)
+ PPCompiledSmalltalkVerificationTest
+ PPTokenizedSmalltalkVerificationTest
)
!