Skip to content

Commit cbf5d43

Browse files
committed
add a small working test
1 parent f1d2028 commit cbf5d43

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = 'nf-cmgg'
1+
rootProject.name = 'nf-cmgg'

src/main/groovy/nfcmgg/plugin/DoneObserver.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import groovy.util.logging.Slf4j
2525
import nextflow.Session
2626
import nextflow.trace.TraceObserverV2
2727

28-
2928
/**
3029
* Implements an observer that allows implementing custom
3130
* logic on nextflow execution events.

src/test/groovy/nfcmgg/plugin/CmggObserverTest.groovy

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@ import spock.lang.Specification
1212
@CompileDynamic
1313
class CmggObserverTest extends Specification {
1414

15-
// void 'should create the observer instance'() {
16-
// given:
17-
// CmggFactory factory = new CmggFactory()
18-
// when:
19-
// Object result = factory.create(Mock(Session))
20-
// then:
21-
// result.size() == 1
22-
// result.first() instanceof CmggObserver
23-
// }
15+
void 'should create the observer instance'() {
16+
given:
17+
CmggFactory factory = new CmggFactory()
18+
expect:
19+
factory.create(Mock(Session)).size() == 0
20+
}
2421

2522
}

0 commit comments

Comments
 (0)