Rewrite test suite to pytest & run CTest#25
Conversation
8d9fc5a to
01448f0
Compare
|
Somehow this sometimes hangs and I'm not sure why yet. |
|
What do you mean with your last post? |
|
You can see that If you have thoughts then I'd welcome them. |
|
I can reproduce it too. I expect the problem by starting railcontrol from another directory than ".". Because then all static files of the webserver are not served anymore. |
The odd thing is that if I locally run the same command again it does pass. Any idea why that could be?
That's also my theory and #22 is probably part of a bigger issue: you can't run Perhaps a short term fix could be to find the right options so that each test uses its own database in the same build directory and not write out any log file, relying on stdout. Hopefully that provides enough test isolation. |
|
I'm going to further experiment in a different branch because here I can't cancel CI. |
|
Output from a run with more debug output gives me the impression the problem 2 fold:
|
Reasons for this:
And https://docs.pytest.org/en/7.1.x/how-to/fixtures.html#handling-errors-for-yield-fixture states:
So nothing kills |
|
Updated. It now includes #33, a commit to limit CI job execution to 15 minutes and 2 fixes:
I can see the first results are showing green so I think this is ready. |
|
Windows now fails with: The initial build passes so I suspect the Python setup somehow breaks the setup. |
|
The test is compiled with another compiler than the build. I guess the other mingw compiler does not find the library. In a standard cygwin the mingw compiler is not installed, I don't know where it comes from. |
|
I think the |
|
There are merge conflicts. |
This prevents runaway jobs to run for 6 hours.
The old test suite was using the console connection but in 7af2df3 this was removed. Testing is useful so this introduces a basic test suite using pytest because that's what I'm familiar with.
|
Yes, GH doesn't do well with multiple PRs included. Trivial rebase done. |
The old test suite was using the console connection but in 7af2df3 this was removed.
Testing is useful so this introduces a basic test suite using pytest because that's what I'm familiar with.