Skip to content

Commit

Permalink
build.gradle: Enable assertions
Browse files Browse the repository at this point in the history
By default, assertions are disabled. This could create a situation where one thinks that all assertions are verified when they in fact are not being checked. According to [the project details](https://nus-cs2103-ay2324s1.github.io/website/schedule/week10/project.html#3-start-the-next-iteration), assertions should be enabled in the gradle file.

Let's modify build.gradle to enable assertions.
  • Loading branch information
samuelim01 committed Oct 26, 2023
1 parent baf1808 commit 286c6e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,8 @@ shadowJar {
archiveFileName = 'wedlog.jar'
}

run {
enableAssertions = true
}

defaultTasks 'clean', 'test'

0 comments on commit 286c6e7

Please sign in to comment.