Closed VitoHanoi closed 6 years ago
Usage with Selenium is something I had not tried before. Can you please create me a small sample project and attach it to the issue?
About ordered tests: this feature is not supported, though it would not be that complex to implement.
Here is the project. really simple. Framework to drive a browser. one Test file to test it. I added a Ordered file so you could test of implement this feature. Same behavior as my project (finishing operation)
Thanks in advance
And... it is a deadlock. I added a fix on master: https://github.com/axodox/AxoCover/releases/tag/master-1.1.317.
For the ordered tests I was wondering if adding an option to execute tests in declaration order would make more sense, since that way you could avoid creating these ordered test files. In this case you would have to define your tests in order in your test class, then execution would follow that order.
What do you think?
Hey, Thank you for your answer. I will test it after its release.
Regarding the ordered tests. Sure just an option to execute tests in declaration order would be fine. but how will it behave if I have 1 test per file (multiple files), and several test classes? it would be dependent of the building I suppose? It is such a shame that MSTest doesn't have an OrderAttribute like NUnit... Thanks
I would leave that to the order of the test discovery. I would probably offer 4 options for ordering:
I could also possibly create an AxoCover specific test library, with some helper attributes, which could control the test execution order or define my own ordered test format etc. - I would like to avoid adding an MSTEST only feature. However I would rather have the existing libraries cover this scenario instead. Alternatively I could create a command line capable universal test runner from the AxoCover.Runner.
My future plan is to switch over to Microsoft's new test framework, which is .Net Core capable, but for that I first need to get my AxoCover specific changes back into the respective xUnit, NUnit libraries and then implement plug-ins for the MS's runner, which is a lot of work. And I am concerned with the stability of the APIs offered by it. I might delay this test runner switch until I will have a personal need for .Net Core.
I created a new issue for ordering the tests, and closed this
Hello there,
I'm new using this tool. I have Axo (release) last version and VS2017. I am developing a selenium test project (Web Driver). And my test has passed (even on debug mode, i'm hitting the last line with success) but Axo is trying to "Finish the operation" by "shutting down..." and exiting something... but it is blocked at this step and I have to Abort the test to do something. Same Thing With Cover Tests option..
I can see that the "Console" is still running on background
It doesn't happen when I'm trying a simple test like Assert.IsTue(true); Do you have any idea of what could be the issue? I'm supposing Selenium but my tests are running well on MSTest or Resharper sessions.
And just a question apart, Is it possible to cover ordered test (MSTest v1), as my Selenium project has to be run as ordered tests... Thanks in advance.
Guillaume