Git Product home page Git Product logo

Comments (4)

stammen avatar stammen commented on July 23, 2024

Part of what you are looking for is in the README.md file. Steps 1 and 2 are probably missing from README.md and should be added. Step 3 is in the README.md.

  1. Copy a provider config file from test/configs/mock to test/configs.
  2. Fill in the credentials for the provider
  3. run the test using vows

//Vows installed globally
$ vows --spec --isolate test///*-test.js

//Linux/Mac - Vows installed locally
$ ./node_modules/.bin/vows --spec --isolate test///*-test.js

//Windows - Vows installed locally:
$ node_modules.bin\vows.cmd --spec --isolate test///*-test.js

Note: If you only want to test one specific provider you can just list the one provider in test/config/providers.json. Otherwise, you will need to specify credentials in config files for all providers as the tests will all fail.

Note: Any config .json file in test/config is ignored by ,gitignore so your credentials will not be committed.

We should probably add an optional PROVIDER= option to the test command so you can easily specify what provider you want to test.

from pkgcloud.

cronopio avatar cronopio commented on July 23, 2024

Yeah definitely there is no info about the point 1 and point 2 on Readme.

And about the PROVIDER= idea, that option should replace the list on test/config/providers.json ?? Using the file work fine for me.

from pkgcloud.

dscape avatar dscape commented on July 23, 2024

Feel free to merge @cronopio

from pkgcloud.

stammen avatar stammen commented on July 23, 2024

Actually I was suggesting that if you specify a provider with PROVIDER= option it should override the providers listed in the providers file. It would be nice if we had a easy way to test one provider without having to alter the providers.json file.

from pkgcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.