Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Add a guide about running tests #70

@dadoonet

Description

@dadoonet

Well, I'm trying to run tests using mvn test and it fails:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Microsoft Azure Storage Client SDK 4.0.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ azure-storage ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/dpilato/Documents/Elasticsearch/dev/3rdparty/azure-storage-java/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ azure-storage ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ azure-storage ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ azure-storage ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.13:test (default-test) @ azure-storage ---
[INFO] Surefire report directory: /Users/dpilato/Documents/Elasticsearch/dev/3rdparty/azure-storage-java/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
parallel='classes', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
Running com.microsoft.azure.storage.GenericTests
Tests run: 11, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.234 sec <<< FAILURE!
testReadTimeoutIssue(com.microsoft.azure.storage.GenericTests)  Time elapsed: 0.006 sec  <<< ERROR!
com.microsoft.azure.storage.StorageException: A Client side exception occurred, please check the inner exception for details
    at java.net.URI$Parser.fail(URI.java:2848)
    at java.net.URI$Parser.parseIPv6Reference(URI.java:3469)
    at java.net.URI$Parser.parseServer(URI.java:3219)
    at java.net.URI$Parser.parseAuthority(URI.java:3155)
    at java.net.URI$Parser.parseHierarchical(URI.java:3097)
    at java.net.URI$Parser.parse(URI.java:3053)
    at java.net.URI.<init>(URI.java:588)
    at com.microsoft.azure.storage.TestHelper.readTestConfigsFromXml(TestHelper.java:376)
    at com.microsoft.azure.storage.TestHelper.getAccount(TestHelper.java:308)
    at com.microsoft.azure.storage.TestHelper.createCloudBlobClient(TestHelper.java:56)
    at com.microsoft.azure.storage.GenericTests.testReadTimeoutIssue(GenericTests.java:74)

...

testCloudFileShareDeleteIfExists(com.microsoft.azure.storage.file.CloudFileShareTests)  Time elapsed: 0 sec  <<< ERROR!
java.lang.NullPointerException: null
    at com.microsoft.azure.storage.file.CloudFileShareTests.fileShareTestMethodTearDown(CloudFileShareTests.java:63)

...

  LoggerTests.testStringToSign:260 » Storage A Client side exception occurred, p...

Tests run: 969, Failures: 0, Errors: 915, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.541 s
[INFO] Finished at: 2016-01-14T14:30:11+01:00
[INFO] Final Memory: 9M/309M
[INFO] ------------------------------------------------------------------------

Would it be possible to have a guide on how tests should be run?
Or may be it exists somewhere but I can't find it?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions