-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Use Rust's built-in support for integration tests #23
Comments
👍 |
Having trouble tracking down this test input. Do you have this in your personal working directory and ignored by Git? |
This is the html5lib-test repo which can be found here. Maybe a message should be displayed on where to find the repo when it isn't detected or given as argument. |
Ah, gotcha. I wasn't aware of the Pros of going with this suggestion:
Cons of going with this suggestion:
Now that I've downloaded the If you go with the suggestion above, no need to emit a warning because the external test data will be in the repo. If you decide to pass on the suggestion, the command-line warning might be a good idea, and perhaps a note in the README as to where to find the test data. |
Does this mean we have to keep an updated version of html5lib tests in our repo, or can we use something like git submodules for this purpose? I don't have a real opinion on what would be the best course in this case. |
It could be updated periodically, whenever someone thinks to check. But between updates, you'd have a stable target to develop against. So I'm assuming updates could be infrequent (e.g., once every few months or years, or whenever someone wants to). Looks like the license for The vendored files would live under |
ok.. let's try and see how the vendoring would work. I'm not 100% happy with having 3rd party code inside the repo, but I think it will be the best course as you stated. I'm happy to see if we can get something up and running in a more rust-like test setup. |
Submitted #27 |
@jaytaph should I migrate |
Let's wait for now. It seems a relative easy process to move this, but since the parser is still a big work in progress (making sure all tests pass takes a lot of time :( ), it would be easier at least for me to run the tests with more context (for instance, i'm currently displaying element stack dumps on each iteration, as this is hard for me to view in the step debugger). Moving the test might interface with the current parser branch. But let's keep this issue open and try to move it when the parser passes the most tests. |
Ok, that works. |
Currently this project is compiling binaries for integration tests under
src/bin
. It turns out Rust has a mechanism for dealing with integration tests. More here.Suggestion: create out a top-level
tests
directory and move theparser_test
andtokenizer_test
files over to it.The text was updated successfully, but these errors were encountered: