سؤال

I'm writing some specflow tests to drive out my systems behaviour. All working great locally. However, when I commit to git and AppHarbor builds it fails. At present it's due to a lack of transformations identifying the appharbor hosted app.

However, everytime I write a new feature with accompanying specflow (and selenium) tests, I anticipate that my specflow tests will fail because the new feature has not yet been deployed. Viscious circle.

I'd actually like to constrain the build somehow to not run the specflow tests. Is there a way with AppHarbor of constraining which tests run? Nunit categories?

هل كانت مفيدة؟

المحلول

You can use AppHarbor's solution file convention to achieve this. If you have a separate project containing the specflow/selenium tests the trick is to make sure that this project is not referenced in the solution we build.

More specifically you can create a solution with the name AppHarbor.sln and reference only the web, console and test projects you want AppHarbor to build and test from this solution file. AppHarbor will always prefer building a solution with that name if it's found in your repository.

You can then maintain a separate solution file (likely the one you're already using) for development where the project containing the specflow/selenium tests is included. This will allow you to execute your tests locally before committing and retain your current workflow.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top