修昔底德报告没有数据

Thucydides Reports have no data

修昔底德报告没有数据

我正在尝试通过调查 Demo Project 生成修昔底德报告。但是我的报告总是显示零数据。但是,我可以在需求、故事和功能中看到一些数据

Test Result Summary

Test Type   Total   Pass    Fail    Pending     Ignored 
Automated      0    0 (0%)  0 (0%)  0 (0%)  0 (0%)
Manual         0    0 (0%)  0 (0%)  0 (0%)  0 (0%)     
Total          0    0 (0%)  0 (0%)  0 (0%)  0 (0%)

我在故障安全报告中看到以下异常

1) Error injecting constructor, java.lang.VerifyError: class com.fasterxml.jackson.datatype.guava.deser.HostAndPortDeserializer overrides final method deserialize.(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Object;
at net.thucydides.core.reports.json.jackson.JacksonJSONConverter.<init>(JacksonJSONConverter.java:32)
while locating net.thucydides.core.reports.json.jackson.JacksonJSONConverter
at net.thucydides.core.guice.ThucydidesModule.configure(ThucydidesModule.java:57)
while locating net.thucydides.core.reports.json.JSONConverter

1 error
at sun.misc.Service.fail(Service.java:137)
at sun.misc.Service.access0(Service.java:128)
at sun.misc.Service$LazyIterator.next(Service.java:301)
at net.thucydides.core.reports.ReportService.getDefaultReporters(ReportService.java:171)
at net.thucydides.core.ThucydidesReports.getReportService(ThucydidesReports.java:12)
at net.thucydides.jbehave.ThucydidesReporter.getReportService(ThucydidesReporter.java:96)
at net.thucydides.jbehave.ThucydidesReporter.generateReports(ThucydidesReporter.java:472)
at net.thucydides.jbehave.ThucydidesReporter.afterStory(ThucydidesReporter.java:452)
at org.jbehave.core.reporters.DelegatingStoryReporter.afterStory(DelegatingStoryReporter.java:49)
at org.jbehave.core.reporters.ConcurrentStoryReporter.afterStory(ConcurrentStoryReporter.java:119)
at org.jbehave.core.embedder.StoryRunner.runBeforeOrAfterStories(StoryRunner.java:85)
at org.jbehave.core.embedder.StoryManager.runBeforeOrAfterStories(StoryManager.java:91)
at org.jbehave.core.embedder.StoryManager.runStories(StoryManager.java:86)
at org.jbehave.core.embedder.Embedder.runStoriesAsPaths(Embedder.java:203)
at net.thucydides.jbehave.runners.ThucydidesReportingRunner.run(ThucydidesReportingRunner.java:157)
... 9 more

原因:com.google.inject.ProvisionException:Guice 提供错误:

任何人都可以帮助解决这个问题

谢谢。

看起来我的 POM 文件存在一些依赖冲突。我在pom文件中添加了依赖管理,一切顺利。

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.4.3</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.4.3</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-joda</artifactId>
            <version>2.4.3</version>
        </dependency>
    </dependencies>
</dependencyManagement>