Closed Bug 723545 Opened 12 years ago Closed 12 years ago

Robocop - Adding a new test is error prone

Categories

(Testing :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla13

People

(Reporter: kats, Assigned: kats)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Makefile fixes (obsolete) — Splinter Review
When adding new tests, I consistently make two mistakes.

One is to name my java file .java instead of .java.in, which only gets detected after I finish building and try to run the test. This can be fixed by include *.java along with *.java.in into the build, so that the #filter lines will break the build (or if it's a valid .java file, pulls it into the build as expected).

The other is to add new .html files and forget to add it to the Makefile. This can be fixed by include *.html instead of having to enumerate them individually. This also makes it consistent with the *.java glob.
Attachment #593856 - Flags: review?(jmaher)
Comment on attachment 593856 [details] [diff] [review]
Makefile fixes

Review of attachment 593856 [details] [diff] [review]:
-----------------------------------------------------------------

I like the *.html, I don't like the *.java.

::: build/mobile/robocop/Makefile.in
@@ +63,5 @@
>    $(NULL)
>  
> +_JAVA_TESTS = $(patsubst $(TESTPATH)/%.in,%,$(wildcard $(TESTPATH)/*.java.in)) \
> +              $(wildcard $(TESTPATH)/*.java) \
> +              $(NULL)

I don't like the *.java.  We need the filtering because the package name is different between users and nightly/release.
Attachment #593856 - Flags: review?(jmaher) → review-
Ok, taking out the *.java stuff, leaving in the *.html.
Attachment #593856 - Attachment is obsolete: true
Attachment #593908 - Flags: review?(jmaher)
Attachment #593908 - Flags: review?(jmaher) → review+
https://hg.mozilla.org/mozilla-central/rev/096b65714f60
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: