You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/04/15 06:22:29 UTC

[GitHub] [pulsar-client-node] k2la opened a new pull request #26: Add Producer/Consumer/EndToEnd Tests

k2la opened a new pull request #26: Add Producer/Consumer/EndToEnd Tests
URL: https://github.com/apache/pulsar-client-node/pull/26
 
 
   ### Modifications
   - Install [Jest](https://jestjs.io/) Test Framework
   - Add test command
     - By using `$ npm test`, test starts.
   - Add Tests
     - producer
        - error handling about `create`
     - consumer
        - error handling about `create`
     - end-to-end
       -  produce/consume
   
   ### Results
   Tests are executed as follows:
   ```
   $ npm test
   
   > pulsar-client@2.4.0-SNAPSHOT test /home/k2la/pulsar-client-node
   > jest --verbose
   
    PASS  tests/producer.test.js
     Producer
       Create
         ✓ No Topic (8ms)
         ✓ Not String Topic (1ms)
         ✓ Not Exist Tenant (10ms)
         ✓ Not Exist Namespace (4ms)
   
    PASS  tests/consumer.test.js
     Consumer
       Create
         ✓ No Topic (10ms)
         ✓ Not String Topic (1ms)
         ✓ No Subscription (1ms)
         ✓ Not String Subscription (2ms)
         ✓ Not Exist Tenant (54ms)
         ✓ Not Exist Namespace (5ms)
   
    PASS  tests/end_to_end.test.js
     End To End
       ✓ Produce/Consume (128ms)
   
   Test Suites: 3 passed, 3 total
   Tests:       11 passed, 11 total
   Snapshots:   0 total
   Time:        2.586s
   Ran all test suites.
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services