Skip to content

Move all tests to tests/ folder. #139

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

Merged
merged 1 commit into from
Nov 23, 2015
Merged

Move all tests to tests/ folder. #139

merged 1 commit into from
Nov 23, 2015

Conversation

pyfisch
Copy link
Contributor

@pyfisch pyfisch commented Nov 20, 2015

The folder is provided by Cargo and makes it easier to find tests.

Question: I found that src/parser.rs contains many parsers, should I move parse_ipv4addr and parse_ipv6addr to the parsers file?

Review on Reviewable

The folder is provided by Cargo and makes it easier to find tests.
@SimonSapin
Copy link
Member

I’m not exactly opposed to this change, but I don’t understand: what’s the point? Are they really hard to find where they are now? http://doc.crates.io/guide.html#tests describes the two places to have tests as "should be unit tests" and "should be integration tests" but the difference is not really clear to me.

parser.rs contains the implementation of https://url.spec.whatwg.org/#url-parsing. It’s in a separate file because it’s so big.

@pyfisch
Copy link
Contributor Author

pyfisch commented Nov 21, 2015

My point is just that all other crates I know use the tests/ directory to for integration tests and I consider the tests using test files as integration tests.

@SimonSapin
Copy link
Member

Chatting on IRC, other people seem to agree with this change.

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit befcf7c has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit befcf7c with merge 66545ce...

bors-servo pushed a commit that referenced this pull request Nov 23, 2015
Move all tests to tests/ folder.

The folder is provided by Cargo and makes it easier to find tests.

Question: I found that src/parser.rs contains many parsers, should I move `parse_ipv4addr` and `parse_ipv6addr` to the parsers file?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/139)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - travis

@bors-servo bors-servo merged commit befcf7c into servo:master Nov 23, 2015
@pyfisch pyfisch deleted the testsdir branch November 23, 2015 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants