-
Notifications
You must be signed in to change notification settings - Fork 175
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
Document how to debug integration tests #5857
Comments
@johnsaigle does github have a bump feature ? |
🤷♂ |
@johnsaigle I think it's a great idea to have a guide on everything about the testing. I think an example of how to best approach a single module of LORIS for running tests after development of the module would be amazingly useful. So we don't have to run every test before getting to the tests that we want to see work or not. Other thoughts: My experience with trying the |
To clarify there is actually some documentation in This ticket was created in response to Dave's comment asking how to debug a Travis report like this:
It's not clear what is causing those errors or what to do about them. The only bit of info I could find in the linked document is this:
However I don't have anything like that set up and it's not clear whether that would help with a report like this. |
@maltheism I just wrote an automated testing guide #5859. Hopefully that will help. Between that document and also the CONTRIBUTING.md document I think that should give a rough idea on approaching testing on a more general level. I also think there's a document on "how to create a module" buried in the Wiki somewhere. however I think it was created for LORIS v 14 or 15 so it would need updating. |
I think it'll always be important to run every test. Generally speaking anyway. A lot of things in LORIS aren't all that "modular" and so changing something in one place can affect other parts of the code. |
I got this to work one day after asking @kongtiaowang some questions.
Start tests:
I mean like instead of wasting 15 minutes or however long it takes for the tests to get to the specific test of seeing one specific thing fail. We can just go directly to that test and I mean like frontend tests after the module has been updated to react. I can see php code being modified possibly breaking all of LORIS. |
Would you mind updating
That's an interesting idea. It may be possible if you look into the
The tool might have something like an "exclude" or "include" flag that could be used to run just the tests for one module. |
@maltheism I also found this but it seems out of date. https://github.com/aces/Loris/wiki/LORIS-Module-Testing |
@johnsaigle I recall viewing that guide (many months ago) when I was trying to get the VNC Viewer to display the test running. I'll try to replicate everything with what the guide explains and see whats outdated. |
I think almost all of it is outdated. We're using Docker to set up most of what it's describing now. It also seems to have two concerns going on. "Creating tests for a new module" and "Installing the integration test suite". I think these should be separate files. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
There isn't a document (that I know of) describing how to setup integration tests locally.
To Reproduce
Steps to reproduce the behaviour (attach screenshots if applicable):
npm run tests:integration
What did you expect to happen?
We should have documentation explaining this part of our test suite.
Browser Environment (please complete the following information):
Server Environment (if known):
Additional context
This was encountered by @driusan recently and discussed on Slack. I've also had the same issue.
The text was updated successfully, but these errors were encountered: