Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow for assembly setup and teardown #111
Similar to what is find in
The main reason to ask for that is because of integration tests, where we usually need to do some preparation on the environment before any tests can run, like write some files, migrate a DB, bring up a web server, etc. And to clear it all up at the end.
Also, it is very hard to migrate from other framework that already support this.
I am aware that there are workarounds. I understand that it is possible to create some static class with a static constructor and call it somehow, or maybe have all test classes inherit from a base test class and do the setup there. But this means have to mix setup concerns with test concerns, which is not good design. Also, again, it is a lot of work when migrating from some other framework and you have hundreds of tests.
@bradwilson I struggling to enable some scenarios without this kind of feature. Here is what i do with nunit during an integration test.
What are the workarounds in