Is possible to run some Unit Tests as smoke tests from an .aspx?
In my projec开发者_JAVA百科t we use UnitTests (MsTest). We run them manually and in the build script. But for some environments where we deploy manually.
We are in the need of having some smoke tests. At the moment I made this smoke tests "manually" (Login, create an user, create a licence, create a product, etc).
I know I can run unit tests from command line or from visual studio but...
Do you know if is possible to run these mstests (or probably a small subset) from an .aspx page and show the results?
EDITED: wondering if mstests or something is able to run the tests and have something visual to show in an .aspx page similar to a list of tests passed and tests failed... I am thinking on running only a small subset of tests (5-6)
If you can run them from command line then you can run them from aspx file. Check Process class.
精彩评论