Skip to content

Commit

Permalink
run tests with UTC timezone as default
Browse files Browse the repository at this point in the history
  • Loading branch information
SingingBush committed Apr 29, 2022
1 parent 03b5265 commit 2cd3ce1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
java-version: ${{ matrix.jdk }}
- uses: eskatos/gradle-command-action@v1
with:
arguments: check
arguments: check --console=plain --warning-mode all

publish:
name: Publish Artifact
Expand Down
8 changes: 6 additions & 2 deletions build.gradle
Expand Up @@ -85,12 +85,16 @@ dependencies {

test {
useJUnitPlatform()

finalizedBy jacocoTestReport // Ensure Jacoco is run after tests have completed

jvmArgs = [ "-Duser.timezone=UTC" ] // Some tests require default timezone to be UTC
}

jacocoTestReport {
reports {
xml.enabled true
html.enabled 'true' == jacoco_htmlReport
xml.required = true
html.required = jacoco_htmlReport == 'true'
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/test/groovy/net/fortuna/ical4j/model/DateTimeSpec.groovy
Expand Up @@ -32,7 +32,6 @@
package net.fortuna.ical4j.model

import net.fortuna.ical4j.model.component.VTimeZone
import spock.lang.Ignore
import spock.lang.Shared
import spock.lang.Specification
import spock.lang.Unroll
Expand Down Expand Up @@ -156,7 +155,6 @@ class DateTimeSpec extends Specification {
dateTimeString << ['20110327T000000']
}

@Ignore
@Unroll
def 'verify parse failure for invalid dates: #dateTimeString'() {
when:
Expand Down

0 comments on commit 2cd3ce1

Please sign in to comment.