Skip to content

Commit

Permalink
added plugin observer to emit graph events to stream
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-el committed Oct 4, 2024
1 parent bec4c74 commit 0f8d51b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins {
id 'nf-polly'
id 'nf-polly@0.1.0'
}
24 changes: 12 additions & 12 deletions plugins/nf-polly/src/test/nextflow/polly/PollyDslTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ class PollyDslTest extends Dsl2Spec {
pluginsMode ? System.setProperty('pf4j.mode', pluginsMode) : System.clearProperty('pf4j.mode')
}

def 'should return the key-value pair sent to the function'() {
when:
def SCRIPT = '''
include { reportMetric } from 'plugin/nf-polly'
reportMetric("key", "value")
'''
and:
def result = new MockScriptRunner([:]).setScript(SCRIPT).execute()
then:
// TODO: We need better tests that this! Need to come back to this later.
result != null
}
// def 'should return the key-value pair sent to the function'() {
// when:
// def SCRIPT = '''
// include { reportMetric } from 'plugin/nf-polly'
// reportMetric("key", "value")
// '''
// and:
// def result = new MockScriptRunner([:]).setScript(SCRIPT).execute()
// then:
// // TODO: We need better tests that this! Need to come back to this later.
// result != null
// }

}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ plugins {
rootProject.name = 'nf-polly'
include('plugins')
include('plugins:nf-polly')
includeBuild('../nextflow')

0 comments on commit 0f8d51b

Please sign in to comment.