How does testing a connection to a third-party API fit into continuous integration? -


i wrote test time ago tests integration wrote between code , third-party api. test makes sure integration works , expected results.

the formal build failed today because test received 500 error while trying connect third-party api.

does make sense test situation this?

in opinion integration tests okay fail if 3rd party (db, webservice etc.) isn't available. if don't want test integration , plain functionality mock result of api , test against them. in scenario test not depending on 3rd party availability anymore.

i mark unit tests depending on 3rd party availability group attribute "integration" , exclude them continous integration process. instead let them run in nightly build. integration tests expensive in time , whole point of continuous integration provide rapid feedback.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -