Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
61 3 0 3 90.2% 8.796 s

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 16 0 0 0 100% 0.760 s
us.codecraft.webmagic.proxy 1 1 0 0 0% 0.218 s
us.codecraft.webmagic.example 1 0 0 0 100% 1.020 s
us.codecraft.webmagic 15 0 0 3 80.0% 0.023 s
us.codecraft.webmagic.scheduler 4 2 0 0 50.0% 0.057 s
us.codecraft.webmagic.utils 4 0 0 0 100% 0.001 s
us.codecraft.webmagic.pipeline 1 0 0 0 100% 0.001 s
us.codecraft.webmagic.downloader 18 0 0 0 100% 6.716 s
us.codecraft.webmagic.processor 1 0 0 0 100% 0 s

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
JsonPathSelectorTest 1 0 0 0 100% 0.639 s
LinksSelectorTest 1 0 0 0 100% 0.001 s
RegexSelectorTest 3 0 0 0 100% 0.001 s
JsonTest 2 0 0 0 100% 0.110 s
CssSelectorTest 2 0 0 0 100% 0.001 s
ExtractorsTest 2 0 0 0 100% 0.002 s
SelectorTest 2 0 0 0 100% 0 s
OrSelectorTest 1 0 0 0 100% 0.001 s
AndSelectorTest 2 0 0 0 100% 0.005 s

us.codecraft.webmagic.proxy

- Class Tests Errors Failures Skipped Success Rate Time
SimpleProxyProviderTest 1 1 0 0 0% 0.218 s

us.codecraft.webmagic.example

- Class Tests Errors Failures Skipped Success Rate Time
GithubRepoPageProcessorTest 1 0 0 0 100% 1.020 s

us.codecraft.webmagic

- Class Tests Errors Failures Skipped Success Rate Time
SiteTest 2 0 0 0 100% 0.001 s
HtmlTest 6 0 0 1 83.3% 0.008 s
ResultItemsTest 1 0 0 0 100% 0.014 s
RequestTest 4 0 0 0 100% 0 s
SpiderTest 2 0 0 2 0% 0 s

us.codecraft.webmagic.scheduler

- Class Tests Errors Failures Skipped Success Rate Time
PrioritySchedulerTest 2 0 0 0 100% 0.001 s
DuplicateRemovedSchedulerTest 2 2 0 0 0% 0.056 s

us.codecraft.webmagic.utils

- Class Tests Errors Failures Skipped Success Rate Time
NumberUtilsTest 1 0 0 0 100% 0 s
UrlUtilsTest 3 0 0 0 100% 0.001 s

us.codecraft.webmagic.pipeline

- Class Tests Errors Failures Skipped Success Rate Time
FilePipelineTest 1 0 0 0 100% 0.001 s

us.codecraft.webmagic.downloader

- Class Tests Errors Failures Skipped Success Rate Time
HttpClientDownloaderTest 16 0 0 0 100% 5.964 s
HttpUriRequestConverterTest 1 0 0 0 100% 0.004 s
SSLCompatibilityTest 1 0 0 0 100% 0.748 s

us.codecraft.webmagic.processor

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

Test Cases

[Summary] [Package List] [Test Cases]

NumberUtilsTest

testCompareLong 0 s

SiteTest

addCookieTest 0 s
test 0 s

SimpleProxyProviderTest

test_get_proxy 0.212 s

JsonPathSelectorTest

testJsonPath 0.638 s

LinksSelectorTest

testLinks 0.001 s

RegexSelectorTest

testRegexWithSingleLeftBracket 0 s
testRegexWithZeroWidthAssertions 0 s
testRegexWithLeftBracketQuoted 0 s

HtmlTest

testEnableJsoupHtmlEntityEscape 0 s
testRegexSelector 0 s
testAHrefExtract 0 s
testNthNodesGet 0 s
testDisableJsoupHtmlEntityEscape 0 s
- not work in jsoup 1.8.x -
testGetHrefsByJsoup 0.005 s

UrlUtilsTest

testFixRelativeUrl 0 s
testGetDomain 0 s
testGetCharset 0 s

HttpClientDownloaderTest

test_no_task_download 1.911 s
test_download_auth_by_SimpleProxyProvider 2.163 s
test_disableCookieManagement 0.038 s
test_set_site_cookie 0.123 s
testDownloaderInIllegalUrl 0.002 s
test_set_site_header 0.021 s
test_download_fail 0.005 s
test_download_when_task_is_null 0.017 s
test_set_request_cookie 0.056 s
test_set_request_header 0.026 s
test_download_set_charset 0.033 s
test_selectRequestMethod 0.647 s
test_download_set_request_charset 0.076 s
testGetHtmlCharset 0.317 s
testDownloader 0.305 s
test_download_binary_content 0.054 s

GithubRepoPageProcessorTest

test_github 1.018 s

ResultItemsTest

testOrderOfEntries 0.010 s

PrioritySchedulerTest

testNoPriority 0 s
testDifferentPriority 0 s

JsonTest

testRemovePadding 0.108 s
testRemovePaddingForQuotes 0 s

RequestTest

testSetExtras 0 s
testGetExtras 0 s
testEqualsAndHashCode 0 s
testGetExtrasShouldBeUnmodifiable 0 s

PageProcessorTest

testGetSite 0 s

HttpUriRequestConverterTest

test_illegal_uri_correct 0 s

SpiderTest

testStartAndStop 0 s
- long time -
testWaitAndNotify 0 s
- long time -

FilePipelineTest

testProcess 0 s

CssSelectorTest

testSelectElement 0 s
testSelectList 0 s

SSLCompatibilityTest

test_tls12 0.741 s

ExtractorsTest

testCombo 0.001 s
testEach 0 s

DuplicateRemovedSchedulerTest

test_no_duplicate_removed_for_post_request 0.041 s
- Could not initialize class org.mockito.internal.creation.cglib.ClassImposterizer$3 -
test_duplicate_removed_for_get_request 0.002 s
- Could not initialize class org.mockito.internal.creation.cglib.ClassImposterizer$3 -

SelectorTest

testChain 0 s
testNodes 0 s

OrSelectorTest

testSelectList 0 s

AndSelectorTest

testSelectList_NoResults 0 s
testSelectList 0.003 s

Failure Details

[Summary] [Package List] [Test Cases]


test_get_proxy
- java.lang.ExceptionInInitializerError
-
testDisableJsoupHtmlEntityEscape
- skipped: not work in jsoup 1.8.x
testStartAndStop
- skipped: long time
testWaitAndNotify
- skipped: long time
test_no_duplicate_removed_for_post_request
- java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.creation.cglib.ClassImposterizer$3
-
us.codecraft.webmagic.scheduler.DuplicateRemovedSchedulerTest:33
test_duplicate_removed_for_get_request
- java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.creation.cglib.ClassImposterizer$3
-