-
Notifications
You must be signed in to change notification settings - Fork 41
Tests investigation issues #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Tests investigation issues #132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
- this code is good enough to approve for the 2nd peer review
Type of Change
- This piece of code correctly identifies the changes made being a bug fix
Code Readability
- The code is very understandable and clear in what it needs to be comparing it to the other code.
Maintainability
- As this is in the same style as the other code, it's quite maintainable being simple while doing the job.
Code Simplicity
- This code is simple in it's execution following established design patterns and best practices .
Edge Cases
- The bug fix deals and fixes an edge case
Test Thoroughness
- Tested in mingw64 sktest and sk_unit_test and they both worked
Backward Compatibility
- The code doesn't break existing functionality in the way it works.
Performance Considerations
- Performance works well but it isn't usually a consideration for this type of change
Security Concerns
- This code has no impact negatively or positively for security.
Dependencies
- There are no new added dependencies.
Documentation
- The documentation provided is through and simple to follow at the same time
rory-cd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General Information
Type of Change:
- Bug fix
Code Quality
- Repository: The Pull Request is made to the correct repository
- Readability: The code is easy to read and follow
- Maintainability: This code could be easily maintained or extended in the future
Functionality
- Correctness: The code meet the requirements of the task, fixing the lack of feedback and freezing when running
sktest.exein MSYS2 - Impact on Existing Functionality: The impact on existing functionality has been considered and tested
Testing
- Test Results: Mixed
When run, the code solved the stated problem (sktest.exe freezing). sktest.exe now runs without issue.
The output of the integration tests themselves had mixed results. Some tests failed completely, while others passed, but produced different results to WSL. For example, the graphics test failed to produce the correct output. The animation test passed, but ran at a much higher speed than WSL.
However, the failures and output differences appear to be a result of the quirks of MSYS2, rather than anything to do with the code added in this PR. This is reinforced by #149, in which the graphics test was run in MSYS2 as a translated C# program, and gave the same results found in this PR.
skunit_tests.exe ran with all tests passing.
Documentation
- Documentation: Inline documentation is updated and clear
Pull Request Details
- PR Description: The problem being solved is clearly described
- Checklist Completion: All relevant checklist items have been reviewed and completed
Summary
This PR solves the stated issue. The inconsistent test results are not related to this PR, and should be addressed separately, as part of a new ticket.
Description
The sktest.exe has been unable to work on the MSYS2/MINGW64 it was getting stuck in one test and wasnt giving anyfeedback the terminal would freeze up (if you want to simulate the error you should be able to just run the sktest in you msys2 mingW64) The change that has been provided here changes the way the test is built to be a console exectuable which has made it work on my machine.
Fixes sktest.exe not working in MSYS2/MINGW64
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
first you must be using MYSYS2/WINGW64 although it could be beneficial to check with others as well to make sure it doesnt stop anything else from working
This change can be tested by simply building and testing the program using the sktest.exe file when you do this it should let you choose any test and run them as well as exit the program. The tests should complete and bring you back to the main terminal to choose another test. Essentially you should get a terminal menu when you run the sktest.exe that you can use.
Testing Checklist
Checklist
Extra note
This change changes the way the sktest is built as far as I've been able to find there has been no uninteded consequences of this but I havent done a change like this before, it should only effect the sktest.exe when msys is being used but if you know more than me and think this should be different please put that in your peer review as I do not want to break things on accident. essentially please dont be afraid to be harsh.