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
Post a Comment