-
Notifications
You must be signed in to change notification settings - Fork 89
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
Run todo tests by default for CI #600
Comments
Sass spec doesn't exists to serve LibSass, it's for all implementors of the Sass language. We should endeavour to remove LibSass specific logic not add more. Testing for segfaults and such is something we should probably do in LibSass via a different method. I know @am11 has thoughts on this. |
Copy/paste from slack chat:
|
I think this is something we should move into LibSass. As well as testing the C-API. |
@xzyfer I mean todo specs that make the libsass master segfault (which we have had in the past). It's pretty inconvenient when I try to find todo specs that are passing with master automatically. I always have to move tests that segfault first and then make sure I don't accidentally commit it. I know it's not ideal, but we don't live in an ideal world. So I still would like to add spec tests that currently segfault for master to a |
@mgreter I understand now. I personally have not run into this. It seems worth doing if someone has the time and desire. |
@mgreter one question: if you have segfault tests in, say, Do I understand it correctly that you basically need to run |
@saper don't really understand the relation to the issues you linked. But yes, the problem exists when we have segfaulting todo tests and run @xzyfer I don't think we need to do much here. I just suggested to add any future todo specs that would segfault with libsass master into another folder. This way we could savely run If we enable this in CI, we need to ensure we don't run any spec tests that would abort the runner. Not sure our spec runner in CI would have a problem with that, but the |
Regarding #333: there are "todo" tests that fail both when run normally and when run with |
So the problem is really that you'd like to have a way to avoid crashing in-process testing when using |
I haven't seen crashing tests yet (crashing |
Yep, because that would make it nearly impossible to activate this by default for CI, which was the main intend for this issue (if that applies to our spec runner). So the spec runner should really just report unexpectecly passing tests. I hope ruby spec runner does not error if some tests unexpectedly pass!? The main intention was really just to be able to easily check if a PR fixes any todo tests. |
We have to be consistent in what we are doing. With This command means:
The result means:
This command means:
The result means:
You have to invert the logic to alert the developer and return failing error code (prevent deployment for example). "Just reporting" is useless for CI - the developer will never look at the output if it's all "green". |
What I want is to be able to look myself at the CI result if a PR fixes a certain todo, that's my usecase. Would be a bit easier than having to create a PR to activate the spec test and it would potentially also catch any other todo tests I didn't anticipate. This is what I would like to request for this issue. Could very well also be a new cli option, like |
My proposal would be the following:
This way we get a red build whever something needs developer attention. |
IMO it would be nice to also check the todo tests on CI. We should not alter the overall error state for these, but it should report the spec tests that are unexpectedly passing. We sometimes add todo tests for segfaults, which should not be included here, since it would abort the whole test runner. Therefore I propose to add tests for segfaults to another folder, that would be excluded from this proposed test run.
The text was updated successfully, but these errors were encountered: