Introduction
This package is for saucelabs users. It lets you upload files from your local computer to sauce storage. For more information about sauce storage, please read here.
- only proceed to upload if there is currently no build with the same name and hash on your sauce-storage
- returns the string to use in your app capability ("sauce-storage:mybuild.apk")
Installation
npm i sauce-storage
How to use
Promise is the only available interface, callback is not supported:
const sauceStorage = const storage = 'mySauceUsername' 'mySauceAccessKey' // Within an async functionconst appCap = await storage // Promisestorage
EU datacenter If you are running tests on the EU datacenter, you should provide the correct hostname when instanciating the class. See saucelabs documentation.
const storage = 'mySauceUsername' 'mySauceAccessKey' 'eu-central-1.saucelabs.com'
For webdriverio users, you may add the app capability using the onPrepare hook (which will wait for the promise to resolve, and hence can be async):
{ const app = await storage capabilities}
Contributing
Contributions are welcome, but please be aware that:
- I built the project without any dependencies in an effort to learn more about the nodejs API
- I want to keep the project's scope small. It solves just one problem and that is all I want it to do for the moment
- There is currently no tests