moritz
11/03/2022, 12:51 AM<http://main.nf|main.nf> but it seems to me that the init method of the SlackExtension class is not called and thus things fail. I'd appreciate any input.
https://github.com/Midnighter/nf-slackJorge
11/03/2022, 9:50 AMdef 'should perform a hi and create a channel' () {
when:
def SCRIPT = '''
include {reverse} from 'plugin/nf-hello'
channel.reverse('hi!')
'''
and:
def result = new MockScriptRunner([:]).setScript(SCRIPT).execute()
then:
result.val == '!ih'
result.val == Channel.STOP
}
https://github.com/nextflow-io/nf-hello/blob/master/plugins/nf-hello/src/test/nextflow/hello/HelloDslTest.groovy
Probably in your case you need to mock the Slack endpointmoritz
11/03/2022, 9:51 AMJorge
11/03/2022, 10:10 AMmoritz
11/03/2022, 10:13 AMthis.config and this.session which are null because the init method wasn't called.moritz
11/03/2022, 10:13 AMinit isn't called because there's no operator defined.Jorge
11/03/2022, 10:13 AMmoritz
11/03/2022, 10:14 AMmoritz
11/03/2022, 10:15 AMJorge
11/03/2022, 10:28 AMmoritz
11/03/2022, 10:30 AMRob Syme
11/03/2022, 1:54 PMmoritz
11/03/2022, 1:55 PMmoritz
11/07/2022, 7:59 PM