Skip to content
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

Reorganize tests #22

Merged
merged 2 commits into from
Dec 16, 2017
Merged

Reorganize tests #22

merged 2 commits into from
Dec 16, 2017

Conversation

mboes
Copy link
Member

@mboes mboes commented Dec 16, 2017

Use rule_test to verify that a rule a) worked, b) produced the
expected output. This obviates the need for a shell script that
launches binaries and is more general, so can be used systematically.
It's the testing strategy that rules_rust uses. We may want to
revive launching binaries later, but this is good enough for now.
Also, systematically put each test in its own subdir.

Projects that need cpphs are by now extremely rare. `jni` does use it,
but `jni` can be changed to no need any particular build system
support for that. In fact here's a PR demonstrating that:
tweag/inline-java#100. So culling cpphs
support. Less code to maintain.
Use `rule_test` to verify that a rule a) worked, b) produced the
expected output. This obviates the need for a shell script that
launches binaries and is more general, so can be used systematically.
It's the testing strategy that `rules_rust` uses. We may want to
revive launching binaries later, but this is good enough for now.
Also, systematically put each test in its own subdir.
@mboes mboes requested a review from Fuuzetsu December 16, 2017 15:36
@Fuuzetsu Fuuzetsu merged commit 6ce3332 into master Dec 16, 2017
@Fuuzetsu Fuuzetsu deleted the rewrite-tests branch December 16, 2017 17:52
Profpatsch pushed a commit that referenced this pull request Mar 7, 2019
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.

2 participants