Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
51 0 0 3 94.118% 4.737

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
us.codecraft.webmagic.selector 11 0 0 0 100% 0.777
us.codecraft.webmagic.proxy 3 0 0 0 100% 0.017
us.codecraft.webmagic.example 1 0 0 0 100% 1.099
us.codecraft.webmagic 10 0 0 3 70% 0.008
us.codecraft.webmagic.scheduler 4 0 0 0 100% 0.193
us.codecraft.webmagic.utils 3 0 0 0 100% 0.019
us.codecraft.webmagic.pipeline 1 0 0 0 100% 0.019
us.codecraft.webmagic.downloader 17 0 0 0 100% 2.604
us.codecraft.webmagic.processor 1 0 0 0 100% 0.001

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

us.codecraft.webmagic.selector

Class Tests Errors Failures Skipped Success Rate Time
ExtractorsTest 2 0 0 0 100% 0.346
LinksSelectorTest 1 0 0 0 100% 0.01
JsonTest 2 0 0 0 100% 0.077
JsonPathSelectorTest 1 0 0 0 100% 0.19
RegexSelectorTest 3 0 0 0 100% 0.007
SelectorTest 2 0 0 0 100% 0.147

us.codecraft.webmagic.proxy

Class Tests Errors Failures Skipped Success Rate Time
ProxyTest 2 0 0 0 100% 0.014
SimpleProxyProviderTest 1 0 0 0 100% 0.003

us.codecraft.webmagic.example

Class Tests Errors Failures Skipped Success Rate Time
GithubRepoPageProcessorTest 1 0 0 0 100% 1.099

us.codecraft.webmagic

Class Tests Errors Failures Skipped Success Rate Time
HtmlTest 6 0 0 1 83.333% 0.005
ResultItemsTest 1 0 0 0 100% 0
RequestTest 1 0 0 0 100% 0.003
SpiderTest 2 0 0 2 0% 0

us.codecraft.webmagic.scheduler

Class Tests Errors Failures Skipped Success Rate Time
PrioritySchedulerTest 2 0 0 0 100% 0
DuplicateRemovedSchedulerTest 2 0 0 0 100% 0.193

us.codecraft.webmagic.utils

Class Tests Errors Failures Skipped Success Rate Time
UrlUtilsTest 2 0 0 0 100% 0.018
NumberUtilsTest 1 0 0 0 100% 0.001

us.codecraft.webmagic.pipeline

Class Tests Errors Failures Skipped Success Rate Time
FilePipelineTest 1 0 0 0 100% 0.019

us.codecraft.webmagic.downloader

Class Tests Errors Failures Skipped Success Rate Time
SSLCompatibilityTest 1 0 0 0 100% 1.15
HttpClientDownloaderTest 15 0 0 0 100% 1.45
HttpUriRequestConverterTest 1 0 0 0 100% 0.004

us.codecraft.webmagic.processor

Class Tests Errors Failures Skipped Success Rate Time
PageProcessorTest 1 0 0 0 100% 0.001

Test Cases

[Summary] [Package List] [Test Cases]

HtmlTest

testEnableJsoupHtmlEntityEscape 0
testRegexSelector 0
testAHrefExtract 0
testNthNodesGet 0.002
testDisableJsoupHtmlEntityEscape 0
not work in jsoup 1.8.x
testGetHrefsByJsoup 0.001

ResultItemsTest

testOrderOfEntries 0

ExtractorsTest

testCombo 0.285
testEach 0.003

RequestTest

testEqualsAndHashCode 0.002

SpiderTest

testStartAndStop 0
long time
testWaitAndNotify 0
long time

PrioritySchedulerTest

testNoPriority 0
testDifferentPriority 0

LinksSelectorTest

testLinks 0.005

UrlUtilsTest

testFixRelativeUrl 0
testGetDomain 0.004

SSLCompatibilityTest

test_tls12 1.145

HttpClientDownloaderTest

test_download_auth_by_SimpleProxyProvider 0.962
test_disableCookieManagement 0.021
test_set_site_cookie 0.031
testDownloaderInIllegalUrl 0.001
test_set_site_header 0.013
test_download_fail 0.008
test_download_when_task_is_null 0.014
test_set_request_cookie 0.009
test_set_request_header 0.008
test_download_set_charset 0.011
test_selectRequestMethod 0.167
test_download_set_request_charset 0.008
testGetHtmlCharset 0.02
testDownloader 0.161
test_download_binary_content 0.013

JsonTest

testRemovePadding 0.069
testRemovePaddingForQuotes 0

ProxyTest

testToString 0.001
testCreate 0

GithubRepoPageProcessorTest

test_github 1.096

JsonPathSelectorTest

testJsonPath 0.188

NumberUtilsTest

testCompareLong 0

RegexSelectorTest

testRegexWithSingleLeftBracket 0
testRegexWithZeroWidthAssertions 0
testRegexWithLeftBracketQuoted 0.007

PageProcessorTest

testGetSite 0

SelectorTest

testChain 0.14
testNodes 0.001

DuplicateRemovedSchedulerTest

test_no_duplicate_removed_for_post_request 0.187
test_duplicate_removed_for_get_request 0.003

SimpleProxyProviderTest

test_get_proxy 0

HttpUriRequestConverterTest

test_illegal_uri_correct 0.002

FilePipelineTest

testProcess 0.016

Failure Details

[Summary] [Package List] [Test Cases]


testDisableJsoupHtmlEntityEscape
skipped: not work in jsoup 1.8.x
testStartAndStop
skipped: long time
testWaitAndNotify
skipped: long time