forked from Metacello/metacello
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue Metacello#114: add tracing, since test fails on travisci not in…
… test image start testing on all platforms
- Loading branch information
Dale Henrichs
committed
Sep 2, 2012
1 parent
ba595a3
commit 8185322
Showing
4 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 31 additions & 11 deletions
42
...tacello-TestsMC.package/MetacelloGoferBasedLoaderTest.class/instance/testProjectRecord.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
tests | ||
testProjectRecord | ||
|
||
| project version names loader | | ||
project := self project. | ||
version := project version: '3.0'. | ||
loader := version record. | ||
names := #('MetacelloTestConfigurationOfFoo' 'GoferFoo' 'GoferBar' 'GoferFaux' 'GoferBeau' ) asOrderedCollection. | ||
loader loadDirective packageDirectivesDo: [:pkgDirective | | name | | ||
name := pkgDirective packageName. | ||
self assert: (names indexOf: name) = 1. | ||
names remove: name ifAbsent: [ self assert: false ]]. | ||
self deny: (Smalltalk at: #'Metacello_Configuration_Test_DoIt_Result') | ||
| project version names loader | | ||
Transcript | ||
cr; | ||
show: 'testProjectRecord [0]'. | ||
self deny: (Smalltalk at: #'Metacello_Configuration_Test_DoIt_Result'). | ||
Transcript | ||
cr; | ||
show: 'testProjectRecord [1]'. | ||
project := self project. | ||
version := project version: '3.0'. | ||
loader := version record. | ||
names := #('MetacelloTestConfigurationOfFoo' 'GoferFoo' 'GoferBar' 'GoferFaux' 'GoferBeau') asOrderedCollection. | ||
loader loadDirective | ||
packageDirectivesDo: [ :pkgDirective | | ||
| name | | ||
name := pkgDirective packageName. | ||
self assert: (names indexOf: name) = 1. | ||
Transcript | ||
cr; | ||
show: 'testProjectRecord [4]: ' , name. | ||
names remove: name ifAbsent: [ self assert: false ]. | ||
Transcript | ||
cr; | ||
show: 'testProjectRecord [5]: ' , name ]. | ||
Transcript | ||
cr; | ||
show: 'testProjectRecord [2]'. | ||
self deny: (Smalltalk at: #'Metacello_Configuration_Test_DoIt_Result'). | ||
Transcript | ||
cr; | ||
show: 'testProjectRecord [3]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.