Skip to content

Commit

Permalink
Add support for NUnit.Console V3.16 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatiVioleta authored Jan 11, 2023
1 parent fe6ff85 commit 336de97
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/groovy/com/ullink/gradle/nunit/NUnit.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ class NUnit extends ConventionTask {
major == 3 && minor >= 13
}

@Internal
boolean getIsV316OrAbove() {
def (major, minor, patch) = getNunitVersion().tokenize('.')*.toInteger()
major == 3 && minor >= 16
}

@Internal
String getGitHubRepoName() {
if (isV35OrAbove) {
Expand Down Expand Up @@ -171,7 +177,9 @@ class NUnit extends ConventionTask {
}

String folderName = "bin/"
if (isV310OrAbove) {
if (isV316OrAbove){
folderName = "bin/"
} else if (isV310OrAbove) {
folderName = "bin/net35/"
} else if (isV35OrAbove) {
folderName = ""
Expand Down

0 comments on commit 336de97

Please sign in to comment.