Skip to content

Run from code

Mehrdad Abdi edited this page Mar 1, 2020 · 2 revisions

An example presented in SmallAmp class>>#example method.

Running with default config

For running SmallAmp using default config:

	| result |
	result := SmallAmp initializeDefault
		testCase: SmallBankTest targets: {SmallBank};
		testCase: SmallBank2Test targets: {SmallBank2};
		amplifyAll.
	result inspect.

Running with custom config

	| config result |
        config := SAConfig default.
        config iterations: 5.
	result := (SmallAmp initializeWith: config)
		testCase: SmallBankTest targets: {SmallBank};
		testCase: SmallBank2Test targets: {SmallBank2};
		amplifyAll.
	result inspect.

Configs

name description default
statementTimeOut Time out to execute a single statement (ms) 2000
testRunTimeOut Time out to execute a test run (ms) 10000
lite Lite amplification. Just assertion amplification and selection false
iterations Number of iteration in algorithm 3
flackyTestRepeat Number of rerun tests to detect flakiness 3
debug Debug mode. false
inputAmplifiers
assertionAmplifiers
selections
oracleReducions
profiler
methodReductions
customize internal modules Check the code!
Clone this wiki locally