Skip to content

Commit

Permalink
Try to use iceberg to obtain the repository location
Browse files Browse the repository at this point in the history
  • Loading branch information
matburnx committed Jun 27, 2024
1 parent 9f50212 commit b20238b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/MuTalk-CI-Tests/MTCITonelJsonExporterTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,23 @@ Class {

{ #category : 'tests' }
MTCITonelJsonExporterTest >> testWorking [
"requires https://github.com/mabdi/smalltalk-SmallBank"

| analysis json moreInfo |
| analysis json moreInfo repo |
analysis := MTAnalysis new
testClasses: { MTSmallBankTest };
classesToMutate: { MTSmallBank }.
analysis run.
moreInfo := MTCoveragePropagationPreparation new
mtResult: analysis;
prepare.
repo := IceRepository repositories detect: [ :aRepo |
aRepo workingCopy packages anySatisfy: [ :package |
package name = MTSmallBank package name ] ].

json := MTCITonelJsonExporter new
mtResult: analysis;
coverageInfo: moreInfo;
cloneLocation: FileLocator localDirectory fullName
, '/iceberg/pharo-contributions/mutalk';
cloneLocation: repo location fullName;
root: 'src';
export.
self assert: json class equals: '' class
Expand Down

0 comments on commit b20238b

Please sign in to comment.